I can’t even figure out how to iterate over a Range of Vectors? iter and collect both don’t exist... Google doesn’t seem helpful either. I don’t know any rust but it seems unforgiving at the first hurdle here :-)
My least favorite Rust type
121–130 of 298 posts
Re: My least favorite Rust type
#122Earlier quoted context omitted.
I do ignore him. I was only pointing out that I don't take him seriously, in response to referencing him.
For someone who ignores him you’re spending a lot of time (27 comments on this post) griping about him.
Re: My least favorite Rust type
#123Earlier quoted context omitted.
Yes, but now you've shifted the goalposts, because I think most people would generally consider PL researchers to have an understanding of programming language design.
Well, that's fine, then. Many of them do eventually create something useful later. Johnathan Blow is a game designer, though.
At the end of the day he's someone who do write software for a living since decades, and has strong opinions and expectations. And he's using this to create the tools he wants to have.
Re: My least favorite Rust type
#124Earlier quoted context omitted.
If you're counting the language by "how many pages of specification" it takes up, perhaps. To me is the language is really like the many features it had when it came out, and then the standard library improvements since then have been "string routines" and then "more string routines" and then "atomics, and also some string routines". Now C++, that's a language that has changed a huge deal–your C++03 code is obviously…
It sounds like you actually haven't been using C for very long, if that's what you think standard library changes amounted to. By your definition, it hasn't changed too much since the release of B in 1969.
Re: My least favorite Rust type
#125Earlier quoted context omitted.
I don't think it's reasonable to make a comment like this without explaining why. He has designed a programming language, so it seems fair to assume he'd have an understanding of programming language design.
You got a link for the compiler for said programming language?
Re: My least favorite Rust type
#126I feel like this is an example of what Jonathan Blow calls a "Big Idea" or a "100% solution". His thesis is that when you make a feature of a language too abstract and usable in many different contexts, eventually there will be so many corner cases that the result will almost certainly be clunky and full of footguns. He claims that language designers should aim for "80% solutions" instead, which cover most common usa…
A good language designer will see that users want a general way to query over data, and create something like LINQ.
Of course, you're right that language designers shouldn't go for a 100% solution. Monads are kind of the classic 100% solution. You can do anything with monads, but that means you can do anything with monads.
Re: My least favorite Rust type
#127Earlier quoted context omitted.
He has some really good fantasies. But all he has is words.
I know nothing about the discussion of whoever this dude is, but I am very impressed that HN hasn’t rate limited your comments with all the grey I’m seeing.
Re: My least favorite Rust type
#128I can’t even figure out how to iterate over a Range of Vectors? iter and collect both don’t exist... Google doesn’t seem helpful either. I don’t know any rust but it seems unforgiving at the first hurdle here :-)
Going to the Step docs[1] you'll see that its only implemented by integer types and char. If Vec implemented Step, you could iterate over it.
Also, if you're referring to the "contains" guessing puzzle, you have to look at Range::contains docs to see it uses Vec's PartialOrd implementation (basically comparison), in which docs state its elements are compared lexicographically.
Usually in Rust the first thing I'll do when trying to do something very specific (iterate over a Range of Vecs) is try it at the playground (play.rust-lang.org) and/or just look at std docs.
[0] https://doc.rust-lang.org/std/ops/struct.Range.html#impl-Ite... [1] https://doc.rust-lang.org/std/iter/trait.Step.html#implement...
Re: My least favorite Rust type
#129I feel like this is an example of what Jonathan Blow calls a "Big Idea" or a "100% solution". His thesis is that when you make a feature of a language too abstract and usable in many different contexts, eventually there will be so many corner cases that the result will almost certainly be clunky and full of footguns. He claims that language designers should aim for "80% solutions" instead, which cover most common usa…
This statement seems very true, even to the point of “duh” for people who have designed and maintained semi-widely used API or applications. I wonder where the language design wisdom to the contray come from.
Re: My least favorite Rust type
#130Earlier quoted context omitted.
You got a link for the compiler for said programming language?
Are you implying that it doesn't exist? It clearly does.