Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gnuvince
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
241.
▲
by
gnuvince
11y ago
> It seems Rust sacrifice too much for the sake of safety. Like what? Given the constraints that Rust has, I don't see much that could radically be changed. Little things like the ? operator (equivalent to try!()) can improve the
242.
▲
by
gnuvince
11y ago
I'm learning Rust by writing a toy compiler, definitely a high-level task, and I'm finding that Rust is pretty good for that. Some highlights: - Algebraic datatypes and pattern matching: extremely nice for compiler work where you
243.
▲
by
gnuvince
11y ago
Learning to program is about solving problems using a computer. Any programming language allows this, however some languages make it harder than others, and C is in that category. A language like Python has very little quirks that will st
244.
▲
by
gnuvince
11y ago
I think he meant that the commit should work fine, but the push would fail.
245.
▲
by
gnuvince
11y ago
Or if Github had added Mercurial support at the same time Bitbucket added Git support (circa 2011?), I do believe that the playing field would be a lot more even today than it actually is.
246.
▲
by
gnuvince
11y ago
I remember when this was first published, I watched the video and then rushed to install plan9port and try Acme. I used it for a couple of days before going back to Emacs, but Acme did leave a very positive impression on me. - I really lik
247.
▲
by
gnuvince
11y ago
Same for me. Cool package if it floats your boat, but it's not what I look for in an editor, especially the "crowd configured" part.
248.
▲
by
gnuvince
11y ago
Look at the list of features that pymux has that tmux doesn't.
249.
▲
by
gnuvince
11y ago
I don't know C++, so sorry if this is a dumb question: what's the difference between a tuple with named fields and a struct?
250.
▲
by
gnuvince
11y ago
Thanks for that link! I'm currently writing a compiler for a minuscule language[1] and it's great to be able to look at how other people tackle the same problem and learn. [1] https://github.com/gnuvince/mini
251.
▲
by
gnuvince
11y ago
I wish someone would take that content and give it proper typesetting; the content is quite good and accessible, but the presentation makes reading quite unpleasant.
252.
▲
by
gnuvince
11y ago
> Didn't openbsd attempt to rewrite sudo recently? There was a point about simplifying its configuration syntax. As the other two commenters said, you must be thinking of doas. Doas isn't a rewrite of sudo, it's an entire
253.
▲
by
gnuvince
11y ago
> The installer is kind of spartan, yes, but it is not difficult to figure out. In fact, it asks the same questions as a typical Ubuntu install: keyboard language, timezone, username + password, partitioning, network. They throw in a co
254.
▲
by
gnuvince
11y ago
For almost 10 years, the router at my parents' was my first PC (a Pentium 75 MHz with 16 MB of RAM and a 1 GB hard drive) running OpenBSD 3.0 or 3.1; I installed it, configured it, put it in a closet in the basement and didn't hav
255.
▲
by
gnuvince
11y ago
And I don't understand why. Take the two most popular mobile platforms, iOS and Android: people there routinely download and install new applications and typically never interact with Facebook, Twitter, Gmail or Instagram via their br
256.
▲
by
gnuvince
11y ago
The Red Dragon Book is great (I like it better than the newer Purple edition), however for a gentler intro, I really like Crafting a Compiler[1] by Fischer et al.: the first chapter does a great job of introducing the role of each part of a
257.
▲
by
gnuvince
11y ago
List.mapi was added in OCaml 4.00.0 [1], so it's likely that you are using an older version of the compiler. [1] http://caml.inria.fr/pub/docs/manual-ocaml/libref/List.html
258.
▲
by
gnuvince
11y ago
Hi, no the course isn't on a MOOC platform. The website from last year is available here: http://cs.mcgill.ca/~cs520/2015/
259.
▲
by
gnuvince
11y ago
I love writing compilers in OCaml: I T.A. a compiler class and my own implementation of the project (a compiler for a not-quite subset of Go) is written in OCaml. Compared to my thesis project which is written in Java, OCaml is a breath of
260.
▲
by
gnuvince
11y ago
Two things: a) Maxime works on a compiler for JS, so even if something is documented to death, it usually makes analyses less precise and/or more complex. b) Many statically-typed languages have a REPL (OCaml, Haskell, Scala); this is
261.
▲
by
gnuvince
11y ago
Killed.
262.
▲
by
gnuvince
11y ago
Pretty sure that's not Comic Sans.
263.
▲
by
gnuvince
11y ago
What excites me most about the selection of John is that he's interested in bringing modern IDE features to Emacs without transforming it into Eclipse or Visual Studio. I think that he'll show us just what an excellent tool Emacs
264.
▲
by
gnuvince
11y ago
Hey Anton, are you attached to using markdown? A nice alternative, and the one I use for my own notes, is Emacs + org-mode. If you're a vim guy, you can load up evil-mode to get the vim keybindings. Org-mode is a really nice piece o
265.
▲
by
gnuvince
11y ago
A few years ago, Andrei Alexandrescu showed that the dmd compiler was actually faster than the gc compiler, and D supports templates. Recently, with 1.5, Go has shown that it is ready to take a hit on compile-time speeds. I don't t
266.
▲
by
gnuvince
11y ago
Unit testing is a burden because (a) a programmer needs to think of the cases that must be tested, (b) a programmer needs to actually write them, (c) they can only act as a safety net. When possible, it's very advantageous to encode
267.
▲
by
gnuvince
11y ago
A couple times a year, I'll scour a few .emacs.d repos on github and see if I can find something interesting in there.
268.
▲
by
gnuvince
11y ago
I am not the author, so I don't speak for him, but I feel that I could write much more secure code in Rust than in Python mainly because in Python the onus of making sure everything is okay falls 100% on me. In Rust, the compiler with
269.
▲
by
gnuvince
11y ago
One nice side benefit of their usage of MagicPoint; it's easy to link directly into a specific slide.
270.
▲
by
gnuvince
11y ago
Quoting myself from the lobste.rs thread[0]: >> No matter how good the interface is, it’s almost certain this will never hit Linux in the next 5-10 years. It’s not because the interface is bad, but because the glibc-devs and other peo
More ›