Better HN
topnewbestaskshowjobs
Log inSign up

jbarberu

600 karma · joined Apr 12, 2013 (13y ago) · 201 submissions

Submissions

comment 4d ago · link · parent

    Point foo = {
       .y = foo(),
       .x = bar(),
    };

    calls foo(), sets x to it, calls bar(), and sets y to it. And
I think you meant the other way around...

comment 4d ago · link · parent

Compilers like to make code go brrr as much as they can. With crypto you want the code to run at a deterministic speed (execution time), regardless of input. With hand written assembly you can (more easily) make sure you have the same cycle count regardless of what the input is.

comment 2w ago · link · parent

As someone interested in 3d-printing, and not particularly interested in AI chips, having a (Tensor Processing Unit) somewhere in the title would have been nice...

comment 3w ago · link · parent

Unlikely, Raspberry Pi Pico 2 W is a microcontroller, not a computer. It runs either bare metal or an RTOS.

comment 1mo ago · link · parent

Sweden would like a word...

comment 1mo ago · link · parent

I recently closed down a VPS I had been running for the last 10 years. Mostly used it for hosting a personal website and some smaller other static sites, as well as git repo backups.

After getting into home assistant and setting up a proper home server I no longer saw a need to keep the VPS running. With cloudflare reverse proxy I can still host personal websites, but from inside my home network. Since getting the home server I'm discovering a lot of neat self hosted options and use it a lot more than I ever did the VPS. If nothing else, hosting your own stuff provides a great place to learn and explore. It doesn't have to be always on/on the internet for that to be true though.

comment 2mo ago · link · parent

My personal tier list is:

- Bandcamp

- CD

- 7digital

I host the media on a Jellyfin server and use offline playlists on my phone with Finamp for Android, works quite well for me!

comment 3mo ago · link · parent

Was going to reply that I would probably consider myself a power user of my Casio W-736. Features I use:

- Check the time (many times daily)

- Count-down timer (many times daily)

- Stop watch (weekly)

- Check date (a few times per month)

- Secondary time zone (rarely, since the people I care about are in the same time zone or 6h behind and easy enough to convert in my head)

I've had a fitbit in the past but had a hard time with having to charge it regularly, which often resulted in forgetting it at home. The added features did not outweigh the risk of being without it every now and then.

comment 3mo ago · link · parent

As long as I get an enhanced pet biscuit for my cat...

comment 3mo ago · link · parent

"when the bit count increases yet again".

Maybe I lack imagination, but I doubt we'll be needing to address more than 18EB in personal computers for a while longer than 20 years.

comment 4mo ago · link · parent

Beating the GPU performance bump from 1080-1990 would be hard indeed...

comment 4mo ago · link · parent

As someone who one week ago switched from a Debian to NixOS setup, using docker compose, I'd be very interested in hearing more if you have any resources or tips to share.

I was hoping to move over to running rootless containers, but so far my HA setup has proven to be a pita to get working.

comment 9mo ago · link · parent

0.5" at 10' wide screen (assuming no letter-boxing). GBA screen is 240x160 pixels.

comment 1y ago · link · parent

Also curious what MCUs you're working with to give you this impression?

RP2040 is 264k, RP2350 is 520k.

I use NXP's rt1060 and rt1170 for work, and they have 1M and 2M respectively, still quite far away from 16M and those are quite beefy running at 500MHz - 1GHz.

comment 1y ago · link · parent

Maybe this fits the bill? https://www.youtube.com/watch?v=ARwBwHZESOY

comment 2y ago · link · parent

My approach for number 3 is to look at previous months and escrow money for it every month, and then pay it off once the bill comes due. From the accounting side you only see the monthly cost of the bill, even though it looks big on the bank statement.

comment 2y ago · link · parent

"I use a single 12k mAh Anker battery bank".

Is it really? Or is it a 12G nAh battery bank?

comment 2y ago · link · parent

I'm from one of those European countries and still also read it as it taking over a year to boot...

comment 2y ago · link · parent

I use a command that'll play a good/bad sound effect based on previous shell command exit code.

Something like:

  function boop() {
      local last="$?"
      if [[ "$last" == '0' ]]; then
          sfx good
      else
          sfx bad
      fi
      $(exit "$last")
  }

I'd then do:

  $ make -j; boop
or

  $ nmap <...>; boop
That way I can focus my attention elsewhere while waiting for stuff that'll take anywhere from 20s-2min without losing track of time.

Lately I've been experimenting with throwing in notify-send in there too, but find it a bit much to both get sound and visual feedback.

comment 2y ago · link · parent

Having implemented a custom matrix in qmk, I can say the timescale involved is not something you'd notice a difference between diodes vs diodeless. On ARM boards there's a setup delay to let the gpio propagate before reading the columns, which by default is set to 0.25us, which means reading 4 rows would take about 1us.

I built a macropad that has some regular keys and a SNES controller on the "same matrix", total scan time is 335us, which is dead slow as far as scanning goes, but nothing you'd be able to notice.

Other points are fair though, fewer parts in the BOM. Though routing is a bit trickier with diodeless, especially if you also want to adressable RGB.

comment 2y ago · link · parent

I started my ergo-keyboard journey with a corne. I ended up having issues with the thumb cluster positioning and built my own prototype on new years eve this/last year. That board features four thumb keys, six columns, with four rows for index and middle finger and five for ring finger and pinky (essentially a 6x5 board with four of the bottom keys moved into a thumb cluster. A lot of keys ended up unused on that design (the lowest pinkey and ring finger keys were completely useless).

A couple of months back I built another prototype, this time with a 6x4 + 4 layout. I'm still not loving the layout, four keys is too much for the thumb cluster and I'm looking at dropping down to three. Ironically I've already setup my layout so it almost only uses 6x3 + 3 (I use the top row for non-typing keys like F1-F12), and in effect reinvented the Corne that I started out with...

comment 2y ago · link · parent

I definitely don't have an inner voice. I certainly can "enable it", for things such as composing this reply. But in general I'd describe it as a stream of thought, not bound to any language. Then when I need to actually communicate I "pipe" it through whatever language I need (I grew up in a home with multiple languages, don't know if that influences it).

One way I notice this is how thoughts are generally unpacked and stored without a language association, meaning I can't remember how people phrased something, only how I interpreted it. I feel like this is a decent memory optimization, but it drives my wife nuts and can be very unhelpful during arguments...

comment 2y ago · link · parent

As others have suggested, be kind to yourself. Inspiration comes and goes, and the key is to ride it when it comes.

I used to feel a strong need to work on side project early in my career, that I had to keep up with trends and test out new languages (software developer by trade). Since having a kid I realized how precious little time I have and discovered the need to feel in control of what I spend it on. If I want to zone out one evening watching Youtube videos, that's ok, as long as I decide to do so.

Last year I had long periods of time where the only thing I'd do in my "me time" was reading. I plowed through most of Ryk Brown's Frontiers Saga (read 40 something books before summer), then completely stopped reading for the rest of the year and dove deep into teaching myself PCB design (made a SNES Macropad and put it on Tindie). Right now I've slipped into 3d printing and mechanical CAD, but the goal is to get back into electronics and tackle another keyboard design.

The key I think is to find projects that really interest you. Doing something in your spare time because you feel you "should" do them is a recipe for failure and misery. For me it was abandoning the idea that I'd learn to play the guitar and get fluent in Spanish, if I ever get a true passion for either there will always be time in the future.

One last thing to keep in mind is that what ends up on Hacker News is perhaps not your Average Joe. The internet is great for bringing people together, but it's easy to get sucked into a bubble thinking you have to be like John Carmack or you might as well give up.

comment 3y ago · link · parent

Threw in a configuration that maps: Right: Step Over Down: Step into Up: Step out A: Continue Start: Toggle Breakpoint

Can't say that it feels super useful, but amusing nonetheless.

comment 3y ago · link · parent

I built a qmk keyboard with a SNES port, I can debug my code with a SNES controller :]

comment 4y ago · link · parent

There are already products doing just that, the Analogue Pocket comes to mind (https://www.analogue.co/pocket)

comment 4y ago · link · parent

Now I'm curious about how you manage to get such large screenshots. I just tried and with a total resolution of 5120x1200 (over 3 monitors) I get a 35x difference between a random song in FLAC (28Mb vs 729Kb)

comment 4y ago · link · parent

I always reach for the non-ratcheting screwdriver when working on electronics. I find the ratcheting mechanism on all drivers I've used to have too much resistance and just start screwing the screw back in rendering it useless and bulky. A bit drive with an end cap that rotates seems to work best for me.

For automotive it's a different story, but then I'd use a ratchet wrench anyway, and fixed screwdrivers in the engine bay as the bits like to fall off in the worst places.

comment 4y ago · link · parent

I tend to try to work on a project that I have a personal need for. Currently I'm working on a budgeting application. My background is primarily in Desktop application development (C++ Qt, C# WPF, OpenGL, etc) in the games industry. For my budget application I chose to use Python as it's easy to do the annoying bits (string manipulation, filtering lists, serialize/deserialize json, xml, csv). I recently hit a point where I wanted to send some transactions to my wife for review and decided it would be useful if it was web based. Good time to learn some Django, which I did.

Having a young kid helps to keep me focused while I'm coding as I know my free time is very limited :)

comment 4y ago · link · parent

Works on FF desktop (I didn't realize I had to use the arrow keys to navigate at first).

Pretty cool :)

1234567