Better HN
topnewbestaskshowjobs
Log inSign up

CrimsonVoid

30 karma · joined Jun 6, 2013 (13y ago) · 8 submissions

Submissions

comment 4y ago · link · parent

Sure, I kind of hint at it in another comment in this thread but a few more pain points for me:

* Rust has no way to talk about heap allocations succinctly other than Box; an actual type I had Option<Box<[Box<[&'a str]>]>>. It's more than just Box and Option being poor abstractions for the heap and nullability respectively, but the fact that Rust is a systems programming language and provides nothing to actually help with even mundane problems that arise in systems programming

* there has been almost no iteration in the design space of lifetimes despite being a cornerstone feature of the language

* prolific do_x and do_x_mut methods; there has to be a better way than countless *_mut methods for a language where mutability is so important

My general impression of Rust is that it ships a MVP version of a feature and never really tries to iterate on it, or iteration happens incredibly slowly (const generics being the only notable exception I can think of where almost every release seems to have something to say about const generics). And I get it, things like GATs are important for the language long term, but the "ivory tower" approach has left the rest of the language feeling neglected IMO.

comment 4y ago · link · parent

It's less about getters and setters specifically and more about how much Java's ecosystem relies on code generation through libraries like Lombok instead of just trying to fix the language. Likewise, Rust's answer to everything seems to be "just make a (proc) macro" instead of trying to extend the language. Proc macros do have their place, serde being a great example, but then there are crates like thiserror and bitflags which exist because Rust provides nothing in the language grammar to actually talk about errors and error handling patterns, or bitmasks (which is an incredibly common thing for a systems programming language). Sure you could write out the From<Error> impls instead of using thiserror, but most people aren't going to because Rust makes something that should be mundane incredibly annoying to write by hand.

Side note, Rust best practice seems to be in favor of getters and setters like Java and several popular libraries I've seen don't expose struct fields directly instead opting for set_x() and x() methods. Give it a few years and I'm sure Rust will have its own Lombok crate generating getters, setters, and constructors too.

comment 4y ago · link · parent

I know this is going to be a controversial opinion considering how much everyone seems to love Rust, but does anyone else find Rust incredibly painful to work with, even for simple tasks? Like I'm no stranger to unmanaged languages, and to some extent I cut my teeth on C, but doing anything with Rust always feels like the most aggravating exercise in needless verbosity and the "Lombok problem" doesn't help either. (Funnily enough, both these reasons are why I don't like Java either). I don't want to sound too negative, Rust is a very promising language, but even seven(!) years later it still feels like a pre-alpha language.

comment 9y ago · link · parent

As someone who greatly prefers light themes over dark, ayu seems to be the light theme I've been searching for.

comment 11y ago · link · parent

I added a page to show the full title of videos to make it easier to find specific talks.

http://104.236.115.7/videos.html

comment 11y ago · link · parent

I was having trouble streaming the talks from defcon.org so I decided to mirror it here http://104.236.115.7/ I will probably kill the server in about a week, when load to Defcon servers go down.

The default file indexer for Nginx truncates the file names which makes it hard to find a video, but just appending the file name should play the correct video.

comment 11y ago · link · parent

C++ libraries can optimize smaller strings and store them on the stack. It's commonly known as short string optimization. I'm not sure how many libraries actually use SSO, but I think the three major vendors use something similar.

https://stackoverflow.com/questions/10315041/meaning-of-acro...

https://stackoverflow.com/questions/21694302/what-are-the-me...

comment 13y ago · link · parent

I absolutely loved your talk; not only is it pretty informative but also entertaining, and found myself rewatching it just because. I think your talk gave me enough knowledge of crypto to take another go at Stanford's "Cryptography I" class. So thanks and I'll look out for your book.