I would definitely be skeptical of a study that finds using an LLM/agent to write sqlite in JS being better than writing in Zig, but it strongly depends on what “better” or “worse” mean.
It means how much of the sqlite test suite it passed. They were just measuring correctness, not performance or memory consumption, where of course Zig should win.
But the aim of that experiment was measuring correctness of llm written code in different languages, so used sqlite as a benchmark considering it's fairly complex software with a comprehensive test suite. It is not suggesting that because a language scores better on that benchmark it'd be better suited to writing the next sqlite, due to obvious other factors like performance...
I think the single hole version is a good compromise compared to actual currying or multiple holes, since it's strictly better than something like first or last argument threading (e.g. ->, ->> in Clojure), easier to reason about than currying, and in my experience most of the time you'll only be dealing with one argument to pass piping anyway. Anonymous functions are fine for the cases you need more flexibility.
That may be so, but most "body language tips" circulated online are cringey and lack the rigor and nuance of proper scientific studies. I think of human reactions as more complex than what those kinds of online materials imply.
It's even worse when applied to LLMs, which are more unpredictable.
I have a similar disdain to high levels of unnecessary cursing in something written, like the trend of "The Fucking Weather" style things, but I think this wasn't particularly noticeable. I would stick with it to the end.
Without getting into the territory of if the tax should exist at all, in general I think the way it works in Germany is the optimal way to approach a tax of this kind: tax each household (not individuals), with few exceptions. This gets rid of the whole trouble of people checking if you should pay the tax, because you have to, and so it dramatically simplifies the system.
Yeah. I know. I use it every day. That doesn't answer my question. Why would I want to write something in Gleam if I want it to run in a JavaScript engine? When would that ever make sense? Could you please just engage with me in good faith?
Multiple compilation targets require increased implementation complexity so you would think they would have a good reason for when you would compile to one target or the other. I couldn't find any information about it on their website, so I was hoping you would actually respond with something helpful rather than... that.
So, you started by making a pointed comment about that the language has no string interpolation when it's ostensibly for building UIs, so I'm not sure why you're surprised you're getting responses like mine or the one from lpil. Gleam is not ostensibly meant for building UIs just because it targets JS, and while you don't get string interpolation in the way you might get in other languages you can go pretty far with the <> syntax.
To answer your question about why you would use Gleam when you're running code in a JS engine, it's the same about any language that compiles down to another, such as Clojure, and you can take your pick of those reasons: preference, syntax, pragmatism, etc. I'm not sure what kind of answer you're looking for beyond that.
I'm looking for the intention behind it. They chose two compilation targets. That made things harder. They had a reason. That's what I'm asking about.
None of your reasons ("preference, syntax, pragmatism") fully explain the situation without more context. Whose preference? What syntax are users even seeing? Why is it pragmatic?
Compilation targets are generally chosen based on performance characteristics and where the code is actually expected to be run. If you're not expecting the code to run on the client, then there's no reason to use JavaScript. V8 performance is better when single-threaded, but then why use the actor model?
When I go to the ClojureScript website, they have a whole section about why they chose JavaScript as a compilation target[0]. Notably, it mentions the word "client" multiple times.
It's a general purpose language (as mentioned several times) and compiling to js eg. for lustre webapps (elm-ish). I've contributed to the js compiler once only and can't find a way to use more gleam at my job but I'd say having failsafe actor based erlang backend + ssr + rich strongly typed reactive frontend all in one language is really cool.
It seems your stuck on js-only for ui and somehow rejecting compile to js. If you don't wanna use it fine but I'm not sure what you're looking for in this thread...
> Arabs themselves understand and respect what Israel is doing in Gaza and why.
Any sources that aren’t just anecdotes? I’d love to see some details about “Arabs” understanding and respecting the atrocities in Gaza, because many news organizations including English available ones like Al-Jazeera don’t seem to.
I hear that myth repeated sometimes but never with any evidence. Like a masterful propagandist, "monideas" has a talent for making claims that are hard to believe but also hard to prove wrong.
Because at the root of it is judgement and taste, something we are well aware they lack when it comes to the things I listed, yet somehow we're going to say they understand the broader pros and cons of AI well enough such that their use of it as a pejorative is damning of what AI is actually worth.
reply