News for hackers. Stuff that matters.

devthrowawy

Re:From zero to main(): How to write a bootloader from scratch on Wednesday September 30, 2020 @11:51AM (#24640048)
Often a pentagram is required.
Re:It Is Never a Compiler Bug Until It Is on Wednesday September 30, 2020 @11:45AM (#24639977)
We may have found a java compiler bug in high school cs class. The program was all of 2 lines doing some very basic arithmetic and comparison. Half the class and teacher were huddled around the computer trying to figure out what the hell was going on. I was new to programming so it's hard to say with confidence. But there was nothing 'tricky' in the code, just wrong output. This was over 10 years ago but java wasn't exactly new.
Re:It Is Never a Compiler Bug Until It Is on Wednesday September 30, 2020 @10:49AM (#24639281)
Probably more to do with compile time static expression evaluation (optimization) than parsing. Seems like it's not actually recursing down, just evaluating the root.
Re:Social Cooling (2017) on Tuesday September 29, 2020 @11:32AM (#24629044)
Maybe some more buy in could be achieved without the global warming fear mongering. Social media is directly impacting people's lives and there are real solutions individuals can employ to better themselves and their lives. It's time we stopped confusing pie in the sky boogie men with lack of personal responsibility and self awareness.
Re:Serverless, peer-to-peer, local file sharing through sound on Friday September 25, 2020 @10:06AM (#24589832)
All you need to know is the channel bandwidth (say 20-50khz) and noise floor power relative to rx power to give maximum data transfer rate (Shannon-Hartle theorem). Capacity = (Bandwidth) * log2 (1 + recieve_power / noise_floor_power). There is also a lot of em noise going on - just like sound. I would expect sound to be many orders of magnitude less power effecient/bit than EM - but the principles basically the same