Is Deno not convenient and fast? I am also interested in knowing why I would want to use Bun over Deno.
Actually chars() is pretty simple - it's just UTF-8 decoding which is elegant and simple.
The complexity is all around unicode, not UTF-8.
This is awesome. It gets closer to Deno which I think is one of the only things that have actually solved the "ad hoc scripting" challenge, which requires:
- Easy to install language.
- Easy to use third party dependencies (from a single file script).
- Easy to import from other files without setting up a whole project.
- IDE support.
At one end we have Deno which nails all of those. At the other, Python which fails all of them pretty miserably (despite this being one the most popular use cases for Python).
Seems like with this Rust will have 1 and 2 solved, and I guess 4 isn't too hard. What about 3 though?
If I eventually decide I want to split my one file script into two files will I be able to?
Edit: I had a play and actually it's good news!
- If you want to split up a script you can just do
mod fooand it will look forfoo.rs(or I guessfoo/mod.rs) in the same directory! - For common code, which you might want to import from e.g.
../../commonyou can't just usemodbut you can addcommon = { path = "../../common" }to[dependencies]. That directory has to be a proper crate withCargo.tomlbut I think that's ok and probably desirable.
The only downsides I found are:
- No IDE support yet.
- It prints compilation messages to stdout, which kind of sucks.
- Even after it has been built, it still does incremental compilation every time you run it, leading to more compilation message noise, and ~100ms startup time.
This is 14 years old by now - hardly "modern". RAII itself is even older.
It's not really messaging that's the differentiator here - it's scale (specifically write scale). If you can't have a single master database then sure you might need NoSQL. But you almost certainly aren't anywhere near that scale. Giant sites like Stackoverflow and Shopify aren't.
Any specific ones? I've seen this before and I thought I would feel the same way as you before I read them, but actually the vast majority are pretty basic things that are not really arguable.
It's definitely nice to have a list like this to point inexperienced colleagues to in code reviews. It's a bit more authoritative than "trust me bro, I've written a lot of code".
Huh I did not know Roku (the on-the-way-out TV company) made their own scripting language. How bizarre.
A phonetic spelling would also only be more digestible to readers who know the language the phonetic spelling is tailored at
Indeed, it would be digestible to 1.5 billion people instead of 100k.
What is fatphobia? I think he was just saying it's easier to let yourself go and turn into a blob than to stay healthy. Definitely true no?
This is just an excuse. A poor one.
Should've known better than to what? Use Cloudflare?
FizzyOrange
0 post score0 comment score
Can't remember tbh. It was a work setup. It wasn't an unreasonable one though. 32 is not very many!