Hacker Newsnew | past | comments | ask | show | jobs | submit | oDot's commentslogin

Very nice

Could I use OpenTUI Core with this?

I'd like to replace the hero at https://blisswriter.app with the actual app


You should be able to. We forked OpenTUI in order to avoid having to shim a bunch of native stuff. I'd like to make it compatible - email me at hi@cjroth.com if you find a way or want any help making it work

Thanks. Will be a while before I could give this a shot...

I use libghostty for Trolley[0], which packages TUIs as desktop apps, like Electron does for web apps.

It really is quite an amazing piece of software. I just wrapped it in a useful GUI and a bundle/package CLI and it just works. Even on Windows. Kudos to the Ghostty developers.

[0] https://github.com/weedonandscott/trolley


I think your github readme is really missing a picture/screenshot to quickly understand what is the experience like. I.e. if your app is mainly about adding the chrome (as in the surrounding UI pixels) around the TUI, then it would be good to show what is the chrome like.

Nah, I think it’s pretty clear. It would look like a terminal emulator. Just like how Electron looks like a bunch of browser widgets - because it’s literally a single-web-app browser.

A screenshot would still make it clear that that's all you're getting - and no extra chrome etc

Does it have any extra controls? And is it using native windows (as opposed to Electron)?

I agree a screenshot or even better a video of lazygit, btop or something similar running in the tui side by side with the trolley app

Oh this is nice!

You mention that Android/IOS support is possible. I hope that you can please add these support properly as your project matures.

Asking this because I would love to have a cli tool where I can just point to for example golang codebase from any device (mac/windows/linux) etc. and thanks to golang's cross compilation simplicity, have it be compiled for android (well linux arm fwiw) and then have it all be compiled into a single android apk.

And if you do that, I would love to have something like zenity but for android so as to abstract the cli behind a nice gui for mass-adoption.

This is almost a million dollar problem as there are so many good cli tools and its incredibly easy and versatile to make a gui even with scripts on top of that cli but Android/Ios usually don't have that versatility.


This is a pretty cool idea. Kind of a neat distribution hack if all you have is a TUI (and not a full GUI). Curious whether you know of any success stories yet

Thanks.

This was written for my own screenwriting software, which is now in private alpha. It works quite nicely for an alpha

https://blisswriter.app


I kind of want to use this to turn Wordgrinder into a Mac app haha

I used to run a site that compares prices[0]. Not only is the ecosystem pull to the cloud strong, but many developers today look at bare metal as downright daunting.

Not sure where that fear comes from. Cloud challenges can be as or more complex than bare metal ones.

[0]: https://baremetalsavings.com/


> Cloud challenges can be as or more complex than bare metal ones.

Big +1 to this. For what I thought was a modest sized project it feels like an np-hard problem coordinating with gcloud account reps to figure out what regions have both enough hyperdisk capacity and compute capacity. A far cry from being able to just "download more ram" with ease.

The cloud ain't magic folks, it's just someone else's servers.

(All that said... still way easier than if I needed to procure our own hardware and colocate it. The project is complete. Just delayed more than I expected.)


The cloud is magic. If it is down nobody is in trouble. You just throw your hands in the air and say oh azure / aws / gcloud is down.

But if you are the admin of a physical machine you are in deep trouble.


> The cloud ain't magic folks, it's just someone else's servers.

The cloud is where the entire responsibility for those servers lives elsewhere.

If you're going to run a VM, sure. But when you're running a managed db with some managed compute, the cost for that might be high in comparison. But you just offloaded the whole infra management responsibility. That's their value add


But any serious deployment of "cloud" infrastructure still needs management, you're just forcing the people doing it to use the small number of knobs the cloud provider makes available rather than giving them full access to the software itself.


not sure what you mean by a serious deployment, but a lot of companies will be perfectly fine with, some compute, object storage and a managed rdbms.

Will that be more expensive than running it yourself? Absolutely. Does it allow teams to function and deliver independently, yes. As an org, you can prioritize cost or something else.


> a lot of companies will be perfectly fine with, some compute, object storage and a managed rdbms.

Right, and who or what causes those services to be provisioned, to be configured, etc.?


Infrastructure as code tools like terraform etc? That's trivial compared to configuring a database for production use I would say.

You don't need to be DevOps to write that stuff, it's really simple.


And who is writing the terraform configs?


> Not sure where that fear comes from.

Probably because most developers these days have not known a world without using cloud providers, with AWS being 20 years old now.


Racking your own hardware doesn’t get you web UIs and APIs out of the box. At least it didn’t 2 decades ago.


Sure, now it does however (via the many OSS PaaS) so the calculus must also therefore change.


Which OSS PaaS are there that are noteworthy? Or do you mean something like Kubernetes?


Coolify is usually loved by the community.

Dokploy is another good one.

Kubero seems nice for more kubernetes oriented tasks.

But I feel like if someone is having a single piece of hardware as the OP did. Kubernetes might not be of as much help and Coolify/Dokploy are so much simpler in that regards.


Thanks. I will look into those.

I suppose kubernetes with the right operators installed and the right node labels applied could almost work as a self service control plane. But then VMs have to run in kubevirt. There is crossplane but that needs another IaaS to do its thing.


Partitioning a server! Omg lol

It’s funny, bc AWS did not start this tour of business. What they did do is make it possible to pay by the hour. The ephemeral spare compute is what they started.

Yet almost nobody understood the ephemeral part.

You might even be better off running a macmini at home fiber, especially for backend processing


The fragmentation and friction! Comparing prices usually requires 10 open browser tabs and a spreadsheet, which is what keeps people locked into their default cloud. I built a tool to solve this called BlueDot (ie, Earth, where all the clouds are)[0]. It’s a TUI that aggregates 58,000+ server configurations across 6 clouds (including Hetzner). It lets you view side-by-side price comparisons and deploy instantly from the terminal. It makes grabbing a cheap Hetzner box just as easy as spinning up something on AWS/GCP.

[0]: https://tui.bluedot.ink


I use serververify which is created by jbiloh from the lowendtalk forum which uses yabs (yet-another-benchmark-script) to give details about lot more things than usually meets the eye.

That being said, I have found getdeploying.com to be a decent starting point as well if you aren't too well versed within the Lowend providers who are quite diverse and that comes at both costs and profits.

Btw legendary https://vpspricetracker.com (which was one of the first websites that I personally had opened to find vps prices when I was starting out or was curious) is also created by jbiloh.

So these few websites + casually scrolling LET is enough for me to nowadays find the winner with infinitely more customizability but I understand the point of TUI but actually the whole hosting industry has always revolved around websites even from the start. So they are less interested in making TUI's for such projects generally speaking atleast that's my opinion


Thanks! A planned next iteration is to include more non-mainstream cheap providers in the TUI. But that's not as simple as the current model which wraps official CLIs, as these alt providers typically don't have CLIs and diverse listing and control surfaces.


Shameless related plug for my recent project Trolley, which lets you package a TUI as a desktop app, for your non-technical users or otherwise:

https://github.com/weedonandscott/trolley


What does it look like? Any screenshots?


It launches whatever TUI you give it with just window decorations. Here's the Linux one with one the debugging examples I use

https://imgur.com/St8O8Gm


I find the decay of human connections an interesting problem to solve. I used to have an app that encouraged meeting in person by utilizing friends inviting other friends[0]. This solved many app-problems like correct matching and safety.

Didn't catch on, though. Setting up events turned out to be too prohibitive. If this interests anyone feel free to contact me at contact [at] eventful [dot] is

[0] https://blog.eventful.is/p/the-perfect-dating-app


I'm the author of Trolley[0] (Electron for TUIs).

It was so easy to get the terminal functionality going with `libghostty`. Most time was spent building the functionality around it.

Thanks for making it.

[0]: https://github.com/weedonandscott/trolley


I'm not quite understanding your project. What is the use case? Is this so I can package up an existing terminal app as a dedicated desktop app?

If so that actually sounds really cool. I'd like a dedicated lazygit app in my tray at all times.


Yes, that's it. It came about after writing a small TUI for a friend to back up their Vimeo library. They liked the simplicity and speed but not having to use the shell. Didn't want to install Ghostty either.

So here we are


My brother has built a game using python on the CLI and I've been trying to find a way to package it. Your project seems very promising for my use case.

Project mentions Windows compiles but isn't tested. Do you have a gut check on what issues there might be?


I think it may actually work. It's just that I only have a VM to test it on, and it does not support OpenGL. I got it to compile and run, but it crashed on that VM limitation.

Feel free to open issues in the repo, I'll find a way to get a Windows machine if there's interest.

You can also email me at `trolley [at] wands [dot] is`


This is kinda cool. Thanks for sharing.


I read somewhere, but can't remember where, that a major reason those APUs aren't as efficient as the Apple ones is a conscious decision to share the architecture with Epyc and therefore accept worse efficiency at lower wattage as a tradeoff.

Can someone confirm/refute that?


In this review, Hardware Canucks tested [1] the M4 Pro (3nm 2nd gen) and the 395+ (4nm) at 50w and found the performance being somewhat comparable. The differences can be explained away by 3nm vs 4nm.

[1]: https://www.youtube.com/watch?v=v7HUud7IvAo


How the heck is a 3.6x faster single thread M4 Pro 'comparable'? Which by the way you can buy in a $600 prebuilt not $2500 if you can even find this unobtanium chip.


Where can you buy a $600 mac with an M4 Pro?

The M4 mac mini at $599 comes with 16GB RAM and 256GB SSD - see https://www.apple.com/shop/buy-mac/mac-mini/apple-m4-chip-wi...

The M4 Pro mac mini starts at $1399 with 24GB RAM and 512GB SSD - see https://www.apple.com/shop/buy-mac/mac-mini/apple-m4-pro-chi...


Geekbench 6 scores vary based on cooling but the 395+ hangs out around 3000 and the M4 Pro around 3600, how is that 3.6x?


where are you seeing 3.6x faster single thread performance???


It isn’t comparable at all. In MT, maybe it is comparable with the M4 Pro still winning. In ST, it is 3-4x ahead of Strix Halo in efficiency.


> In ST, it is 3-4x ahead of Strix Halo in efficiency.

The Hardware Canucks video didn't seem to do any such investigation, where did you get that number from?


It seems like a comparison of the battery life under light loads (accounting for the vast majority of the difference) multiplied by some unspecified single thread performance benchmark? But under light loads laptop battery life is dominated by things like the screen rather than the CPU, and on top of that the Macbook has a larger battery.

Meanwhile under the heavy loads that actually tax the processor the M4 somehow has worse battery life even with the larger battery and a nominally lower TDP.

Is the infamous efficiency not the processor at all and they're just winning on the basis of choosing more efficient displays and wireless chips?


They are ok but yeah they do not have anything like the memory bandwidth of an m3 ultra. But they also cost a lot less. I’m primarily looking to replace my older desktop but just have to make sure i can run an external gpu like the A6000 that i can borrow from work without having to spend a week fiddling with settings or parameters


Indeed! Please check out this project I made to basically make the server an extension of the front end by having it reply to client side ui messages:

https://github.com/weedonandscott/omnimessage


I work in Gleam on my software and it's a treat. I use the FFI for JS libraries all the time.


I moved to Gleam with all of my projects and am not going back. The language is fantastic but really the most impactful are the coding paradigms that it enables, especially the actor model and especially on the front end (The Elm Architecture)


So do you build stuff using Wisp and Lustre?

I would love to look at some example applications!


Yes.

https://nestful.app used to be TS + Vue but it's almost entirely Gleam now, with Lustre used for state management and only the views being Vue templates. Those will also be migrated away for a fully Lustre solution.

Blog posts:

https://blog.nestful.app/s/the-tech-behind-nestful


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: