News for hackers. Stuff that matters.

Jenya_

Re:What a gas stove ban means for restaurants on Friday June 03, 2022 @02:39PM (#31612072)
Natural gas heating is very inefficient (e.g. versus electric kettle). There was recent Technology Connections video about that:

https://www.youtube.com/watch?v=_yMMTVVJI4c

I agree, this looks like a quick and dirty attempt to get account blocked.
Tweet is addressed to several accounts, one of them is KyivIndependent which reports Ukraine related news. The tweet looks like a death wish from RU supporter.
Re:“Zero fucks given” in other languages on Wednesday December 22, 2021 @06:30AM (#29647955)
| a parody on "мне по плечу"

As I native, I would assume that "мне по хрену"/"мне похрен" is an euphemism of the more rough variant "мне похуй" (it is up to my dick, same height as my dick).

Re:Why do interviewers ask linked list questions? on Thursday April 01, 2021 @06:17PM (#26666913)
Lol, so many questions :). I myself only use linked list when I do not know in advance how many items I will get. Otherwise I do allocate an array.
Re:Why do interviewers ask linked list questions? on Thursday April 01, 2021 @07:23AM (#26659041)
The problem solved by arena allocators here is to avoid many calls to malloc. System allocator is slow, especially in multithreaded environment. Instead of calling malloc 1000 times to allocate 1000 small pieces (like 16 bytes sized each), malloc is called once and then all the small pieces are carved from the big memory block.

The arena allocators are also popular in game development. Memory is allocated from the arena allocator during frame processing (16 ms), and all this allocated memory is deallocated at once at the end of the frame.

Re:Why do interviewers ask linked list questions? on Thursday April 01, 2021 @07:09AM (#26658916)
Yes, it works fine. I will only add that we do reuse memory. The program deallocates memory managers when they are no longer needed (there could be millions of them at any single time).
Re:Why do interviewers ask linked list questions? on Wednesday March 31, 2021 @05:26AM (#26645134)
Our arena allocator does not reuse memory for simplicity (it allocates only forward, like a stack). A lot of the libc malloc complexity comes from the need to manage deallocated pieces of memory.

Which means that using array over this arena would waste more memory (due to array resizing) than linked list. When array is resized, the unused memory from the old array will stay unused until the whole arena is deallocated.

Re:Why do interviewers ask linked list questions? on Tuesday March 30, 2021 @06:58AM (#26633138)
On my work we do use linked lists, they are simple and convenient to collect a few items of data together when the item count is not known in advance. The trick is to allocate linked list structures from the arena allocator (which keeps these structures close in memory). The programs in my work may run for days and may use terabytes of RAM (EDA chip design verification).

I agree that linked lists could be optimized, but usually they are not the worst offender. The biggest gains in performance usually happen when an accidental O(n^2) slowdown is replaced with a correct n*log(n) version.

The 5nm process from TSMC could be less of a success, as say Anandtech editor on Twitter (his A14 review incoming) https://www.reddit.com/r/hardware/comments/jjwtjy/andrei_fan...
Re:27-inch iMac gets a major update on Tuesday August 04, 2020 @02:34PM (#24053081)
It includes a 5K display which may become useless in five years? (when Apple plans to stop updates for Intel based Macs). It seems that iMacs do not support using them as expernal displays right now. I would prefer 5K monitor to last a bit longer than five years.
Apple spends a lot of money at TSMC (about 75% of TSMC 7nm production was for Apple chips in 2018, according to a link below). AMD also makes its chips at TSMC and TSMC fab is a limited resource. Instead of paying AMD to make chips at TSMC, Apple can just make them itself.

https://www.eetimes.com/tsmc-to-keep-supplying-chips-to-huaw...

I watched recently similar documentary on youtube - https://www.youtube.com/watch?v=Gwx9nqknu-c
there is a spelling error on the site: ...Dim any nuber of screens...
Re:SteamOS, Linux, and Steam Machines on Wednesday April 04, 2018 @02:41PM (#16757633)
One of the reasons for current Steam refund policy is that Valve lost lawsuit in Australia: https://www.pcgamer.com/valve-loses-australian-legal-battle-...
I agree, especially Stalin was fighting with Trotsky who promoted ideas of the permanent revolution.
Re:Selling Bitcoins in Cana­da on Thursday December 21, 2017 @06:44AM (#15978093)
There is a nice speculative article about Jed McCaleb which may or may not be true, still interesting nonetheless: https://steemit.com/ripple/@olyup/fck-you-money-the-rise-and...
Re:Nike’s Two Hour Marathon Attempt on Saturday December 16, 2017 @09:51AM (#15939756)
statistics shows there are indeed some runners in this age group which run 10k close to 6 minutes per mile and even faster:

http://www.pace-calculator.com/10k-pace-comparison.php

Re:The Environmental Case Against Bitcoin on Wednesday December 06, 2017 @06:11AM (#15860208)
Yes, it is assumed that mining will continue based just on transaction fees. In fact Bitcoin Core almost reached this goal recently due to their hard limit on block size, the percentage of fees in the total Bitcoin Core block reward reached as high as 40% according to the statistics: https://fork.lol/reward/feepct
Re:When somebody loses weight, where does the fat go? on Monday November 27, 2017 @01:26PM (#15789728)
Losing eight pounds during 3-4 hours run (marathon event) is not unheard of: http://www.letsrun.com/forum/flat_read.php?thread=3319287
Re:A Lady Logician on Tuesday October 31, 2017 @08:47AM (#15592780)
"Due to the fact that women could not do experiment work in laboratories she was forced to choose mathematics[1] over physics, a decision that she regretted all of her life."
If you want tough choices, ask Japanese to choose between living as they are now (with atomic bombing in the past) or Japan living as a North Korea (but without atomic bombing).
Re:Algorithm That Makes Preschoolers Obsessed with YouTube on Wednesday August 02, 2017 @05:39PM (#14914906)
Do you also block Youtube download sites (like keepvid)? Otherwise this may result in her learning (from e.g. advanced friend in school) that she can download a lot of stuff to watch locally during 30 minutes.
The delay in mining was required to trigger drastic difficulty reduction (20%). More details at https://www.reddit.com/r/btc/comments/6r33fz/difficulty_adju...
Re:Show HN: Retail Store that runs on Ethereum on Friday June 23, 2017 @10:38AM (#14619454)
The first issue is addressed by a reputation system (e.g. like in LocalBitcoins where traders have the history and reputation). For cops to get a good reputation would mean actually selling drugs to a lot of people.

And the second issue: what if cops traced the package to a country where selling these drugs is legal (e.g. generics in India)?

Re:Ask HN: Help Coinbase ate my $5,000.00 on Monday June 19, 2017 @05:26PM (#14590588)
During last month Coinbase added a million users (from seven to eight):

https://www.reddit.com/r/btc/comments/6hzar2/coinbase_hits_8...

Re:CryptoInvesting in the Age of Whales on Sunday June 18, 2017 @03:11PM (#14582291)
This is why Ethereum founder wants to experiment with proof-of-stake (project Casper), to replace at least partially the proof-of-work:

https://www.ethnews.com/proof-of-stake-vitalik-buterin-share...

Older »