Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gnuvince
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
gnuvince
8y ago
> Rust couldn't solve all of these bugs, but it certainly would have drastically reduced the total amount. Well there's certainly a chronological argument that it couldn't have, but I agree with the sentiment. It saddens
122.
▲
by
gnuvince
8y ago
I'm interested to know how the language handles memory; automatic memory reclamation without a GC and that is simpler than Rust seems like a very attractive proposition.
123.
▲
by
gnuvince
8y ago
I admit that I'm very unexcited about non-lexical lifetimes—the cost-to-benefit ratio seems worse than the current model. The current lifetime system is simple to understand: a value is live until its owning variable goes out of scope
124.
▲
by
gnuvince
8y ago
If you don't mind a bit of a re-education, Rust allows you to write programs that are as fast as those written in C or C++ and you'll be more confident that they don't have strange memory bugs. (Reason: the ownership model
125.
▲
by
gnuvince
8y ago
The sad thing is that Rich Hickey had some very good videos when Clojure was a new thing back in 2008–2009. Unfortunately, I've disagreed vehemently with most of his talks since then. In this case, it's completely illogical that
126.
▲
by
gnuvince
8y ago
(Also non-native English speaker) I feel the same way. I think that when I speak, my listener gives me cues (e.g., nodding or frowning) and I react to them: I reformulate if they seem confused or I keep going if they look satisfied. When
127.
▲
by
gnuvince
8y ago
> M-x ansi-term ask for [...]/emacs/libexec/emacs/26.1/x86_64-w64-mingw32/cmdproxy.exe and then throws "Spawning child process: Invalid argument". Ah, that's too bad.
128.
▲
by
gnuvince
8y ago
> * super powerful, easy to use, integrated command and fuzzy file search, also with a good UX. Sounds like you should try ivy and its companions. Ivy offers fuzzy matching for all operations in Emacs (e.g., switching buffers, opening f
129.
▲
by
gnuvince
8y ago
I find Jon enraging, especially when he whines about Emacs: a number of the things he complains about are either fixed in newer versions of Emacs (he's still on Emacs 23) or packages offer a vastly improved user experience.
130.
▲
by
gnuvince
8y ago
Because of integer overflows and floating-point operations, the notion of equivalent mathematical expressions is tricky. fn main() { let a: i8 = 125; let b: i8 = 3; let c: i8 = (a + b) / 2; let d:
131.
▲
by
gnuvince
8y ago
No, he had intrusive pointers; his rectangle nodes were in a couple of doubly-linked lists and an AVL tree at the same time.
132.
▲
by
gnuvince
8y ago
The naïve Rust part is explained in a video [1] that Bryan released a couple of weeks ago; instead of using bespoke data structures for his problem, he shoved everything into HashMaps and BTreeSets and used numerical indices rather than poi
133.
▲
by
gnuvince
8y ago
In our continuous integration system at work, I've enabled sccache with the S3 backend. This reduced the compile times from 20-25 minutes (tests and release build) to 8-9 minutes. Still longer than I like, but it's possible to e
134.
▲
by
gnuvince
8y ago
If you have a blog, that would make for an amazing entry, going from 50% slower to 25% faster. Edit: HOLY CRAP! I have a program written in Rust, ppbert[1], and I just tried wrapping my StdoutLock object in a BufWriter, and I improved the
135.
▲
by
gnuvince
8y ago
Language-wise, Rust is really top-notch, I find it hard to fault any design decision. There are some design choices that annoy me (e.g., two closure types can never be equal), but there is always a fact-based rationale for why things are t
136.
▲
by
gnuvince
8y ago
I got turned off of failure when a reddit user reported that it slowed down his program by 300x and the author of failure's response was that the original poster had misused failure. https://www.reddit.com/r/rust&#
137.
▲
by
gnuvince
8y ago
I'm not sure why you would prefer to (1) create a new trait, (2) create a custom derive for that trait, (3) derive that trait for all the types you want to debug over assigning to a variable and printing. It sounds like an over-engine
138.
▲
by
gnuvince
8y ago
Without going into specifics, can you outline the kind of illegal activities that might appear in a git commit history? I'm guessing copyright infringements mostly?
139.
▲
by
gnuvince
8y ago
An array of dictionaries. In JSON, my example becomes: { "designers": [ {"name": "Guido", "lang": "Python"}, {"name": "Larry", &quo
140.
▲
by
gnuvince
8y ago
To me, there was nothing obvious about the double bracket syntax, e.g.: [[designers]] name = Guido lang = Python [[designers]] name = Larry lang = Perl
141.
▲
by
gnuvince
8y ago
Agreed. I learned awk a bit late in my Linux journey (started using Linux in 1999, learned awk in 2016), but I can't imagine not using it daily now. Great tool to manipulate data, and it's great for when you want a Unix tool that
142.
▲
by
gnuvince
9y ago
I searched for "darkest dungeon" and first hits were for Ed Sheeran and One Direction. I know searching is a tricky problem, but this is ridiculously bad.
143.
▲
by
gnuvince
9y ago
You have two dialects: Safe Rust and Unsafe Rust. Safe Rust is regular Rust code, the kind of code that you should write 99.9% of the time. Unsafe Rust is a superset of Safe Rust; all of the Safe Rust checks still apply. Within an unsa
144.
▲
by
gnuvince
9y ago
> who the hell gets the address of stack memory and returns it? This is C 101 John Carmack, apparently: https://twitter.com/ID_AA_Carmack/status/587077680652230656
145.
▲
by
gnuvince
9y ago
The main issue with this is that AsciiDoc cannot express semantics. When writing manpages, you can specify that something is a flag or a function parameter, etc.
146.
▲
by
gnuvince
9y ago
I mentioned a few months ago in a similar thread that I now actively try to recognize when I'm creating an incomprehensible 300-line "abstraction" in order to avoid copying four line of code.
147.
▲
by
gnuvince
9y ago
> Also he's using emacs. Not anymore.
148.
▲
by
gnuvince
9y ago
A comment thread from a couple years ago that resonated with me: https://news.ycombinator.com/item?id=11087399 I watched about a dozen Handmade Hero episodes, and I was a bit annoyed that every session resulted in a random
149.
▲
by
gnuvince
9y ago
Traits can be used for polymorphism: https://play.rust-lang.org/?gist=5d4bae81014d879b43bad1326dd...
150.
▲
by
gnuvince
9y ago
mg also has keyboard macros, but it doesn't have UTF-8 support yet, which is the reason why I prefer to use jmacs for quick edits.
More ›