News for hackers. Stuff that matters.

hnur

Re:The Lost Art of C Structure Packing (2014) on Wednesday April 27, 2022 @02:04PM (#31183547)
"a technique for reducing the memory footprint of programs in compiled languages with C-like structures"

I figure that's not the primary reason for structure packing, but rather for fine-grained control over writing to very specific memory layouts (think global descriptor table) as structs.

Re:The “rare write” mechanism on Friday June 02, 2017 @04:23PM (#14473011)
Woohoo, this is the 2nd time Hacker News picked up one of my articles. And yeah, you should subscribe :)
Re:Show HN: Making Your Music Choose Your Desktop Wallpaper on Monday January 30, 2017 @11:32AM (#13522551)
Fancy kids and their winamps, back in the day I used to coax musical notes out of a tinny speaker from an Apple II using PEEK and POKE in BASIC.

;)

Re:Show HN: Making Your Music Choose Your Desktop Wallpaper on Monday January 30, 2017 @11:29AM (#13522526)
It was a random sampling of songs that I was already playing while I was writing that. All my music is either folk (with a lot of Irish and American folk), rock, or indie. If you like though, you could try it yourself.

The great (or perhaps, not, depending on what you want) thing about the Flickr search is that it picks from a set of curated photos, so it's highly unlikely you'll get an unpleasant one. However since it is picking random pictures from the internet, don't run it where you'd get into trouble if something inappropriate does manage to come up.

Re:Show HN: Making Your Music Choose Your Desktop Wallpaper on Monday January 30, 2017 @11:26AM (#13522489)
You aren't by any chance interested in separating that, in hosting a server which gives a link to a good flickr image when given a word? I searched for something like that and in the end stayed with my ugly approach of parsing flickriver for getting a random image from a hard-coded group with a fitting topic.

Flickr already does this if you use their search API. The Flickr part of the script in my Github repo has an example.

Re:Hack the Kernel – Learn about operating systems online on Sunday October 23, 2016 @10:15PM (#12776431)
>UNIX-like kernels are easy, in that you don't have to have >that much running before you can run "Hello World".

Well, it depends on what you mean by "Hello World". Simply printing it out from the kernel? Easy. Getting a workable userspace up and running so a user program prints out "Hello World"? Hard. Also, you can have a microkernel that gives you a UNIX-like personality too (as is it is often the case when implemented), so I am not sure how one precludes the other.

>Also, the emphasis on virtual memory and page faults is >becoming dated. Paging out to disk is obsolete technology. >RAM is too cheap, and mobile devices don't page.

Uh, of course mobile devices use paging and virtual memory. You might be conflating virtual memory with swapping here.

Re:Introducing Docker for Windows Server 2016 on Tuesday September 27, 2016 @12:04AM (#12587369)
How does it work? Is it a Windows container implementation that got the "Docker" branding?
Re:Falsehoods Programmers Believe About Names (2010) on Thursday September 08, 2016 @05:25AM (#12451474)
On time:

35. The rate that time passes at one point in the universe is the same relative to any other point in the universe.

I once talked to some co-workers of mine who doubted that relativity is real.

Re:Windows 10 IoT Core Support for Raspberry Pi 3 on Monday February 29, 2016 @12:56PM (#11196925)
I'm not entirely up to speed on the situation of UEFI secure boot for ARM; didn't Microsoft mandate that it can't be disabled for such devices to boot Windows? Is that the case here?
I use C as my staple language. Old and always unfashionable, but it's never going away in my lifetime.
Re:Academics, we need to talk on Thursday January 07, 2016 @08:12PM (#10862205)
Re:The Making of Lemmings on Tuesday June 09, 2015 @06:42AM (#9685020)
Feeling nostalgic for the soundtrack? This guy did a medley -> https://www.youtube.com/watch?v=Vz0_ZHEDZ-4
Another folk/americana fan here, and I get contemporary pop music ads between my tracks on Spotify, and there's nothing more annoying than autotuned screeching between my Bob Dylan and Gillian Welch.

However instead of buying premium, I just use Spotify for discovery. If I like something I just get the album off iTunes, Amazon or Bandcamp. I find myself spending less per year than if I had subscribed to Spotify, _and_ I get to keep my music.