skysight-inc/HackerNews huggingface dataset:
As we saw with AMD64, x86 is a variable length ISA, up to 15 bytes long, allowing for quiet a flexible (and complex) encoding. With a fixed width RISC, yeah registers are going to eat into opcode space. And in both cases, register renaming will allow more renamed (180) registers than architectural registers.

BTW, renamed != ROB. I got that wrong above.
Ask HN: Examples of great documentation?
I searched HN on how to write great documentation. This is something I want to get better at. A top link I found was this:

https://jacobian.org/writing/great-documentation/

Is it still relevant?

It's a bit old and some of the links showing examples of great documentation are broken.

Please share examples that you deem as great documentation.
So in short, if we change half the worldwide vehicle production to electric (with similar batteries as Tesla's current lineup), we have enough lithium deposits on earth for about 20 years (give or take a few).

That is a problem to keep in mind, but I am optimistic that before we reach even half that production capacity, the massive amounts of money that will be poured into battery research will produce good alternatives that don't rely on lithium. As production scales up so do R&D budgets, and there is a lot of promising alternatives.
An American's take on the UK election: 'Please Stop Theresa May'
"there is no way people who live >100 miles from an urban center would EVER think about buying an electric car because of range anxiety"

What percentage of the US population regularly commute that far?

I was under the impression that most of the US population (and the rest of the world's population as well) lived in cities.
It is a great workspace. Probably the best you will ever be able to work at, if you value stability and having a paycheck. But thE goog employment contract is more like a cult or indentured servitude, and really gives you insight to what is going through their minds as far as their Human Resources.

So give it to them right back, and don't lick the corporate boots. I'd work hard (or at least look like it) because they pay you well, but that's it. Every day you should be thinking about your next venture or startup, once you have something mvp profitable just quit and do that. You can find another sw job, startup, grad school or whatever but you cannot get your life back. Don't waste it on the safe option.
Thats your prerogative. I choose to give him the benefit of the doubt. After seeing him speak and seeing the changes that have started to roll out, I believe he is sincere.

215 were investigated and 20 people fired. There are ~15000 employees globally. It's not systemic and most people at Uber would agree. The outside firm was hired specifically to show that they are independent with no bias. If they didn't hire outside firm, you probably would accuse them of bias, so there's no way to win.

They were not digging up her past. They were investigating her claims. She was incorrect in assuming that Uber was "out to get her". But I understand why she is feeling that way, I would probably react the same way. But Uber was in direct communications with her lawyers when they conducted these investigations so it was a miscommunication.

Everything you think you know about Uber is based on headlines, tweets, or biased reporting. If you saw the work that Uber does behind the scenes you would have a completely different opinion. The Harvard professor said the same thing. She said she would probably have been someone who would have supported the #deleteuber campaign based on the media reports, but because she had a view on the inside, she felt completely different about it. The same goes for our new CMO from Apple.

Clearly, Uber did some things in the past that deserve the reputation that it has now. But those are largely in the past. If anyone does something equally wrong these days, they will get fired. The company is expending a lot of energy trying to be more empathic. You don't have to believe it if you don't want to, but that would be hiding your head in the sand and not wanting to seek the truth.
Yes, every CS course teaches you multiple algorithms for sorting data. Most of them require extensive explanation to understand, and are very hard to come up with on your own.
New Ruby Gem for Threatstack API (Contributions Welcome)
I use parentheses liberally so I don't have to think about precedence so much both when writing and when later reading.

That said I don't add unneeded parentheses for simple expressions or sub-expressions consisting only of exponents, multiplications, divisions, additions and/or subtractions.
Not really. Bullies have something specific going on. They are trying to hurt people. Many average people get excited when they talk about a subject they are passionate about and enter into a state entirely unlike any bullying I've ever seen but which nevertheless results in non-bullying behaviors like talking over people. These people are exhibiting behaviors like interrupting because they are excited and passionate, not because they are trying to strike out at the people they are interrupting.
I worry about getting corrupted by money and power. At first all i wanted was enough to survive. Then i found out "enough" had no physical barriers. The more money you have, the more you do to keep it or and the more you do to make more.

I worry about being 40 or 50 or 60 and having as much money as a man could dream about and yet finding no peace or having no memories. I worry about looking back to when i was 25 and all i can remember is sitting infront of a computer hitting a keyboard with all my strength and watching that time pass away, never to be regained.
>If you look at the list of target nations they include non-nuclear countries (Syria, Iran, etc).

US policy is to respond to non-nuclear WMD attacks with nuclear weapons, and it's a good policy. Because otherwise we would need to develop and maintain large stocks of chemical and biological weapons if the policy was to respond to WMD with the same kind of WMD.
> P.S. in the first para by "normal" I mean that if you ask many random religious people of age 30+ most of them would consider that behavior normal.

I was raised in a religious household, am 30+, and don't consider coerced prayer of the type that seems to be described [0] normal (in fact, I find coerced prayer theologically unsound.)

OTOH, I wouldn't be surprised to find it fairly common.

[0] An expectation of respectful silence while someone else leads prayer, or an offer without obligation to lead group prayer, certainly. But coerced prayer is another thing altogether.
I feel like this is a very minor physical feat compared to the other attributes I'd expect a strong astronaut candidate to exhibit.

As in, this shouldn't be a barrier to anyone who really wants to be an astronaut.
Get brew.
Prolly Cask as well.
Everything beyond that is up to you.
I'd recommend elucidating on your use case more for a better answer. :/
Hawaii becomes first state to enact law that aligns with Paris agreement
Plus they might not be able to land, so basically kamikazes.
No offense taken!

Dreamscope doesn't actually make money :) It's a little under break even. It brings in revenue through a $9.99/mo premium subscription, which gives customers higher resolution images.
3-year-olds consuming alternative milks were 1.5 cm shorter on average
(I'm not sure if your comment was genuinely asking about the number of political parties in the U.S., or sarcastically remarking on the fact that there's only effectively two parties)

While there are technically more than two political parties, the vast majority of Americans support one of the two major parties - the GOP (a.k.a. Republicans), and the Democrats. Between them, these parties more-or-less represent most of the range of political discussion and ideology in the U.S. The next-largest party is generally considered to be the Libertarians.

Thus, while the statement "Americans from both political parties" may contain a technical inaccuracy, as there are technically more than two parties, it's a useful shorthand for "Typical Americans, regardless of political affiliation"

As for why there's only two major political parties in the U.S., it's likely the result of most elections being simple plurality (a.k.a. first-past-the-post). This heavily encourages potential candidates to compromise and coalesce until there's only two candidates, to avoid the spoiler effect.
Ask HN: Finding jobs that issue new H1B visas?
My partner will soon be moving to the states to start her PhD. Of course, I would like to move there as well, but I am having extreme difficulties with even finding a company that is willing to sponsor me for an H1B.

I have spoken to dozens recruiters and companies, and none of them seem to be willing to sponsor H1Bs. For smaller companies it is too much of a hassle, while large companies often redirect me to their offices in Europe and tell me to start working there first (which I would be willing to do if they can ensure I can move to the states in a certain time period, which they will not). I have of course tried looking online as well, including on HN, but all jobs that advertise to 'sponsor H1Bs' only seem to actually sponsor a transfer/extension, rather than issue a new one (in my experience so far).

What makes this so frustrating is that I am not being rejected during the interview, but that I am denied before even taking it even due to the visa.

I'd love to hear any advice on how to approach this: am I looking at the wrong places? Do I just extremely bad luck? Or am I not qualified enough? I do have a CS MSc degree from a top tier university, but am still quite young and have not specialized in a field such as Machine Learning.

Thanks in advance

PS: I am aware of a previous similar thread, but as that is 5 years old it might be a bit out of date since the H1B visa applications went through the roof since then (https://news.ycombinator.com/item?id=5150810)
Attach the phone to a small weather balloon, and you can have a real "cloud hosted" setup.
Chobani on Growing a Startup Without Investors
The wiki says it's 484 megajoules, delivered in 3 seconds. That is equivalent to 134 mega-watthours,

For a potentially more useful arbitrary metric, that's a bit less than two Model S batteries. Except it delivers all the energy in seconds, and charges in 45 seconds, and isn't limited to a few hundred charge cycles. It's a kinetic flywheel storage system, but I wonder if it would be built today using a giant lithium-ion pack (many Tesla PowerWalls, basically) or a supercap array.
Not that you're wrong, but this isn't exactly news. St Augustine, back in the late 4th century/early 5th, was "cool" with evolution, if you care to use those words:

"Th[e] tree surely did not spring forth suddenly in [a mature] size and form, but rather went through a process of growth with which we are familiar. …[It] took its shape as it [gradually] developed with all its parts. … One [form of tree] comes from the other [form of tree], therefore, in succession, but both come from earth and not earth from them. Earth, then, is prior and is their source. The same is true of animals." (http://www.historyandapologetics.com/2015/02/st-augustine-on...)

While he didn't think that a new genus could arise in this way, he was pretty clearly on the right track, especially given the rather sketchy knowledge on the subject of biology in his day.
One reason you don't see founders is that, it is so brutal.
The odds are stacked against you. Even if I buy lotto tickets with a positive expected return, the variance can make it untennable/unworkable. One would hope the VC comes in and smooths this situation out some, so that more people participate. You're going to have a lot of brilliant people going down dead ends on no fault of their own, why not cushion the blow? Give entrepreneurs, yep give, the money to them to make their product. Let them own >51% of the company. Offer to pay them fully in their own shares or some split between the fund shares and their own company to cushion the blow. If I'm starting a company, I'd take my own shares mostly but I'm not arrogant/foolhardy enough to put my chances of success equal or greater than a whole pool of my peers. I'd bet some of us will be successful, I just don't know who.

To answer another response on this thread about taxes, if it were in fact market value, I'd sell the shares like any other share and pay the taxes owed.

Note: I know there are issues surrounding the number of private owners a company is permitted and other regulations. I'd simply invite a corporate lawyer to take a stab at it. Maybe a large holding corporation that would be public and issue shares to you related to your stake in startup sub corp(s) (akin to paychex, trinet, etc...)
The EMALS system's big problems seem to be with the motor-generator-flywheel system used to power them. The ship doesn't generate enough power to drive the catapults directly from ship power. They have to wind up a flywheel, and then dump that energy using a generator when launching aircraft. The hardware for that weighs 12 tons. Whatever problem they're having has resulted in damage to the motor/generator windings, requiring pulling out the rotating component. This is apparently a difficult repair.

That has to create huge stresses on the windings. You wind up the flywheel, and then suddenly apply
field current to activate the generator. They may be trying to ramp up field current slowly to
reduce the stress. Some articles mention problems with a voltage regulator causing machine damage. Maybe the rotating machinery can't take a full-power turn-on.

Details on the system seem rather vague. Some published articles say there are four motor-generator-flywheel sets; others say only two. Isolating failed units electrically for maintenance is apparently difficult. Unclear why.

This unit "passed factory acceptance testing" in 2008.[1] These problems should have been discovered and fixed years ago. The manufacturer is Kato Engineering, part of Emerson Electric, acting as a subcontractor to General Atomic. They make a range of generators for various applications. So this is coming from a company with a long history of making generators. But generators are usually continuous-duty, not something that experiences shock loads like this flywheel rig. Apparently nobody insisted on some serious testing like running this thing through 50,000 cycles into a dummy load.

The linear motor of the catapult itself seems to be working OK.

The new arresting gear shouldn't have been a problem. That's mostly a paddles-in-water brake, something that's centuries old. How did that get screwed up?

Overall, the Ford series of carriers uses electricity for functions that, on other carriers, involve piping steam around. Most newer Naval ships are Diesel or gas turbine powered, and don't generate steam as a by-product. Nuclear plants do generate steam, which has been convenient for carrier catapults. The new British carrier series (if it gets built) is to be non-nuclear, and they want to use the EMALS launcher on some of the ships (maybe). That's part of a big mess - without a catapult, they have to buy the VTOL/STOL version of the F-35, which has its own problems.

There's an amusing book, "Ships, Machinery, and Mossbacks", by H.G. Bowen, from WWII. Bowen was a U.S. Navy engineering officer and eventually was in charge of most Naval propulsion systems during WWII. He was a real hard-ass on contractors, and often sent back large, expensive items like final drive gears back as rejects. Admiral Arleigh Burke ("31 knot Burke") wrote that his ships wouldn't have been able to go 31 knots without Bowen's work. When it really has to work, you need people like that who can say no.

[1] http://www.ga.com/emals-motor-generator-passes-acceptance-te...
Obviously we'd need expertise to tell if (say) the budget was already hugely cushioned in expectation of bugs so that the overrun really is outrageous. But agreed, this is not obviously bad at all, and the author hasn't given us detailed info to think otherwise.

More importantly: the Ford is the first in the new generation of as many as ten aircraft carriers.

https://en.wikipedia.org/wiki/Gerald_R._Ford-class_aircraft_...

Basically, all carriers currently in service are of the Nimitz class, and will be replaced one-by-one over the next 40 years with ships based on the Ford. Lessons learned and tech developed will be amortized over those future ships.
I think electric buses are really interesting. They are often perfectly suited to the task, really improved air quality (and noise) and also the ride experience is vastly better without a 8L diesel engine banging away.

London has a few routes with them on now and I wish TfL would invest more in it. The air quality on main streets is horrible here.
Supreme Court rules cell phone searches require a warrant (2014)
> What will happen in the best case:
- I had 1% of a 10M dollar company. They did well and now he has 1% of a 100M company (dilution in your face!).

You've meant to say "They did well and now he has 0.1% of a 100M company" I assume? Otherwise numbers don't add up. If all goes well the value of a smaller percentage after dilution should be higher than before the dilution, for example: 1% of 10M ($100k) -> 0.2% of 100M ($200k).
In my limited experience, people get angry when they feel tricked, so the former of those two suggestions.
I agree that you could not tell them and get some good info.
Prompted by the November 22, 2016, break-down of Zumwalt in the Panama Canal with both propellers seized, Mike Fredenburg analyzed the program for the National Review and concluded that the ship's problems "are emblematic of a defense procurement system that is rapidly losing its ability to meet our national security needs."[93] After detailing problems relating to the skyrocketing costs, lack of accountability, unrealistic goals, a flawed concept of operations, the perils of designing a warship around stealth, as well as the failure of the Advanced Gun System, Fredenburg concludes:

The Zumwalt is an unmitigated disaster. Clearly it is not a good fit as a frontline warship. With its guns neutered, its role as a primary anti-submarine-warfare asset in question, its anti-air-warfare capabilities inferior to those of our current workhorse, the Arleigh Burke-class destroyers, and its stealth not nearly as advantageous as advertised, the Zumwalt seems to be a ship without a mission.

https://en.wikipedia.org/wiki/Zumwalt-class_destroyer
Kenneth Colby, another Stanford professor, had something like this in the 1970's and 80's. According to the Wikipedia article [1] it was sold as a product. I remember reading a skeptical account of it in a popular book back then [2].

[1] https://en.wikipedia.org/wiki/Kenneth_Colby

[2] http://rdrosen.com/psychobabble-fast-talk-and-quick-cure-in-...
For now, yes. Our main goal in the short term is interop, since we are a little late to this party.
Here's a link to a comment from a WebKit engineer responding to the notion that Apple deliberately omits features from Safari. Short answer--they don't: https://news.ycombinator.com/item?id=14509746
The 40-Year Old Mystery of the “Wow” Signal Was Just Solved
Nairobi is counting on malls and skyscrapers to fuel its economic ambitions
We’re Older Than We Thought: New Find Pushes Human Origin Back 100,000 Years
That is not the US policy.

The US policy is to use the threat of overwhelming force, nuclear and non-nuclear, for leverage in interstate conflict whatever that conflict may be and whether or not that conflict is a threat to the United States or its persons or just the outcomes it is interested in.

It's possible that nuclear forces could be used in a scenario like you suggest, but to round that up to policy is inaccurate and it is misleading.
>This is because the liver needs time to recover

Also less likely to become dependent.
I don't really see the point in prime classification, I feel like you're never gonna get better than doing a deterministic sieve algorithm. Even if it did do quite well in terms of accuracy, probabilistic models aren't 100% correct so you still have to check for primality deterministically.

However the twin prime factorizer idea was interesting and could potentially lead to some factorization speedups (based on heuristics) if done correctly.

Either way though, prime number distribution is quite tricky - we should probably be looking in other number bases as well rather than just base 10.
When this scene was shot in 2003, also with Scarlett Johansson, Sofia Coppola managed fine: https://s-media-cache-ak0.pinimg.com/originals/79/f8/5f/79f8...
I respectfully disagree. We don't use terms like 'request' and 'server' because the mechanism is akin to a door wide open.

We can agree that a maid that lets the wrong people in is a poor choice of made, but the maid is the one responding to the request. A door/lock does not deal with requests at all.
So limit the amount of CPU/bw/etc. they can use, just like mobile platforms do for background apps?
Custom Page Size Options for Worksheet and Remove Printer Settings in Excel File
Perhaps I'm just less intensely impressed with the quality of the pieces. I think they're great and very effective, but it doesn't strike me as something beyond the reach of a skilled amateur videographer. I agree that the lack of a social media presence is odd, and more importantly is a major missed opportunity.
Yeah the problem isn't "hello world." It never is, it's building something with the tooling that works cross platform or that can be deployed to the platforms I want to target. That's much more than "hello world" and the important part.

Perhaps you could make a useful comment next time instead of something plainly not?
Show HN: Grid-based window tiling for X11 with powerful keyboard controls
I work in the energy metering industry, but 12,000 homes over 3 seconds is still a more meaningful measurement of power for me than 72 kWh (or whatever the value they were trying to capture was). It really is a lot of power to send in 3 seconds.
Wow, it seems like the Xbox One is being kept alive by fewer (but bigger) releases than the 360. Are they, then, losing out to Sony?
Wow, one of the contributors is Pierre Sprey. I would take his criticisms very seriously. He's basically the father of the A-10, which he came up with when he studied WWII records and interviewing soldiers the aircraft was meant to support. The Air Force hated it and still does to this day but that plane proved to be cheap, durable, and useful. The A-10 is pretty much the opposite of these fancy weapons projects.
Here's a guy building a water-cooled 7x1080 system https://www.youtube.com/watch?v=9hsQmcSwGv0&list=PLj4jtAjLgQ... With Ti series you don't have to cut the excess from the card either it seems, since there is no that pesky DVI port to saw off.
75 meters is a strong swimmer?
Docker for Mac, VScode, iterm + zsh, minikube via xhyve, istat menus. shimo vpn client. I've also been enjoying the opera browser lately. It's less of a resource hog than chrome but still uses blink to render. Also has a really nice dark theme.
Not mine, but my wife signed up for Nextdoor several years ago. They send a postcard verification of address like Google Maps does for businesses.

She found out that all of our neighbors got a postcard inviting them to Nextdoor and it said something like "[So and So] just joined Nextdoor and invites you to join!"

She never opted into this knowingly but I'm assuming it was in the terms somewhere. I thought it was brilliant for acquisition; maybe one of the best strategies I've seen.
Flagged for big fat title typo; this is called "Slug"!