HNHacker News
TopNewBestAskShowJobs

256

61 karma · joined November 6, 2017

submissionscomments
256··on The Future Is Niri
there's https://github.com/mogenson/PaperWM.spoon (i haven't tried it)
256··on Operating Systems Without Systemd
> My problem with systemd isn't pid 1. It's all the rest of the shovelware that comes along for the ride. And it's the "you'll use what we tell you to use" attitude of the project.

This could not be further from the truth.

256··on The 1, 2, n pattern
The problem with this in practice is that you're often not the person implementing the 3rd instance. It's some other dev who comes and sees 2 copy/pasted implementations, either figures there's a good reason for it, or is lazy, or is risk adverse, or just wants to get the job done and move on, and copy/pastes it a 3rd time.
256··on Chorded keyboard
Probably elwell is a Dvorak user. hu is pressed with both index fingers in their home positions in Dvorak.
256··on Study: Immigrants and their kids founded 45% of U.S. Fortune 500 companies
There are a lot of other differences between America and China that make this a terrible comparison.
256··on D as a C Replacement
I don't think that's fair. D interfaces with C++ better than any other language I can think of. See https://dlang.org/spec/cpp_interface.html
256··on Comparing the Same Project in Rust, Haskell, C++, Python, Scala and OCaml
I wrote the python compiler. It's very slow. With the optimizations it's probably something on the order of O(n^3) or O(n^4). One of the test cases took seconds to compile. I made no effort to optimize the compiler speed.
256··on Comparing the Same Project in Rust, Haskell, C++, Python, Scala and OCaml
There is a mandatory compilers-lite course at UW and he teaches the advanced version of it, where the project is to fill in pieces of a Scala-lite compiler written in Scala.
256··on Comparing the Same Project in Rust, Haskell, C++, Python, Scala and OCaml
Hi. I wrote the python implementation. I've had prior experience with compilers and I'm obviously biased but I would say it's quite readable. The main compiler part (without optional features or the LR(1) or lexer generator) is 2040 lines and contains very little magic. It would be easy to translate 1-1 to idiomatic C++ for instance - it would just be much more verbose. eval() is only used by the lexer generator. The metaprogramming could have been avoided by using dataclasses (but the marker used python 3.5).

(To be clear, the optional portions in which I implement SSA, various optimizations, a Hack-style allocator and some ad-hoc codegen is much less readable.)

256··on Tether has “dissolved” relationship with auditor Friedman LLP
I'm guessing this is because most people who trade tether don't intend on holding it for long, so the "shennanigans" surrounding tether aren't as likely to affect them.
256··on Ask HN: How to Seriously Start with Machine Learning and AI
I haven't looked for any lectures because I learn best from reading books. So, I don't know, sorry. I'm interested in a solution set too.
256··on Ask HN: How to Seriously Start with Machine Learning and AI
I don't know much about AI but for ML specifically Elements of Statistical Learning is fantastic. I find its explanations a lot easier to understand than other resources. I recommend you skim through it to get a taste. Additionally if you prefer lectures ETHZ has recordings of their ML class[1].

The best way to learn the details is of course to read the original papers. This is especially true for following along with the latest developments in deep learning.

[1] https://www.ethz.ch/content/vp/en/lectures/d-infk/2017/autum...

256··on The Girl with the Brick Earring
This is indeed an interesting problem. If you just want to minimize the number of rectangles there is a neat solution on stackoverflow [1] that uses minimum vertex cover (equivalently, bipartite maximum matching).

[1] https://stackoverflow.com/a/6634668

256··on Qwant, a European search engine that respects your privacy
Have you tried lite.qwant.com? It's pretty usable for me in w3m, although still not as nice as DDG.