HNHacker News
TopNewBestAskShowJobs

pirocks

832 karma · joined August 11, 2016

submissionscomments
pirocks··on The Revolution in Classic Tetris
A similar/same technique is common in competitive minecraft pvp, where it's known as jitter clicking. There are other similar such techniques with a variety of names.
pirocks··on FastDoubleParser: Java port of Daniel Lemires fast_double_parser
The above is an extension function(which is basically a member function of class not written in that class), which has an implicit `this` parameter. In other words `length` is actually `this.length`, just as it would be in a regular method.
pirocks··on AMD refuses to limit cryptocurrency mining: We will not be blocking any workload
Many people believe the intent was to prevent a glut of gaming gpus when crypto crashes. If you get miners to instead by crypto only ASICS or "mining gpus" then can't be resold.
pirocks··on UC’s termination of Elsevier contract has had limited negative impact (2020)
In most cases yes, peer reviewers are not paid. These companies are pretty much a paywalled pdf hosting service hence the outrage against them.
pirocks··on Reflections on IDEA vs VS Code
A few years ago I contributed to an Intellij plugin with significantly less resources than the rust one. What became clear there was that external tools are glitchy, laggy, frequently crash, and don't quite match Intellij's model of things, native Intellij support will likely always be better.
pirocks··on Nvidia Deep Learning Accelerator (NVDLA): free open inference accelerator (2017)
My perception is that Nvidia in particular gets a lot of heat because they have bad/buggy drivers which integrate poorly with existing package managers/distros, not just closed source drivers. Anecdotally I have at least one issue on my home desktop which is suspect is caused by Nvidia drivers and poor display hotswap on a work device which is definetly caused by Nvidia.
pirocks··on Website scores kill our success, waste our time
Perhaps it's just your display/eyes? I find them readable even on maximum fade.
pirocks··on Share of U.S. workers holding multiple jobs is rising
This may have more to do with the US not getting blown up during WW2, and the US being the largest single market(in the sense that everyone speaks the same language, has same culture, comparable laws everywhere etc.). And less to do with good policies.
pirocks··on California’s affordable housing problem is really a national one
> Hong Kong has a very limited territory to build on, while most of the USA is free space. Yes, you are right on the bad government incentive.

Hong Kong has limited space but aren't utilizing it well. Tons of it is empty. See the pie chart here:https://www.pland.gov.hk/pland_en/info_serv/statistic/landu....

pirocks··on California’s affordable housing problem is really a national one
I would argue this isn't a California problem or a national problem. It's a global problem. Example: Hong Kong. In Hong Kong the government funds itself in large part through property ownership. They are therefore incentivised to make housing as expensive as possible. The result is predictable. I would argue that in democracies this will remain a problem as long as the majority of voters benefit from high housing prices. When combined with rent control you don't need to own property to benefit from high housing prices, since you are likely paid as if you where paying market rate rent. I don't really see any practical solutions. Work from home might change things a bit but I'm pessimistic, since lots of people want to live near stuff, which requires living near other people, which means someone has an inventive to raise prices. Perhaps boomers cashing out all there housing at once might help things.
pirocks··on Minesweeper automates root cause analysis as a first-line defense against bugs
The Concorde crash is complicated. That narrative leaves out a lot of details, notably: The fuel tanks where filled above the maximum allowable amount. The fuel tanks ruptured above the wing, not where the tire fragments hit. The fuel tanks ruptured because of the shockwave from the tire fragments traveled through the fuel and into the top of the wing. This was a known issue and fixed by always having an air gap between the fuel and top of wings,but the the plane was overfueled in this case. The plane was over maximum takeoff weight, and taking off with the wind behind it. The plane had/may have had an unrelated engine issue with engine #3, leading the flight engineer to shut down engine #3 shortly after takeoff.

The combination of overweight, overfueled, wrong wind direction and 3 out 4 engines operational severely limited Concorde's ability to return to an airport. So I'm not sure you can blame the design decision of putting fuel in the wings(which literally every other relevant passenger aircraft does).

pirocks··on Threadripper 3990X: The Quest To Compile 1B Lines Of C++ On 64 Cores
This is just a low end/uncommon hardware problem. I typically do make -j16 on a 4 core x86 system and it just works. You are probably running out of ram and the swapping resulting in that instability.
pirocks··on The people the suburbs were built for are gone
Presumably if one owned many homes and rented them out they might benefit from increased renting demand. Though the resale value of the house might also go down with less people buying so Idk if it balances out. My perception from London is that resale prices continues to go up even if most people rent but Idk if that's accurate or generalizable.
pirocks··on Java 1.0 Turns 25
My first suggestion would to see if the lag corresponds to a full GC. Google can tell you the proper incantation to log GC events. If it is caused by a full GC you probably have some kind pathological behavior causing it . Allocating more RAM or changing GC args may help. Otherwise I would recommend profiling. You can use visualvm which should come with your jdk for that.
pirocks··on WRT54G History: The Router That Accidentally Went Open Source
I do this. I watch Netflix and play video games at the same time. So I guess my point is this is a use case which exists. My GPU handles it just fine though.
pirocks··on Ask HN: How do we build the new remote education system
I sometimes was one of the students who didn't do the reading. Almost always one or more of the following was true: 1. The reading wasn't immediately relevant to getting a decent grade in the class. 2. The class was obscenely boring and in no way relevant to my future life. 3. The whole class didn't do it either so we where going to repeat the whole thing in class anyway.
pirocks··on I Downvoted Because
I was came across a stackoverflow question where someone was confused as to why their production database was being wrecked repeatedly. The answer was that they had rampant sql injection vulnerabilities in their code. The original poster refused to take down their site or notify users of a breach.
pirocks··on GCC Rust: GCC Front-End for Rust
You could make the argument that, that would be a frontend written in rust.
pirocks··on Indian Government proposes to buy bulk subscriptions of all scientific journals
Glorified pdf hosting would probably be an accurate way of describing them. Also sometimes they print the pdfs.
pirocks··on No, Cellebrite Cannot “Break Signal Encryption”
The BBC isn't a newspaper.
pirocks··on State of Rust Survey 2020 results
In my experience Rust/C interop just works except for variadic args. Variadic args require nightly unless it was stabilized since I last checked.
pirocks··on An update to storage policies across your Google Account
A premise one hears fairly often is that online advertising sucks, but it's a necessary evil to get all this cool free stuff from Google. So if the cool free stuff is less cool and less free that raises questions about whether there should still be online advertising. I don't actually subscribe to the above, it's just something you hear again and again.
pirocks··on Apple's Shifting Differentiation
What do you mean by "simply impossible". Seems very possible to me, since it's on a better process node, has deeper out of order, more transistors etc.
pirocks··on American Airlines Is Quietly Bringing Back the 737Max
The MD-11 is a passenger aircraft.
pirocks··on American Airlines Is Quietly Bringing Back the 737Max
Pitot tubes icing over is common on all planes not just Airbus planes. It's more or less expected and planned for.
pirocks··on Why are so many coders still using Vim and Emacs?
Sublime can do that. I bet intellij could pull it off if you had sufficient ram which you probably do if your editing 10 gb files
pirocks··on Why Rust Is the Future of Game Development
I play a lot of minecraft and GC related framerate issues are usually not a problem, but when they are a problem they can be quite annoying. You tune gc performance for your gameplay workload to a certain extent but obviously most players don't.
pirocks··on C/C++ vs. Rust Performance
A static function in Java is essentially just a function. Also I have no idea what functions being associated with classes has to do with breaking out of loops.
pirocks··on Julia: Dynamism and Performance Reconciled by Design (2018)
I find the month to minute transformation rather shocking. Are you sure you weren't doing something algorithmicly wrong in python? Did you profile it? Like I would never leave something running for a month without putting a fair bit of time into making sure it was fast.
pirocks··on Fighting Rust's Expressive Type System
In kotlin your example would be:

  fun process_item(input: Item?) -> Item? {
      input?.plus(3)
  }


This would have to be modified in rust to apply to both error and option types, as well as working on stuff other than the . operator, but I think it could be made to work. The main difference is that the ?. operator in kotlin works at the expression level, instead of the function level.
← PreviousPage 2 of 9Next →