40 karma · joined Feb 25, 2019 (7y ago) · 32 submissions
comment 10mo ago · link · parent
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.
comment 11mo ago · link · parent
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.
comment 11mo ago · link · parent
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.
comment 11mo ago · link · parent
I wouldn't be surprised if there's computer users out there that wouldn't recognise the "save icon".
RIP in peace
comment 12mo ago · link · parent
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...
comment 12mo ago · link · parent
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.
comment 12mo ago · link · parent
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.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 4y ago · link · parent
comment 5y ago · link · parent
I'm not taking any sides here, but just making a point.
comment 5y ago · link · parent
comment 6y ago · link · parent
Random assumptions/observations that might be relevant:
- The universe seems to generally work under "simple" principles that can be explained with a few mathematical equations.
- The brain is made of the same stuff as everything else.
- You are only aware of a very very small amount of things that actually happen in your body: You are not aware of what happens in your visual cortex, just what comes out of it. You are not usually aware of the sound waves themselves, just the conceptual "sound". I would call all that stuff "processed data". Sound, images, touch, all that stuff, generally get blended together into one cohesive experience.
- All that looks like a flow chart when I think about it. The photons go into your eye, stimulating nerves, electrons flying everywhere. That cascade of nerve stimulations goes into the visual cortex where stuff is processed into actual stuff that you care about, but the data is still just essentially electrical signals at that point. But then suddenly, you are aware of that processed data. Sounds like it explicitly got that processed visual data and sent it out a transmitter, to be listened to by none other than my "self".
- I guess I would then relate my consciousness to a radio receiver that's waiting on the other end. And in some specific part of my brain is a transmitter.
- A radio station can't possibly know if anyone is listening to the signal they sent, unless the listener communicates back that they are listening. In the same way, it doesn't make much sense to talk about how aware you are if the "aware part" (the radio receiver) doesn't talk back.
- Random final observations if this model were true: To maintain conservation of energy, the receiver would likely have to act like a capacitor, storing energy that was used to send the message to it, and using that energy to send a message back. Either that or it communicates back by collapsing wavefunctions (okay now it's getting a little out of hand). Also, maybe using this model, you could say that your sense of the progression of time is proportional to the amount of information sent. Which is why time goes so quickly while you are asleep, because your brain stops sending stuff out the antenna (also getting out of hand).
Hopefully you find this idea at least a little interesting. I feel like there's a world of possibilities here that haven't properly been considered.
I would love to hear your take on it.
comment 6y ago · link · parent
I think the fact that people ('s brains) are so sure that they are conscious, is pretty clear evidence that for some reason your brain is getting messages back from this consciousness thing. Either that, or brains are consistently are built so they can't shake the idea that they have an observer (see: how many comments are on every HN article about consciousness, including this one).