Better HN
topnewbestaskshowjobs
Log inSign up

j4cobgarby

118 karma · joined Mar 6, 2021 (5y ago) · 28 submissions

Submissions

comment 2d ago · link · parent

Both mean something, right? At least in the way I use them, Machine Learning is the learning process, and Artificial Intelligence is the result.

comment 2mo ago · link · parent

Really nice! Would be fun if there were a few examples that could be loaded into memory

comment 2mo ago · link · parent

It _does_ look really cool, genuinely, but calling it a "labour of love" and then having AI write the readme/docs seems conflicting.

comment 3mo ago · link · parent

I assume the several comments complementing the style of this app are being sarcastic, because.. come on..

comment 4mo ago · link · parent

Am I missing something? How is it not open source if I can view the source code at that link?

comment 5mo ago · link · parent

I agree, it's a really cool way to lay out code with commentary. I wonder if it would be useful to generate a layout like this from code interleaved with comments, moving the comments to the sidebar.

comment 5mo ago · link · parent

Doesn't it seem odd to have "Pricing" for a protocol that's meant to serve a similar function to IP addresses? Maybe I'm misunderstanding something.

comment 6mo ago · link · parent

Are problems with the ear the cause of this (i.e., the Problem), or just another symptom of a broader problem? My impression from the article is the latter.

comment 7mo ago · link · parent

I never quite understand this stuff, maybe someone can help.

Are cryptocurrencies supposed to be a potential replacement for real life cash? This was my understanding of the motivation behind Bitcoin, at least.

If so, why does it make sense that people can "generate" cash by proving some amount of work done? This of course cannot be done with normal cash.

Is the main functionality of these cryptocurrencies supposed to be "people can send currency to each other", or "people generate currency -- a number -- and sell this currency for real life money"?

comment 8mo ago · link · parent

More generally, it's alt-#. On an ISO (e.g. UK) keyboard layout, shift-3 isn't a hash.

comment 9mo ago · link · parent

This looks interesting! I wanted to find more info about the Gemini protocol, and it's annoying how un-searchable it is now due to Google Gemini.

comment 10mo ago · link · parent

Which dumb phone? I would like to try similar, but there are always certain Android apps I need (banking apps like BankID, payment apps). Do you get a "pure" dumb phone and then a separate Android device for when it's required, or a dumb phone which does a little bit of Androiding?

comment 10mo ago · link · parent

Very cool, does anyone know if I can buy a high quality print somewhere?

comment 10mo ago · link · parent

Use only default (white/black), red for bad, green for good. If you need more than that, like vim or whatever, then maybe a 'fullscreen' TUI is better, with a specified background and foreground. For CLI tools, I'm not sure if I prefer more colours.

The CSS to make the terminals look like iTerm was smooth, to the point I read them as screenshots.

comment 10mo ago · link · parent

It wasn't until he mentioned 'soccer' that I realised football meant American football.

comment 10mo ago · link · parent

Playing around with a bit more, I think the tool might not be suitable for my use cases. If I try it with the command `gcc -Wall` it thinks that each of W, a, l, (and l), are separate single-character arguments, and therefore fails badly:

``` > gcc -Wall -W Unknown flag -a Unknown flag -l Search the library named library when linking. (The second alternative with the library as a separate argument is only for POSIX compliance and is not recom... ```

Additionally, it is really slow, I suppose because gcc has a huge man page? It is really useful for lots of small commands like ls and find, and things where I often forget parameters. Maybe it could be changed so that I can whitelist only certain commands to trigger the hints?

comment 10mo ago · link · parent

I just tried it out, nice! It's a useful tool, but the installation process didn't work for me following the steps as written. As it stands:

* The shellock directory must be in ~/Downloads, otherwise the shellock_bindings.fish fails to source it.

* The installation script in the repo didn't work because it tried to symlink shellock_bindings.fish without specifying an absolute path (`~/.config/fish/conf.d/shellock_bindings.fish -> ./shellock_bindings.fish`) -> caused a recursive symlink which broke.

Now I got it working by making sure to place shellock in Downloads (not ideal long term, I often clear my Downloads folder), and manually symlinking the bindings explicitly. It seems to work pretty well!

comment 11mo ago · link · parent

You can also use the XOR trick, not sure what's faster though.

comment 1y ago · link · parent

For what purpose? Baking? Storing things in the fridge?

comment 1y ago · link · parent

Here's a short writeup of a bit of my build system for a project I'm working on. It's pretty simple, and is just a relatively clean way of recording the repository state when code was compiled, so I can reproduce results later on. Just thought the interaction between git, cmake, and C++ was a bit nice!

21.

Reproducible C++ builds by logging Git hashes(jgarby.uk ↗)

39 points · by j4cobgarby · 1y ago · 43 comments

comment 1y ago · link · parent

I've been working on this tool for a couple of weeks to try and help students in a course on operating systems. They had a task to implement a shell, and it was kind of tricky viewing the processes that their shell makes using top/htop. Lots of them also struggled with setting up pipes properly.

Hence, this tool shows a realtime updating view of the process tree under a given PID, as well as a history log so you don't miss fleeting process executions. It also shows which files are used for each process' stdin and stdout (and, configurably, stderr), as well as information about process groups (which is useful for understanding signal delivery).

I've got some good feedback on this tool from some of the students I actually designed it for, and I'm wondering if it can help anyone else?

Let me know if there are any missing features (a bit of a wishlist is going on at the bottom of the readme already!) Maybe more importantly, there must be some bugs, so if you come across any please let me know!

23.

Rptree – debugging tool for realtime process tree events, pipes, etc.(github.com ↗)

2 points · by j4cobgarby · 1y ago · 1 comment

comment 1y ago · link · parent

This is quite nice! I found the name zenta slightly inconvenient to remember and type, so I renamed the executable to 'relax', but the help messages still say 'zenta'. As a small fix, maybe you can make the help messages print argv[0] as the executable name?

comment 1y ago · link · parent

For me spotify's suggestions used to be good but degraded over time. I wonder if ChatGPT would be good at this? I assume so

comment 2y ago · link · parent

the best I can find for [7, 5, 3] is:

7 5 3

7 1 4 3

2 5 1 4 3

2 5 1 7

2 6 7

2 1 5 7

3 5 7

comment 2y ago · link · parent

Yeah true, maybe could be done with heuristics though - in nearly every case, there's only one single blinking block, which is the cursor. However, not everyone has their cursor configured to blink, and there are cases where there are other blinking blocks. Not sure how to deal with that...