63 karma · joined Jan 19, 2019 (7y ago) · 38 submissions
comment 2w ago · link · parent
Aims to be a full batteries included language + standard libraries, so that building both with and without AI assistance is effortless and can reuse the building blocks without having to reimplement things. Wrote more about the why here: https://dia-lang.org/vision
Most notable such case is the UI library, where you can take out just text rendering, or event/input system, or the signals-based reactive library, and reuse them in other contexts.
some other notable features: - vey inspired by rust in syntax and type features - batteries included library containing a full cross-platform gui library including a prosemirror-like wydiwyg text editor - rust like memory safety, uses arenas for cyclic objects so that the language doesn't need lifetime parameters like rust, easier to reason about for generic code - transpiles down to c, then compiles to anywhere C can run - has its own native JSX-like syntax called DSX, any functions with the right signature can be written in DSX notation, not just UI components - incrementally compiled, has HMR (hot module reload) - effortless C interop (dia compiler ships with clang). no need to write manual wrappers for libraries (but sometimes need to write a short manifest file to map dia's memory safety with most c libraries' manual management)
More information here: https://dia-lang.org/ (Not open-sourced yet, waiting until the base features are stable)
comment 4mo ago · link · parent
with the latest agents, you can even be vague and they'll probably do an ok job if it's not something super complicated. some models are also pretty good at stopping to let you know about stuff you haven't thought about and ask for clarification.
so you can outsource thinking now, not just the doing part.
comment 10mo ago · link · parent
just a few weeks ago i was trying to work on a swift project in neovim and found the whole langserver experience pretty bad
and it’s way worse when working on swif ui apps, but i guess that’s more of an apple wanting you to use xcode thing.
i wish there was better tooling, i like the language, but i just switched to nim for my side project
comment 2y ago · link · parent
Not sure if it counts, but I consider the blog an ongoing project
comment 2y ago · link · parent
Comes from my own desire for something like that. Right now I’m using a hacked together solution using blackhole and a random vst. It was a pain to set up initially, trying to make it easier for other people.
I know there’s loopback but it costs too much for what i need and has a lot of extra features i don’t care about, plus i’d still need to bring my own vst to it
comment 2y ago · link · parent
so any one thing you examine will be “conditioned” on the previous things that cause it to appear
cause and effect basically
this has some philosophical implications, since all you are as a person is a bundle of emotions, mental patterns, etc that are ultimately conditioned
this leads to the buddhist view of no self, where there isn’t something that makes you “you”. just a bunch of responses to stimuli. some of those responses are thoughts of a self.
comment 2y ago · link · parent
10.
Making a shitty programming language from scratch. Part 1(andi.dev ↗)
1 points · by andeee23 · 3y ago · discuss
comment 5y ago · link · parent
Very similar API to React but the reactivity system is nicer. There's no hooks rules like not putting them in if statements or inside other hooks.
Very cool and I think this is the future. It also helps that the performance is crazy good and it doesn't re-render everything all of the time like React.
comment 5y ago · link · parent
With composition API and Vue 3 bringing typescript support and hooks to me it's a no brainer to choose Vue.
One other thing is that I've seen people who are normally doing only backend pick up Vue in a day or 2, but React takes longer to grok. You're probably likely to find more people who have already learned React than Vue though, due to its popularity.
React also has a bigger community but I haven't felt that I was lacking when looking for Vue libraries.
comment 5y ago · link · parent
The things that still trip me up with CSS after a few years of full time frontend work are the following:
1. Dynamic 2D stuff
CSS kinda sucks for most 2D dynamic layouts. Especially when you have heights that are dependent on widths or the other way around. With CSS grid and the upcoming aspect-ratio things are better but I still run into some limitations in especially dynamic web apps / data visualizations I make and I usually resort to calculating the widths/heights in javascript so I can have full control.
2. Going into the third dimension
I'm not a big fan of the z-index / position absolute / relative stuff going on in css. I'm not sure what a better way would look like, but every so often I run into weird issues where a parent somewhere is relative and it messes up an element I'm trying to absolutely position.
Most things can be worked around but it's still annoying and usually take longer than what I feel they should.
Apart from these, most of the quirks of CSS are very mild and can be worked around easily. I actually find writing CSS quite enjoyable day to day.
comment 5y ago · link · parent
C felt too cumbersome and I personally don't like C++, so that's where napi-nim came in, since I wanted to use Nim.
The native purge-css extension is still in early stages, but napi-nim is already quite usable.
16.
Show HN: Speed up Node.js with Nim native extensions(github.com ↗)
5 points · by andeee23 · 5y ago · 1 comment
17.
Highly performant Node.js native extensions in Nim(github.com ↗)
1 points · by andeee23 · 5y ago · discuss
comment 6y ago · link · parent