[-] FizzyOrange@programming.dev 2 points 3 weeks ago

I don't think libuv is really that popular, nor is it that confusing.

But I do agree it's not a very good name. "Rye" is a much better name. Probably too late anyway.

[-] FizzyOrange@programming.dev 2 points 3 weeks ago

Well == is a question or a query rather than a declaration of the state of things because it isn't necessarily true.

You can write

a = (3 == 4)

which is perfectly valid code; it will just set a to be false, because the answer to the question "does 3 equal 4?" is no.

I think you've got it anyway.

[-] FizzyOrange@programming.dev 2 points 1 month ago

Oh wow I've been looking for something nice like that for ages. Python can do this and it's really great for silicon verification test stimulus. I've also done it in C++ using C++20 coroutines, but they are so complicated and low level I ended up having to use a library to help (libcoro). Felt like a bit of a gap in Rust, but this looks like a great solution!

[-] FizzyOrange@programming.dev 2 points 1 month ago

It's significantly less of a nightmare and Deno is downright pleasant.

[-] FizzyOrange@programming.dev 2 points 2 months ago

I'd like to know which specific projects they funded. It's there a list anywhere?

[-] FizzyOrange@programming.dev 2 points 2 months ago

No but I think this is probably a great use case for AI. Haven't tried it though.

[-] FizzyOrange@programming.dev 2 points 2 months ago

It doesn’t look like it would be hard to have (comment "foo bar baz") in an expression

That is pretty much what the official "solution" is for comments in package.json - add "//": "foo bar baz" keys to dictionaries and NPM will ignore them.

In practice it's terrible. You need real comments.

[-] FizzyOrange@programming.dev 2 points 3 months ago

Yeah that's pretty unreadable IMO. I think your second link isn't what you intended?

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

Yeah you're right that comment doesn't make any sense.

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

threading bugs are sometimes hard to catch

Putting it mildly! Threading bugs are probably the worst class of bugs to debug

Definitely debatable if this is worth the risk of impossible bugs. Python is very slow, and multi threading isn't going to change that. 4x extremely slow is still extremely slow. If you care remotely about performance you need to use a different language anyway.

[-] FizzyOrange@programming.dev 2 points 5 months ago

The kitty graphics protocol lets you send images to display in the terminal. I had a play around with it trying to make a similar GUI. The big gotcha is text rendering. You can either stick to normal grid aligned monospace, or I think you could maybe use a texture atlas, but it's not going to be very efficient at all. I haven't got as far as trying that though.

The videos... while they work are probably uncompressed video which is only going to work well over a very fast network.

[-] FizzyOrange@programming.dev 2 points 1 year ago

Never to be seen again...

Seriously though this feels a lot like those books that start with "How to read this book" sections.

view more: ‹ prev next ›

FizzyOrange

joined 1 year ago