News for hackers. Stuff that matters.

msanlop

got 0.1s :)
I'm reminded of Test Pilota Pirx, a polish movie, filmed in part in the US. There's some car chase scenes in american roads, and one scene where the main character gets a beer at a McDonald's[0] while looking around in a mall. I don't know much about the history of censorship but I was surprised as I imagined that would be out of line then

[0] https://youtu.be/20-dt24F6sM?t=1641

Re:Closing the Chapter on OpenH264 on Tuesday March 25, 2025 @11:39AM (#43472638)
including digital footage with film grain added in post?
Re:Optimistic Locking in B-Trees on Saturday March 08, 2025 @06:30AM (#43299356)
Indeed, generally delegation has become to mean that there is a dedicated server thread that executes critical sections. Where as combining indicates that any thread can become a combiner while acquiring a lock, for a certain period of time. For the project, we used queue-based combining, which seems to be similar to the the lock in the paper.
Re:Optimistic Locking in B-Trees on Friday March 07, 2025 @07:56PM (#43296508)
I tried looking for papers on the subject but couldn't find much. There recent research about in-memory B-tree, and there is has been shown that smaller pages (sizes as low as 256/512B) are more performant due to better cache behavior[0]. The general wisdom seems to be that disk-based databases' IO performance is the main bottleneck—but again I couldn't find any concrete data/benchmarks about why those higher sizes were chosen.

[0] There's even some cool research about B-trees that have the layout depend on the probabilistic distribution of the lookups: https://dl.acm.org/doi/10.1145/3592980.3595316

Re:Optimistic Locking in B-Trees on Friday March 07, 2025 @07:44PM (#43296441)
Nice! I actually worked on this last semester for a project. We got some promising preliminary results that showed performance gains on B-trees by using "delegation" on top of optimistic lock coupling.

The way delegation locks work is by having threads delegate their critical function instead of getting exclusive access to shared memory. Think of a client/server model, where the server executes other core's critical sections. For machines with very high core counts, the result is that the shared memory remains valid in the delegate's cache, instead of each new lock holder getting cache misses and fetching memory from other cores (or worse, other sockets).

Re:Ask HN: Who wants to be hired? (February 2025) on Monday February 03, 2025 @12:58PM (#42920912)
Location: Switzerland

Remote: Yes

Willing to relocate: Yes

Technologies: Python, C, Java/Scala, JavaScript/TypeScript, C++, SQL, git, CMake, Docker, GNU/Linux, HTML/CSS

Résumé/CV: https://drive.google.com/file/d/11wghLICyMQw3O23_LuaXCevhdkJ...

Email: Please refer to CV

I'm a new graduate with a strong curiosity for technology and computer science, mainly looking for opportunities in systems programming or backend development.

One thing that keeps on giving for me me is being able to watch some random youtube video like its nothing. I can click on a random 200 view video from 12 years ago and scrub through it basically no latency. Thinking about how every little packet goes up and down the stack and around the world... The whole infrastructure to make it so seamless.

Meanwhile watching a video from an external drive or my wired SMB NAS fails half the time :|

Re:Stimulation Clicker on Monday January 13, 2025 @07:00PM (#42691330)
> sort of a demo of how we're all dumber than lab mice

Funny you mention that, in the scrolling "breaking news" bar one of the stories was "LAB RATS UNIONIZE AND DEMAND FAIR COMPENSATION"

I tried Orion for a bit but unfortunately it is still a bit too unstable. The one bug that made me put it aside for now was Orion maxing out a CPU for no reason (while locked) and coming to my macbook burning to the touch with almost no battery. This happened to me twice. Otherwise the browser is really good
Re:I am rich and have no idea what to do on Friday January 03, 2025 @08:44AM (#42585582)
>One video is worth a thousand words

>Easily record and share AI-powered video messages with your teammates and customers to supercharge productivity

This is the first thing you see when visiting the website. Ctrl+F finds "AI" 10 times in the page. Like the other commenter said, it probably has nothing to do with AI, but this is what sells at the moment

I would add "A Bivvy, a Phone and a Drone: Cycling Home from China"[1] to that great list. As well as Ed Pratt Unicycling The World series [2]

[1] https://www.youtube.com/watch?v=Mmdxs_0yYwc

[2] https://www.youtube.com/playlist?list=PLocRYksAqGOJnr-Y0eyP8...

Re:How types make hard problems easy on Thursday December 19, 2024 @05:52PM (#42466568)
> get bogged down typing the best possible ways to do it but it's a moving target

As someone who is still learning this is a huge reason why I've come to love dynamic languages. Any project I do involves a lot of rewriting as the code evolves, I found that trying to predict ahead of time what the structures and types will be is mostly a waste of time. The best middle ground for me so far has been using python with type hints. It allows for quick iteration, I can experiment and only then update the types to match what I have, so that I can still get LSP help and all that.

But I could see this being less relevant with more experience

Spent 4h yesterday looking for a bug in my atomics, and probably 4 more today :^)
Re:Former President Trump is projected to win the presidency on Thursday November 07, 2024 @09:13AM (#42076802)
Well Trump is still running on Making America Great Again after having been president
Re:Useful built-in macOS command-line utilities on Wednesday November 06, 2024 @07:30PM (#42071801)
It's too bad this doesn't use .ssh/config
Re:Riot Games: Peeking into Valorant's Netcode (2020) on Friday October 25, 2024 @02:23PM (#41948071)
> so head takes all of it

Maybe you implied it, but adding to the 'going up' case, there is bullet ricochet -- also reffered to as skipping or bouncing bullets -- that makes it so that bullets will ricochet out at a shallow angle and ride out the wall or floor, making your head hittable without even aiming at it. Here is a instructional FBI video talking about it.[0] And a more modern take.[1]

[0] https://youtu.be/7tUW0cUkNv0?feature=shared&t=240 (I think the date is wrong, other places mark it as being from 1974-5)

[1] https://www.youtube.com/watch?v=gT219NKPJh0

Re:Ask HN: Is anybody getting value from AI Agents? How so? on Wednesday April 03, 2024 @09:38AM (#39917305)
Do you have examples of this?
Re:Rclone syncs your files to cloud storage on Saturday January 27, 2024 @04:57PM (#39160281)
rclone is not a proper backup tool. It's like an rsync that integrates with all the clouds. You can kinda use it as one though. I had Borg in my todo for a long time too -- experimented with it and restic which are proper backup tools -- they are a little more involved than rclone (and scary, as they can get corrupted and you are essentially reliant on the software to get your files back). I found rclone much simpler to work with. As they always say, any backup is better than no backup!

The simplest thing you can probably do is use rclone to copy your most important files to a B2 bucket. Enable Object-lock on the B2 bucket to ensure no deletion just to be safe. You can then run rclone on server and from your devices with cron jobs to archive your important stuff. This is not a proper backup as I said, if you rename files or delete unwanted stuff it wont leave on the backup bucket but it's usable for stuff like photos and the like, anything you don't want to lose.

(I lied, simplest thing is actually probably just copying to an external hard drive, but I find having rclone cron jobs much more practical)