Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
afranchuk
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
afranchuk
1y ago
For what it's worth, Firefox has had most of these features built into their PDF.js viewer for a while. I believe signatures were recently added. I'm not sure whether there's capability to remove pages or merge PDFs, though.
2.
▲
by
afranchuk
2y ago
Here's an excerpt (which is in a map passed to peg/compile) for numeric parsing: :nonzero-int (* (range "19") (any (range "09"))) :int (+ "0" :nonzero-int) :decimal (cmt (* (? (<- :in
3.
▲
by
afranchuk
2y ago
Writing DSLs is very easy, and fun! The PEG grammars are very elegant to build up. I wrote a language for programmatic recipes (think scaling, unit conversion, etc) with it and it was a delight. I'd provide an example but I haven'
4.
▲
by
afranchuk
2y ago
I've enjoyed the selection on Qobuz, which is all DRM-free and allows mp3 or lossless flac formats.
5.
▲
by
afranchuk
2y ago
Note that Firefox profile management is getting an overhaul right now, including an easy profile switching UI. I'm not sure when it will be landing in release, but it is being actively built!
6.
▲
by
afranchuk
2y ago
I'm the author of this blog post, feel free to ask any questions!
7.
▲
by
afranchuk
3y ago
I forget how I got Trump (it was a different formulation than others mentioned though). But Trump + Titanic = Sinking Ship
8.
▲
by
afranchuk
3y ago
Are you perhaps referring to eagle mode? https://eaglemode.sourceforge.net/
9.
▲
by
afranchuk
3y ago
The persona I generated is a Christmas tree light company targeting nuclear physicists. The results were surprisingly cohesive! However, there is a bug: it seems to insert a newline after every punctuation, including after "Dr." (
10.
▲
by
afranchuk
3y ago
I built an LFS system during one weekend my first semester of freshman year of college. I had too much free time I guess... At the time I made it a 32-bit system since LFS didn't (doesn't?) support multilib and I knew I would need
11.
▲
by
afranchuk
3y ago
Well just today I found unsoundness in a crate I was auditing. It turned out that the crate had since removed the entire module of functionality in question so I couldn't submit a bug, but it led me to take steps to remove use of the c
12.
▲
by
afranchuk
4y ago
Funny, for the last week I've been trying various self hosted photo apps every night on my home server. Tonight was going to be Photoprism and then I see it pop up here! I've just wanted something that allows me to organize and ta
13.
▲
by
afranchuk
4y ago
Storage volumes can be much cheaper. For instance, Backblaze B2 will run you around $6/TB/mo, IIRC. And some providers (usually the smaller ones) have discounts for bulk purchases (e.g. a year). Many self hosted apps support cloud
14.
▲
by
afranchuk
4y ago
This is great! For those unaware, the abi_stable crate makes stable ABIs (even with complex features like trait objects) pretty easy and, importantly, verifiable. It is primarily useful for rust-to-rust abi stability (for instance when crea
15.
▲
by
afranchuk
4y ago
I especially liked the one for the works page itself! Very fun.
16.
▲
by
afranchuk
4y ago
I agree with the significance. I've liked the additions over the past few years of course, but the last time I felt a release was this significant was async, I believe 1.39, about 3 years ago. And coincidentally, the times I've wa
17.
▲
by
afranchuk
4y ago
It doesn't seem so. While not immediately clear, this article doesn't seem to be claiming ownership of the project. It is a third-party review/introduction. They link to the project after the first section.
18.
▲
by
afranchuk
4y ago
I think an interesting distinction is this: it's not that 90% of the typing you do is necessarily useless, it's that it's been done before. Copilot is, in a sense, drawing from a corpus of prior work. In that way you are kind
19.
▲
by
afranchuk
4y ago
I think sweet-expressions[0] address this, though they haven't caught on much. [0]: https://dwheeler.com/readable/readable-s-expressions.html
20.
▲
by
afranchuk
4y ago
If I'm interpreting "cutting whole lines" correctly, in vim that's "dd" in normal mode. Then you can paste (put) with "p". I agree discoverability is not great; to be honest I can't remember how
21.
▲
by
afranchuk
4y ago
Cool! This reminds me of S.js [0] which I've used a decent amount to great effect, but it seems about half the size. I'll have to look at how they compare (though if someone knows off the top of their head that'd be appreciat
22.
▲
by
afranchuk
4y ago
Yes! For the same reason it does the right thing in C APIs. Which many people don't realize (understandably) until they read the fine print in docs. If you read the specification of std::endl, it simply sends a "\n" and flush
23.
▲
by
afranchuk
5y ago
Best to try it to figure it out. I tried compiling a trivial main function with `zig c++` (without cross compile) and the produced binary crashed when run. I think it's far more battle tested for C. But I look forward to C++ being impr
24.
▲
by
afranchuk
5y ago
I'm not at all disagreeing with the premise, but I'd like to point out that having the ANSI escape codes written to the (in this example) log file shouldn't be that much of a problem. Many tools support them (though I admit t
25.
▲
by
afranchuk
5y ago
I don't know about other people, but my tokenizer is parameterized over string slice types. So I tokenize from a slice (be it &str or ropey's RopeSlice) and some of the returned tokens have subslices. This allows tokenization
26.
▲
by
afranchuk
5y ago
Cool! I was surprised to see ropey as a dependency, I agree those utility functions should be inlined. I'm currently using ropey to keep the server side state of documents in an LSP server. I recommend you add at least a slice type, as
27.
▲
by
afranchuk
5y ago
Thanks for bringing that up! I suspected that nix did that, but wasn't sure. This language is also a "task runner" (being used for build systems mainly), so it's not surprising that it behaves like nix does.
28.
▲
by
afranchuk
5y ago
Really neat. I've been working on a lazy parallel language and so I read the "HOW" document closely to see the secret sauce. What's exciting to me is that, while I'm not familiar with the academia behind their decis
29.
▲
by
afranchuk
5y ago
Thanks for filling in the blanks. To clarify (hopefully): I think it's a bit odd to refer to fexprs as if they are an expression themselves. A language could potentially implement it as a flag on an expression to indicate how it should
30.
▲
by
afranchuk
5y ago
Very cool. At work we have a lang (hoping to make OSS eventually) which fills this space and is also a lisp at heart, though with some syntax sugar to avoid parens in common cases. It is also closer to GNU make in purpose right now but with
More ›