Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jmcomets
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
jmcomets
9y ago
Unrelated, but does anyone know what font/colorscheme are used in the screenshots? I find it very slick for code presentation.
32.
▲
by
jmcomets
9y ago
I can't comment on the protocol itself, but including an interactive quiz directing the user to a documentation page is a brilliant idea.
33.
▲
by
jmcomets
9y ago
I think you're hitting an interesting point here. In my experience, there are two kinds of NPEs: 1) On a method call somewhere in a stack with no null checks: here it's not very useful to have an NPE, since it should work (eg. t
34.
▲
by
jmcomets
9y ago
Thanks for the insight on this, I've edited my response. Are there any extra features in Haskell with product types? I've always understood that there was better composition support for product types in Haskell
35.
▲
by
jmcomets
9y ago
Apples & Oranges. Although Rust heavily borrows from the ML family, the fact it has mutability and imperative reasoning makes it hard to compare them. But if you want a short one: - Sum Types EDIT: AND Product Types (silly me) - functio
36.
▲
by
jmcomets
9y ago
I'm truly sorry that GitHub is blocked where you work. Here's the pitch, taken from the repo's README [1]: 1) holyjit aims to be easy: > As a user, this implies that to inline a function in JIT compiled code, one just need
37.
▲
by
jmcomets
9y ago
> which huuuuuge steps toward were taken last week I follow Rust pretty closely, but I can't wrap my finger on what you're referencing here. Got an RFC link? :)
38.
▲
by
jmcomets
9y ago
At cppcon this morning he spent 10s expressing his gratitude, and followed up with a talk on "Teaching Modern C++". In the talk, he explained how C++ needed textbooks/teachers to focus on the message they're trying to pa
39.
▲
by
jmcomets
9y ago
I've been on Gnome 3 for quite some time now, haven't checked out other WMs in a while. I've heard some very good things about i3 though.
40.
▲
by
jmcomets
9y ago
I switched to Thinkpad/Arch this year and so far it's been great. Neatest laptop design I've had, paired with a great setup for development. Best of all, they're not too pricey for the specs.
41.
▲
by
jmcomets
9y ago
I recommend reading The Mythical Man Month[1] to anyone interested in proper SWE project management. There are so many wannabe managers out there that will just through more people at a project which is slowing down. To quote the book: &quo
42.
▲
by
jmcomets
9y ago
I used to be a huge fan of C++. I loved how you could work with a somewhat OO language while still wielding dark powers like: manual memory management, mix-n-match polymorphism (aka. virtual inheritance ), templates, type-erasing. Then I g
43.
▲
by
jmcomets
9y ago
"Parsing expression grammars (PEGs) are an alternative to context free grammars for formally specifying syntax" [1] Basically, you have tools for context free grammars such as GNU Bison or Yacc. This is an alternative, but with PE
44.
▲
by
jmcomets
9y ago
I was pretty surprised, how the heck are unions different from enums? I read that they're essentially the same as C unions (~untagged enums), but I have no clue how `match` works in that case.
45.
▲
by
jmcomets
9y ago
Don't hesitate to check out #rust / #rust-beginners on irc.mozilla.org, I was struggling with BCK for quite a while and asking dumb questions to experienced rustaceans has been very helpful. I've now been using rust for 2 yea
46.
▲
by
jmcomets
9y ago
Could you elaborate? I'm not sure practical usages of Haskell are replaced by Rust/Kotlin, the high-level of abstraction and pure functional paradigm are practical.
47.
▲
by
jmcomets
9y ago
What's surprising is that Scala/Java basically has the same issues, but Scala seems to be more popular due to early adoption by several industry actors (Twitter IIRC).
48.
▲
by
jmcomets
9y ago
Having written quite a bit of Rust, I agree with you that Rust is far from simple and not always as intuitive as say...Python or Ruby for example. However, I do appreciate the syntax which IMO is in that sweet spot between conciseness and
49.
▲
by
jmcomets
10y ago
I agree with you that `filter` is less explicit than something like `copy_if` (C++). Does it return elements matching the predicate or not matching it? I struggled with this for a while in CS. After learning different programming languages
50.
▲
by
jmcomets
10y ago
One-liners are bad if they are obscure and experienced programmers know that. However I wouldn't go as far as say that experienced programmers don't use one-liners at all. As usual in programming, it's all about balancing cla
51.
▲
by
jmcomets
10y ago
Just so this is clear, in Java this pattern is very present, especially since Java 8 (Streams). Before that, there was the Builder pattern[1]. It's also present in C++/C# in the same form. [1]: https://en.wikipedia.or
52.
▲
by
jmcomets
10y ago
> I definitely don't think it makes Rust seem like an appealing option. Between the limited community library selection, the verbose syntax and the borrow checker's extreme complexity to new users, I wouldn't suggest Rust
53.
▲
by
jmcomets
10y ago
> You still have to think about ownership, stack vs heap, when things are freed, clone vs move, and so on. Some responses: - ownership / clone vs move = Valid concern in any imperative language. - stack vs heap / when things ar
54.
▲
by
jmcomets
10y ago
> Perhaps not quite as safe, but at least that they deliver the important parts of that safety without the cost of the learning curve. Sorry to say this but a lot of unsafe code has been written in Java or C#, putting aside the NPEs and
55.
▲
by
jmcomets
10y ago
Moreover, there's stash.rs[1] that provides a fast map that generates keys, which is perfect when you need a fast indexing of generic data. [1]: https://github.com/Stebalien/stash-rs
56.
▲
by
jmcomets
10y ago
You're at a french company using Rust in production? Might I ask which one? ;)
57.
▲
by
jmcomets
10y ago
I apologize for the language, but holy shit ripgrep looks fucking amazing.
58.
▲
by
jmcomets
10y ago
In general it's difficult to measure the productivity of developers, since the a single commit can mean years of maintenance. Measuring the code quality is equally hard: linting and code conventions will only get you so far, designs ne
59.
▲
by
jmcomets
10y ago
I get the heated response to the comment, but I'm not sure you can state this is "the ultimate dream of every designer and product manager". It is very simple and easy, but there are a lot of features missing (swipe left to u
60.
▲
by
jmcomets
10y ago
Same issue here, even on their "Downloads" page [1] it isn't shown available for Mac. [1]: https://www.visualstudio.com/downloads
More ›