653 karma · joined Jun 6, 2012 (14y ago) · 249 submissions
https://daliwali.neocities.org
comment 3y ago · link · parent
There are a few benefits: removing features is dead simple, just delete the whole feature module, and there's no conditional branching in the base application.
There are some drawbacks too: the base application must have entry points for the feature modules to overwrite. Usually the default values are no-op or some default behavior. Features also must implement setup and teardown, which can take longer to write than a conditional.
comment 3y ago · link · parent
What I feel is missing from Parenscript is runtime macro-expansion, hard to do without using JS to build the AST.
comment 4y ago · link · parent
In practice though, it looks closer to C/ASM. The author even wrote comments in C. This is the first time I've looked at an actual program written in the wasm text format and it's pretty interesting to see how one would actually use it. Very neat.
comment 5y ago · link · parent
s2 has the advantage of being much smaller (a little over 2kb compressed), and faster on benchmarks[0] and probably real world performance. The API tries to get out of your way as much as possible. The dependency tracking is seamless by using Proxy.get trap. There's no forced separation of models or views, it's all data.
I wrote it because I had to make a complex UI with streaming WebSocket data work smoothly.
[0] https://krausest.github.io/js-framework-benchmark/current.ht...
5.
Show HN: S² is a function for reactive web UI(gr0uch.github.io ↗)
6 points · by daliwali · 5y ago · 2 comments
comment 5y ago · link · parent
To play the devil's advocate, I would suggest that there is price discovery at play here and people + corporations are willing to pay for what they get value out of. Which is suggesting that many companies don't get much value out of Babel or it is one of many tools utilized in a toolchain. The value proposition is to be able to run new JS in old JS runtime, which may be less valuable now than it was 5 years ago, since evergreen browsers exist and outside of stale corporate environments, most browsers are auto-updating now.
9.
Show HN: A ~2kb metaprogramming function that maps data structures to the DOM(github.com ↗)
3 points · by daliwali · 5y ago · 4 comments
comment 7y ago · link · parent
Hopefully the standards folks can come up with a decent DOM API for WebAssembly.
comment 8y ago · link · parent
This actually uses object getters/setters, has full support for arrays, and nested arrays of objects. There is no API beyond the initial binding, everything beyond that is just mutations on an object.
comment 8y ago · link · parent
I like how low-level and simplified the protocol is, being limited to only 9 types of messages. Compared to Solid which carries baggage from RDF, this seems far easier for third parties to implement.
The note-taking app is really under-selling the protocol beneath it. What could help sell it better is by doing something better than a centralized platform can.
comment 8y ago · link · parent
comment 9y ago · link · parent
It seems to be harder to retrofit a new format onto an existing framework, than to write a new framework altogether. Once the new framework is out, it will be replaced by another shiny framework that offers a brand new feature that is actually a rehash of something old.
I'm optimistic that there will be something next that will replace framework churn, but what?
comment 9y ago · link · parent
Software developers tend to complain that their job is tedious, repetitive, and that they aren't learning anything. Most jobs are like that. I believe that a large portion of repetitive software development can be automated, and this is a largely unexplored area.
comment 9y ago · link · parent
Compared to Angular, it might as well be a micro-framework, but by objective measures it's not so simple.
comment 9y ago · link · parent
A funny pattern that emerges in the above chart is that downloads drop sharply on weekends. I have seen packages that exhibit the opposite pattern (downloads spike on weekends). And this pattern is correlated with popularity, the most popular packages are downloaded largely by 9-5 industry coders, and mostly via continuous integration bots.
comment 9y ago · link · parent
On the tech side:
- RegExps open yourself up to RegExp-based DoS attacks.
- The nested/denormalized results anti-pattern seems to be copied from GraphQL. Unless this is intended to be a faithful reproduction, don't copy mistakes.
comment 9y ago · link · parent
My comment was made in jest, pointing out how incongruent technical interviews can be to the job they're interviewing for, which I think doesn't imply any arrogance. Maybe you are reading it differently.
comment 9y ago · link · parent
There's nothing wrong with software that only needs code monkeys to write. It doesn't have to be technical masterpiece to be useful, or valuable to business. Just think of all the code monkeys with jobs.
comment 9y ago · link · parent
All the young, beautiful people who wouldn't have ever taken a computer science course if it weren't such a lucrative industry to be in right now.
Maybe with this guide they can pass an interview at a big company where they just twiddle with bits all day. I won't be holding my breath until they can produce something useful.