HNHacker News
TopNewBestAskShowJobs

porridgeandrice

23 karma · joined December 20, 2022

submissionscomments
porridgeandrice··on How to share a NumPy array between processes
No, if I have stuff, and I fork(), you, my child process is expected to have a copy of that stuff in it's current state. However, the kernel lies to you. It delays copying the stuff until I write to it i.e until I need to see a new state. Hence, "copy-on-write".

In this case, I am the parent python process, you are the child processes started with the `multiprocessing` module, and the data is the numpy array.

The implication is that the changes made by the parent process to the numpy array post fork() won't be visible to the child processes.

porridgeandrice··on Designing a new concurrent data structure
Isn't this. this? https://swtch.com/~rsc/regexp/regexp1.html
porridgeandrice··on Reaching the Unix philosophy's logical extreme with WebAssembly
https://nand2tetris.org

and my implementation of the projects: https://github.com/porridgewithraisins/nand2tetris

porridgeandrice··on Getting a job at Apple without going to college or doing LeetCode
IME it's a test in which it is easy to grade many people in a way that it is really unlikely that two people end up with the same grade. That is what leetcode achieves and that is really the majority of the reason it is used. So it is just very convenient for hiring. In India, we have companies coming to hire students from colleges, and as the first filter, they give you three leetcode questions, and average the number of test cases you passed in each of them and rank you based on that. I spoke to one of the companies, they said that they had _very_ few people that had the same score, and it was easy to choose within those small sets by reading their resume/whatever.
porridgeandrice··on Squeeze the hell out of the system you have
+1 I'd like to know as well
porridgeandrice··on Squeeze the hell out of the system you have
Yeah, I like doing this too. Not _always_, but for a few things. I use it to emulate partial functions.

In a show hosting/ticket booking app for example, I never want in any case user facing search/by-id endpoints to serve a show from 2 months ago. So I create a view `select * from shows where time > now`. I can now use this as a 'table' and apply more filters and joins to this if I wish.

porridgeandrice··on What's New in Web UI
Highlights:

- Popovers, Selectmenu and other new components.

- Scroll Driven Animations

- CSS Nesting

- Color-mix

- New text styling primitives

- Custom cascading order with @layer

porridgeandrice··on Learn Makefiles with the Tastiest Examples
I assume parallelizing latex builds of separate sections for their website. Like building out blogs/physics and blogs/cs from their latex equivalents in parallel.
porridgeandrice··on The ThinkPad TrackPoint tried to build a better mouse (2020)
I use a regular trackpad, and maintain fingers on the home row. I use the trackpad with my two thumbs.
porridgeandrice··on BugChecker – A SoftICE-like kernel debugger for Windows 11
My Dell optiplex 9020 all-in-one, a compatibility beast, has all the usb ports you can think of, hdmi, sd card, CD drive, VGA... And yes, support for PS2 keyboard and mouse.

It can run windows 11.

Got it in 2012 or so, still running strong with a memory upgrade from 4->12.

Best computer I've owned.

Easy to maintain, nice documentation about the hardware and solid as a rock.

porridgeandrice··on Ask HN: Programs that saved you 100 hours? (2022 edition)
Autohotkey There is simply no better automation program on any OS. I even run a fully fledged tiling wm written in autohotkey. ( For reference, here's when I tricked r/unixporn into thinking it was bspwm https://www.reddit.com/r/unixporn/comments/nhzz3b/confession... )

Fluent search Spotlight on steroids, for windows. Apart from being a search/launcher, it has a bunch of atrociously good features. It lets you use a custom search indexing backend, which brings me to...

Everything A search indexer backend for windows. Really great search.