[-] FizzyOrange@programming.dev 4 points 9 months ago

Can't remember tbh. It was a work setup. It wasn't an unreasonable one though. 32 is not very many!

[-] FizzyOrange@programming.dev 4 points 10 months ago

Is Deno not convenient and fast? I am also interested in knowing why I would want to use Bun over Deno.

[-] FizzyOrange@programming.dev 4 points 11 months ago

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.

[-] FizzyOrange@programming.dev 4 points 1 year ago* (last edited 1 year ago)

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:

  1. Easy to install language.
  2. Easy to use third party dependencies (from a single file script).
  3. Easy to import from other files without setting up a whole project.
  4. 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 foo and it will look for foo.rs (or I guess foo/mod.rs) in the same directory!
  • For common code, which you might want to import from e.g. ../../common you can't just use mod but you can add common = { path = "../../common" } to [dependencies]. That directory has to be a proper crate with Cargo.toml but I think that's ok and probably desirable.

The only downsides I found are:

  1. No IDE support yet.
  2. It prints compilation messages to stdout, which kind of sucks.
  3. 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.
[-] FizzyOrange@programming.dev 4 points 1 year ago* (last edited 1 year ago)

This is 14 years old by now - hardly "modern". RAII itself is even older.

[-] FizzyOrange@programming.dev 4 points 2 years ago

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.

[-] FizzyOrange@programming.dev 4 points 2 years ago

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".

[-] FizzyOrange@programming.dev 4 points 2 years ago

Huh I did not know Roku (the on-the-way-out TV company) made their own scripting language. How bizarre.

[-] FizzyOrange@programming.dev 4 points 2 years ago

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.

[-] FizzyOrange@programming.dev 4 points 2 years ago

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?

[-] FizzyOrange@programming.dev 4 points 2 years ago

This is just an excuse. A poor one.

[-] FizzyOrange@programming.dev 4 points 2 years ago

Should've known better than to what? Use Cloudflare?

view more: ‹ prev next ›

FizzyOrange

0 post score
0 comment score
joined 3 years ago