Better HN
topnewbestaskshowjobs
Log inSign up

256

61 karma · joined Nov 6, 2017 (9y ago) · 15 submissions

Submissions

1.

Show HN: Karotte, a framework for building robust RL envs(github.com ↗)

8 points · by 256 · 1mo ago · discuss

comment 1y ago · link · parent

there's https://github.com/mogenson/PaperWM.spoon (i haven't tried it)

comment 6y ago · link · parent

> 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.

comment 6y ago · link · parent

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.

comment 7y ago · link · parent

Probably elwell is a Dvorak user. hu is pressed with both index fingers in their home positions in Dvorak.

comment 7y ago · link · parent

There are a lot of other differences between America and China that make this a terrible comparison.

comment 7y ago · link · parent

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

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.)

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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...

comment 9y ago · link · parent

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

comment 9y ago · link · parent

Have you tried lite.qwant.com? It's pretty usable for me in w3m, although still not as nice as DDG.