237 karma · joined January 17, 2023
Using strings for identifiers is almost always a bad idea.
I think you can make it look decent. Haven't tried it though.
I also want a more lightweight syntax but beggars can't be choosers.
What I want is a Rust, but with almost everything stripped away. Complexity similar to Go.
The bottom row gets cropped. Resolution is 1366x768. Let me know if you need additional info.
The UI looks great though!
An algorithm that does the same thing given the same input is deterministic aka referentially transparent aka pure, not stateless.
Even this little snippet of Haskell is stateful:
statefulFunction :: Int -> Int
statefulFunction x =
let y = x * x
y + y
The binding 'y' is state. Even if it's implicit, as in ((x * x) + (x * x)), it's still state.People seem to use "stateless" as a word for "doesn't mutate anything", which is kind of weird. Mutability has _nothing_ to do with having state.
Can you give me an example?
Another thing I considered was that, instead of the lisp, you'd have a math-y language and compose everything together. This has the added benefit that it compiles easily to GPU code. So like a chroma key thing would be a function that chooses one buffer over the other based on pixel color. You the compose that with other functions to create a frame. An APL-like language could be amazing here.
I feel like there's _a lot_ of potential here.
It's likely a strange bug, but I think it's relevant since you can't _always_ slide it.