HackerTrans
TopNewTrendsCommentsPastAskShowJobs

yokljo

no profile record

comments

yokljo
·5 месяцев назад·discuss
I really enjoyed "Samorost 3" by the same developers. Machinarium still takes the cake though.
yokljo
·6 месяцев назад·discuss
I stopped doing these years ago, but apparently I've posted 370 Dweets!

Pretty happy with this one: https://www.dwitter.net/d/7421

It's always fun just spending 10 minutes slamming together some trig functions and see what appears on the screen.

https://www.dwitter.net/d/12850
yokljo
·7 месяцев назад·discuss
Thanks. It was just a fun exercise and I had fun writing about it.
yokljo
·7 месяцев назад·discuss
Haha thank you, I was quite pleased with the outcome. It's good, cause getting the animated emojis working would be pretty involved :P
yokljo
·7 месяцев назад·discuss
I'm the OP, and I have to pitch in here. This comment is a bit unhinged, basically claiming that every WIP GUI library written in Rust sucks on principle. This is false, and there are some very good ongoing efforts that will probably be great and desirable GUI options in the future.

Also, the comment claims that QML is not Qt. QML was added to Qt in 2009 and has been where a large proportion of the developer's focus has been ever since. It is absolutely Qt and you can't claim otherwise.

A bit of a passionate response to a passionate parent comment.
yokljo
·7 месяцев назад·discuss
Hey, I'm the author of the post. Thanks for reading! Appreciate it :)

I think QML is very easy to get started with and you should just give it a go. It's not without its weirdness as other comments have already mentioned, and unfortunately there's still many controls that are less-than-ideal for desktop applications than their original QWidget equivalents. Using QWidgets+UIC is nice, but in my experience creates problems when you want to get fancy and custom with your design, with animations and shifting layouts and whatnot, well, especially after using QML.
yokljo
·7 месяцев назад·discuss
A lot of apps people use these days are cloud-first and automatically save all the time, so there's not even a save button to have a floppy icon for! The icon to say that it's synced looks like a cloud, and if you're using a web browser it'll probably have a Download button with a download icon. No floppy disks in sight.

I wouldn't be surprised if there's computer users out there that wouldn't recognise the "save icon".

RIP in peace
yokljo
·7 месяцев назад·discuss
I strongly suspect I know what that does because I worked with Svelte 4 for years (you no longer have to do this in Svelte 5. I can recommend Svelte 5, it's nice).

Basically, assigning a state to itself tells it to signal that that state has changed and update anything that is listening to it. The `state` object is actually a JS Proxy returned by createState [0], which allows intercepting the assignment to the `windows` property and emit signals. Usually you dont have to do that, but in this case, the proxy doesn't notice that `state.windows.push(X)` is a mutation. Only assignments directly to the state object count as mutations.

TLDR, `state.windows = state.windows` tells the framework that `windows` changed.

[0]: https://github.com/MercuryWorkshop/dreamlandjs/blob/1e7a34a1...
yokljo
·7 месяцев назад·discuss
While you're at it, go on a huge tangent writing a library that allows one implementation to work as both an X11 and Wayland compositor.

Actually why stop there? Make said library also compile to a full screen Windows and Macos application that somehow renders the contents of windows to textures and does event handing etc. that way you can write your desktop environment once and use it everywhere.

I've gone crazy with power.
yokljo
·7 месяцев назад·discuss
This is a pretty neat idea, and shows that maybe a desktop environment could be a lot more flexible than we're used to if it was based on something flexible. Not exactly counter intuitive.

I'd like to see how complex a CEF-based Wayland compositor would be in comparison.

How about using Godot instead of CEF? It has a pretty full-featured UI system.

So many possibilities.
yokljo
·8 месяцев назад·discuss
Haha nice! It's a good library, and it's flexible enough that you can extend the syntax of JS however you like (with some difficulty, as it's not exactly documented). I experimented with adding my own type system to JS by using Acorn. Can recommend.
yokljo
·8 месяцев назад·discuss
Oh you must think you are reading Hacker News, sorry about that, this is actually AI Optimism News.
yokljo
·8 месяцев назад·discuss
Nice. I built something basically just like this for work for the same reason last year. It only look a few hours though, cause I just used Acorn [0] to parse my JS, then directly evaluated the AST. It also had an iteration limit and other configurable limits so I can eval stuff in the browser without crashing the tab. I did not use an LLM.

[0]: https://github.com/acornjs/acorn
yokljo
·8 месяцев назад·discuss
I think most popular languages were started as an experiment in some feature, or to solve a specific problem someone had. Those are good reasons to make a language. I see no reason to make a language just to take attention away from other existing languages. Instead, make a language so you can understand how to make languages. It is 100% doable by one person. It's fun and educational.
yokljo
·8 месяцев назад·discuss
Agreed. It's nice to be able to just use the provided terminal when running KDE. It's very customisable and runs plenty fast. I also love being able to right click on Dolphin and tell it to open Konsole in the current folder. Also, I leave infinite scroll back turned on in Konsole and it works really well, swapping out to a file as it gets too much scroll back. Nothing worse than getting errors that I can't read because the terminal discarded them. I have Ctrl+Shift+X bound to clear everything, which I use before running just about any operation.
yokljo
·в прошлом году·discuss
People typing faster can make a huge difference at work: I get asked for help a lot, and when I ask someone to do something on their computer and they do it painfully slowly, that can represent a lot more time that I spend helping them rather than thinking about my own tasks. I thought this perspective was missing from the discussion, so now I've added it.