HNHacker News
TopNewBestAskShowJobs

frankjr

8,335 karma · joined February 6, 2016

submissionscomments
frankjr··on Debian Needs a WinGet
Shipping old but stable versions of packages with security fixes backported is the motto of Debian Stable. If you don't like it, you will not be happy with it.

If you want to stick to Debian, you could try switching to Debian Testing and have newer packages (although the mention "syncthing" is not at the latest stable version there either).

frankjr··on Zig Goals
Compiling to a single C file such that you can then compile the result via say clang is already supported (-ofmt=c). Automatic generation of C header files from your Zig library is WIP. The current recommend approach is to just write the C corresponding header files yourself, the issue mentions a couple of examples.

https://github.com/ziglang/zig/issues/9698#issuecomment-9747...

frankjr··on OpenSSH introduces options to penalize undesirable behavior
https://github.com/openssh/openssh-portable/commit/81c1099d2...
frankjr··on I'm forking Ladybird and stepping down as SerenityOS BDFL
And now June is dead too.

https://www.sophiajt.com/following-new-paths-ahead/

frankjr··on Rust Is for the Engine, Not the Game
No language fits all use cases no matter how much you want it to be true. I'm a fan of Rust and the trend to rewrite things in Rust because usually you get something much faster, safer, and something that reflects current needs (helix, ripgrep, fd, yazi, zoxide, ...) bla bla but if you want Bevy's level of dynamicness (is that a word?), Rust might not be the language to use.
frankjr··on I'm forking Ladybird and stepping down as SerenityOS BDFL
What's the plan for Jakt, the programming language? Does it fall under the SerenityOS umbrella? Will LadyBird continue to use C++? The blog post doesn't mention it.

https://github.com/SerenityOS/jakt

frankjr··on What I think about Lua after shipping a project with 60k lines of code
> Jai has hot loading

It doesn't have any hot reloading capability out of the box.

frankjr··on Arthur Whitney releases an open-source subset of K with MIT license
I don't understand how. How do you debug something this? How do you go about fixing a bug? There are no docs nor tests. It seems like one would spend hours just trying to understand what's going on. Is there a good source on their methodology? Because my mind is blown.
frankjr··on Arthur Whitney releases an open-source subset of K with MIT license
Thanks. I'm now reading this where people are trying to explain what happened in the ref/ directory.

https://github.com/kparc/ksimple/blob/main/a.c

frankjr··on Arthur Whitney releases an open-source subset of K with MIT license
The code looks heavily obfuscated. It's more like "source available" than open source. E.g.

  g(_M,W-=1<<f;xx=M[f];M[f]=x)Ui(M_,Ux=M[i];x?(W+=1<<i,M[i]=xx,x):30>i?_M(i,M_(i+1))+(2*n0<<i):OO())f(_r,pt?x:65535&rx?(--rx,x):e(if(!Tx)n(_r(xU))_M(mx,x-n0);x))f(r_,pt?x:65535&++rx?x:OO())
Edit: Looking at it a bit more, I can't tell if the code is obfuscated or if the author really wrote it like this...
frankjr··on Recall: Stealing everything you've ever typed or viewed on your own Windows PC
2017: People are willingly buying a spy device to put into their homes.

2024: People are willingly activating a key logger.

frankjr··on [dead]
(2014)

That's why it doesn't mention Go's generics which landed in 2022.

frankjr··on How Discord Stores Billions of Messages
> In July, we announced 40 million messages a day, in December we announced 100 million, and as of this blog post we are well past 120 million.

I wonder where they are now 7 years later.

frankjr··on Apple Silicon MacBook batteries can't be replaced under warranty by third party
Haha, thank you. I had actually changed it to "expand" before I noticed your comments because it sounded weird but I couldn't remember the correct word.
frankjr··on Apple Silicon MacBook batteries can't be replaced under warranty by third party
Battery replacements were a lot of fun even before Silicon came along. A few years ago my battery started to expand in my Intel MacBook. I went to an authorized repair shop here in Czechia (to this day there are no official Apple Stores here) and expected to pay something unreasonable (because AppleCare+ is not a thing in Czechia even though I can buy it just fine when ordering via Amazon DE) and because it's Apple.

To my surprise the technician inspected the laptop and said that the keyboard was damaged (a few keys were wonky, remember the butterfly keyboards?) and that there was an official repair program for that. It turns out that the battery, keyboard, and trackpad is a single repair item. If you want to replace one, you have to replace all three. So instead of a battery replacement, I got a keyboard replacement which just happened to include a new battery and a new trackpad. At the beginning of last year the battery started to expand again and I went to an unofficial repair shop instead. They replaced just the battery for ~$150.

frankjr··on I Am So Depressed
https://www.forbes.com/sites/alicegwalton/2017/06/15/the-str...
frankjr··on I Am So Depressed
Welcome to the club. It sucks here. The only thing that works, for me anyway, is spending time in the woods hiking.
frankjr··on The new Framework Laptop 13 with Intel Core Ultra Series 1 CPUs
Either I'm going crazy or there's bug in the configuration wizard - I'm selecting 64GB of memory with Ultra 7 165H CPU DIY, but when I add it to the bag it says just 16GB.
frankjr··on Helix: A post-modern text editor
> They added jumps about 6 months ago

That's not that kind of jump the OP is talking about. dumb-jump/anyjump are plugins which allow you to jump to definition / declaration etc. without having any kind of language server running or having preprocessed the source code. They work by essentially grepping through the source code on the fly with some language specific smartness on top to make it work better.

frankjr··on Helix-gpui: A simple GUI for the Helix editor
That's probably not going to happen as part of the core editor (there's a long discussion about this somewhere on the bug tracker) but should be easy to add using the now work-in-progress plugin system. Scroll down to the Examples section.

https://github.com/helix-editor/helix/pull/8675

frankjr··on Helix: A post-modern text editor
> lack of global search

<space> + /

frankjr··on Little Snitch 6.0 Released
The blog post is mentioned in the first linked article. Needless to say I fundamentally disagree with Apple's decision* - If I explicitly install a firewall, I want it to actually function like a firewall and not let some packets through. The overhead explanation seems a bit like a stretch.

* It's actually not clear whether this is a feature or a bug. Apple never responded to the bug report (FB12088655).

frankjr··on Little Snitch 6.0 Released
Beware that Little Snitch and other similar network filter extensions leak your IP address to the remote server even if there's an explicit block for that server.

https://lapcatsoftware.com/articles/2023/6/3.html

frankjr··on Migrating Uber's ledger data from DynamoDB to LedgerStore
Litestream is open source.

https://github.com/benbjohnson/litestream

frankjr··on IP over Thunderbolt 4 between two Mac Minis
~17Gb/s is not that great for Thunderbolt between Macs. The theoretical maximum is 40Gb/s.
frankjr··on Show HN: Making GNU Make a better Task Runner
> AFAIK, Just doesn't have any way to mark "this task is complete, so don't re-run it". It also doesn't have file-based dependendicies, which are pretty common for any kind of programming.

That's fair but also not what I'm looking for in a task runner, that's why I explicitly said "not a build tool", which to me this falls under (although I realize everybody has a different definition of these terms and where they draw the line if at all).

frankjr··on Show HN: Making GNU Make a better Task Runner
> Whenever I see comments about people trying to reinvent make, my conclusion is that make "as a tool" is inevitably far superior, but people are mostly familiar with a small subset of its functionality, which makes it appear clunky.

If you're looking for a task runner, not a build tool, then make is not "far superior" in any sense and there are much better alternatives, the most prominent probably being "just". Even something as basic as accepting parameters to a task (make fetch <arg1> <arg2>) is awkward because make doesn't understand this syntax and interprets the arguments as targets. The only way to make it work is either through named arguments or empty target hacks and in both cases you need to write the validation logic yourself. In just it's simply:

  fetch PACKAGE VER:
    @echo fetching {{PACKAGE}} at version {{VER}}

  $ just fetch foo 
  error: Recipe `fetch` got 1 argument but takes 2
  usage:
    just fetch PACKAGE VER

  $ just fetch foo 1.2.3
  fetching foo at version 1.2.3

https://just.systems/man/en/chapter_1.html
frankjr··on So We've Got a Memory Leak
That has nothing to do with a particular language, you could use individual allocations in Zig and end up with the same mess. Similarly, you could use memory arenas in C/... and not have the problem.
frankjr··on Japanese angst as India set to overtake as 4th largest economy
I was just about to say. India has more than 10 times the population, you cannot compete with that as countries get closer in terms of development.
frankjr··on Elvish, expressive programming language and a versatile interactive shell
Assuming the first example is in Bash:

- You're not quoting your variables properly to prevent splitting and globbing.

- In case there are no jpg files in the working directory, Bash will put the pattern itself (*.jpg) into the $x variable. You need to explicitly check that the file in the variable actually exists before working on it.

Modern shells do not have these footguns.

← PreviousPage 5 of 23Next →