Better HN
topnewbestaskshowjobs
Log inSign up

Dobiasd

303 karma · joined Nov 8, 2013 (13y ago) · 83 submissions

Submissions

1.

LLM Agents Demystified(github.com ↗)

2 points · by Dobiasd · 12mo ago · discuss

2.

Simple collaborative filtering in pure PostgreSQL(github.com ↗)

1 points · by Dobiasd · 1y ago · discuss

3.

Feeling deceived when receiving (non-labeled) LLM-generated messages(github.com ↗)

2 points · by Dobiasd · 1y ago · discuss

comment 2y ago · link · parent

While I did not succeed in making the matmul code from https://github.com/Mozilla-Ocho/llamafile/blob/main/llamafil... work in isolation, I compared eigen, openblas, and mkl: https://gist.github.com/Dobiasd/e664c681c4a7933ef5d2df7caa87...

In this (very primitive!) benchmark, MKL was a bit better than eigen (~10%) on my machine (i5-6600).

Since the article https://justine.lol/matmul/ compared the new kernels with MLK, we can (by transitivity) compare the new kernels with Eigen this way, at least very roughly for this one use-case.

comment 2y ago · link · parent

Are there any benchmarks on the performance of these new matrix multiplication kernels compared to the Eigen library (ideally for float32)?

comment 2y ago · link · parent

https://github.com/Dobiasd/articles/commit/b5342dd5072480800...

Better? :)

comment 2y ago · link · parent

Thanks for the feedback! I just extended the comment to touch on the "why" part. :) https://github.com/Dobiasd/articles/commit/53f360259ad8e64ca...

comment 2y ago · link · parent

Thanks for the feedback! My code snippets in the article don't use any real/existing language. C# for example, is quite explicit with the transformation of generated to state machines, but also does not provide such methods, as far as I know. I've just added a comment explaining this choice: https://github.com/Dobiasd/articles/commit/f44b897f2a4d20aa9...

comment 2y ago · link · parent

Thanks! Yeah, that was one of the intentions. :)

10.

Internals of the async/await pattern from first principles(github.com ↗)

57 points · by Dobiasd · 2y ago · 15 comments

comment 2y ago · link · parent

The interview for my current job first went mediocre, but by talking about frugally-deep (a side project of mine) I was able to excite my (now) employer. :-)

https://github.com/Dobiasd/frugally-deep

comment 3y ago · link · parent

Hoogle is really amazing!

Inspired by it, I implemented something similar for FunctionalPlus (a functional-programming library for C++): https://www.editgym.com/fplus-api-search/

I'd love to see more projects taking this path too. :)

comment 3y ago · link · parent

> I spent some time over those 30 years looking at new IDEs, trying them out, configuring them, and each and every time this was time wasted, because the IDE was discontinued, abandoned, or otherwise became useless.

"wasted" sounds a bit too hard to me. If you learn and use some tool productively for some years, even if this stops, the years were not wasted. Ephemeral things can also have value.

comment 3y ago · link · parent

Yeah, this one does something much less insane, i.e., it converts the paths to the tree outputs into their corresponding DNS (disjunctive normal form) and represents each term as a node (side by side in the same layer) in the NN, as described by Arunava Banerjee in "Initializing Neural Networks using Decision" [1]. The resulting NN architecture is much more reasonable than the one that treebomination produces.

[1]: https://www.cise.ufl.edu/~arunava/papers/clnl94.pdf

comment 3y ago · link · parent

Thank! Yes, in contrast to treebomination, using TF-DF can actually make sense. ;)

comment 3y ago · link · parent

Thanks! This looks interesting. Some of the main differences I can spot so far are: - Hummingbird does not construct a NN with an architecture isomorphic to the source decision tree but instead cleverly compiled it into other (more sane) tensor computations. - Hummingbird is actually useful. ;)

17.

Treebomination: Convert a scikit-learn decision tree into a Keras model(github.com ↗)

79 points · by Dobiasd · 3y ago · 6 comments

comment 3y ago · link · parent

EditGym - text editing training: https://www.editgym.com/text-editing-training/

It's a website for practicing manipulating text (start -> target, like a diff) quickly (timed) and efficiently (few keystrokes). The allowed keyboard shortcuts are only the "common" ones, that you can use in most "normal" (not Vim, not Emacs) text editors or IDEs.

I made this page not only because I was interested in building it, but also because I actually wanted to have such a training tool. Turned out, I really like using it, but almost nobody else does. :D (There are ads, but the revenue is basically zero.)

comment 4y ago · link · parent

> 1. It allows for minimal disruption to thinking process, close to 90% of the time even when coding is not actively typing, but when typing is subconscious and fast it removes the potential of where it interrupts the thinking process.

I agree, and even wrote an article about that a few years ago. :-)

https://github.com/Dobiasd/articles/blob/master/how_touch_ty...

comment 5y ago · link · parent

You're absolutely right, of course. :) While this was not the point of this article, I just added a remark about this important fact nonetheless: https://github.com/Dobiasd/articles/commit/2a251204183cb45e7... Thanks!

21.

Fixing under-engineered code vs. fixing over-engineered code(github.com ↗)

20 points · by Dobiasd · 5y ago · 44 comments

comment 5y ago · link · parent

(author here)

Thanks for the nice feedback. :)

Regarding your idea, I actually did this for other topics too. You can find the results here: http://www.editgym.com/subreddits-and-their-choice-of-words/

comment 6y ago · link · parent

Wow, what an effortful solution. I simply use a recliner and a monitor mount, and it works perfectly for me.

Components similar to the ones used in my setup:

- https://i.imgur.com/fdcwta6.jpg

- https://i.imgur.com/rdyJnQX.jpg

The mouse is located on the armrest (I don't need to use it too often), and the keyboard (a heavy and thus stable one) is on my lap (I don't need to look at it while typing).

24.

Covariance and contravariance explained without code(github.com ↗)

3 points · by Dobiasd · 6y ago · discuss

25.

Why a generic implementation can be the easier-to-understand solution(github.com ↗)

3 points · by Dobiasd · 6y ago · discuss

comment 6y ago · link · parent

Thanks. I committed a change (https://github.com/Dobiasd/articles/commit/8ac8db11eb95de688...). Feel free to open a PR if you have a better phrasing in mind. :)

comment 6y ago · link · parent

> This article feels like it was written by someone half-way through [...]

You might be right. I'm not a principal engineer. :)

The first solution in the wild we came up with back then when confronted with this problem, actually was to use a lock-free queue. Only later we figured out, that we did not need the prioritizing after all, and our software worked just fine with all threads having the default priority.

comment 6y ago · link · parent

> I would like to understand why priority inversion is not a solved problem.

Maybe I just was not careful enough in choosing this phrasing when writing the article.

Do you think it would make sense if I change "but it's far from being solved once and for all." to "each of them with different upsides and downsides."?

123