skysight-inc/HackerNews huggingface dataset:
> Every single C compiler worth mentioning will turn a switch statement into a jump table

Only if the case values are small integers with a compact range. But if your opcodes are large and/or sparse (more common in non-VM scenarios) compilers don't optimize switch statements very well.

There's a ton of research on switch statement optimization, but most of it doesn't translate to real-world scenarios very well. Compilers will give up fairly quickly on trying to generate a jump table because the work necessary to map the case value to an index at runtime can easily cost more than its worth in many situations.

Here's some real-world code which you can easily benchmark and compare: https://github.com/wahern/hexdump/blob/master/hexdump.c#L752

Just flip the VM_FASTER macro. Using `hexdump -C < 64MB.random.file > /dev/null`, on my circa 2012 Mac Mini the switch statement is 80% slower than the computed goto and on my circa 2018 Macbook Pro it's about 15% slower. (See my note elsethread about the post-Haswell branch prediction.) And this is despite the fact that the opcode range is 0-32 without holes!

Also, with computed gotos you can remove the jump table altogether. You can make your opcodes actual addresses (just like native code) if you can make the label addresses visible to the code generator. (See my post elsethread for how to make them visible.)

P.S. While I implemented hexdump.c using a VM mostly for fun, the end result not only out performs GNU od and BSD hexdump, but IMHO the code is much easier to read, too.
If you are in the park or pipe, that is a good idea
I've been playing with the Alpaca streaming API's in Node to get quotes. I have it working, the next step is figure out a trading algorithm.

I am a pretty traditional long term investor, $AAPL, Berkshire, Bank of America, Ford, Amazon, AMD, $SPY, with 10+ years in the market. However with the crazy volatility, I have been toying with the idea of buying ProShares UltraPro Short $SQQQ to hedge my losses on big pre-market open down days. Today for example would have been a good day to own $SQQQ for the day (up 7.3%). Any insight on how to go about this hedge strategy using Alpaca? Can I get pre-market quotes for the Nasdaq?
The total government debt = total private sector savings, to the last cent. That is an accounting truth, for every debtor there is a creditor, and the creditor of the public sector as a whole is the private sector.

In reality, when you look at how government debt is actually computed, you will find that government debt is the sum of all the coins and banknotes in circulation, all bank deposits at the central bank, and all treasuries. Basically it's the sum of all the savings denominated in that government's currency. It is purely an accounting illusion, governments could also create money out of nowhere without accounting for it as "debt", but that is the accounting standard we are currently using, mostly an heritage from the gold standard times. I'm not sure what the article accounted for exactly, but if they just did a sum of government debt divided by human population, what the article really means is that there are in circulation about 86k dollars for every human, so the average human has a monetary wealth of 86k (with the median being of course much much lower). We should cheer on that number increasing ,the only bad case is if inflation is higher, so that means in real terms we are on average getting poorer even if we have more dollars per capita.
How is a neti pot worse than steam in the shower? I’m surprised at this.
The suggestion was to provision it at 4x, then dial back down to 1x, then load the data. This is to force DynamoDB to split the partitions further before you use them so that they don't split while you're filling the table.
And by selling info about customer orders to front runners. IIUC, these are high frequency traders who may place similar orders milliseconds in advance of yours then profit from the fact that you have to pay a bit more to fill your order. Full disclosure, I continue to use Robinhood despite this.
Well, this is why the country is so divided. Instead of having a debate, the new way of doing is to directly go to the conclusion that "you must be an asshole". Good Proof of openmindness...

Not targeting a specific side btw, this is a trend on the left as well as on the right.
I mean no offence, but I think a few of these opinions are probably because of your skill level on both a snowboard and skis.

> It works far more of your core muscles and your quads and hamstrings that skiing does, so it takes some time to figure out how to control all that with the precision.

If you're skiing hard, the core and quads are fully engaged. Especially in deep snow. In fact, I suspect that you need more engagement on skis.

> The key for me was to really understand that the board itself wasn't something I rode on top of, but instead of was a living vessel I was part of, and that I could twist, rotate and otherwise manipulate using movements in my legs, subtle shifts in center of balance and core muscles. Once that started to make sense it became much easier and I found it far easier and more rewarding that skiing for me.

Everything you said here about snowboarding applies to skiing, however it takes longer for that to click on skis because there's more to coordinate.

> Skiing is many moving parts you have to coordinate, snowboarding is one moving part with many subtle means of expression.

I definitely agree with the sentiment of one moving part with subtle means of expression, but when you get good at skiing, it starts to feel more like one moving part.

This is my experience as someone who snowboarded for 15ish years before switching to skiing a few years ago.
Tylenol/acetaminophen is actually quite dangerous and kills hundreds of people each year via liver failure >> https://www.ncbi.nlm.nih.gov/pubmed/15239078
Hundreds March on Amazon Fulfillment Center in Minnesota
> or slavery 300 years ago

I am no apologist for any country, but wouldn't a better point be the very real, widespread, and constitutionally-protected prisoner slavery, which is happening in America today not just 300 years ago?
No energy is being continuously invested by gravity. It is not "keeping the reaction going" in that sense. It's simply freshman physics that tells us that forces only do work when they act through a distance. Because the star's surface is not moving inward, it is not doing work, i.e., giving energy, to the star. Furthermore, the Sun, for example, is probably slowly expanding right now. It will start to do so in time, at any rate. That is, the work done by gravity on the Sun will be negative during that time, and fusion will continue. You just aren't making any sense. You are either not trained in physics, or have failed to understand what you have learned. You could begin to piece together a better education in it by simply following up on my replies in this thread. Please, take it from me, you do not know what you are talking about, and your concerns are therefore not valid. I thought I could help, but you seem to be a tough case.

In short: Forces only do work by acting through a distance. Work is energy. If no work is being done, no energy is being produced. Therefore, gravity is not "energizing" the reaction, because the net motion of the star towards its center is zero when it is in equilibrium.

In shorter: No motion => no work. No work => no energy. No energy => no problem.
I suggested on Mini-Microsoft about 10 years ago that Microsoft do an 'Apple'. Apple took a free OS from BSD and put their own GUI over the top of it. I suggested that MSFT do the same sort of thing, that being to put their Windows GUI on top of the Linux OS instead of using the Linux X11 GUIs.

This had the advantage that the underlying OS base would no longer need maintaining by Microsoft, and all their coding efforts could be allocated to the Windows GUI, thus permitting Windows versions to be released far more often than every 5 years as was the case back then.

Being full of Softies, the crowd on Mini-Microsoft dismissed my suggestion out of hand, it being sacrilege of course to even think of marrying the 'upstart' Linux with the 'sacred' Windows code.

Naturally, today I am smiling to myself that MSFT could have taken my idea and run with it, but were too hidebound to do so and have lost 10 years in the process.
I don't hate permaculture. If it works, I'm all for it. But it seems like a fad, so I'm skeptical. And there's a certain level of dipshittery and lack of critical thinking on this website when it comes to diet and food production. I'm not sure why that is, but it's almost as if diet is religious and/or ideological for many people. So I push back.

Regarding facts: you're right, I'm not entitled to my own facts. But here's a fact for you: roughly 2.5 * 10^14 calories are consumed in the U.S. each year (360 million people * 2,000 calories/day * 365 days). Approximately 0% of those calories are produced using permaculture. The producers of those calories are voting with their feet on the viability of permaculture to produce the calories needed to feed Americans.

So on the one hand, we have all of the people most intimately involved in the day-to-day business of producing food. And on the other we have a bunch of people making noise on the internet and in academia. You'll have to forgive me for assuming that the people with real, practical knowledge are probably right here.
Adult Swim – Choir
parents shouldn't be using baby powder on their infants anyway, there are safer alternatives and most pediatric or obgyn nurses would be able to recommend them.
I'm not familiar with it either, but this seems to provide a description https://en.wikipedia.org/wiki/Payment_for_order_flow
The book, page 3:

> and ask her to contemplate
the justice of insisting that the lenders be repaid, not by the dictator,
or even by his cronies, but by literally taking food from the mouths of
hungry children.

I'm still willing to give this book a chance, but it's not a good look when the third page already contains an emotionally manipulative and gross misuse of "literally".
The First Noel is thought to date back to the early modern period, which runs from about 1453 to 1789.

https://en.wikipedia.org/wiki/The_First_Noel
When Two CEOs Are Better Than One: How David Cohen Gave Up Control of Techstars
Boots are very important (certainly your feet must feel good in them) but they can't be viewed in isolation. While I think we are past the days of Herman Munster boots, you still need to be careful to match your boot to both the binding and board. You'll want to be able to take full advantage of your binding while not ending up with toe or heel drag.

Board choice is also important, especially for a beginner. Worst mistake a novice can make is getting a board that is too stiff or (and it usually goes hand in hand) one with too large a turning radius.

Besides don't get step-ins, I would avoid Flow bindings as well. They are convenient until they aren't :)

When buying goggles, ALWAYS BRING YOUR HELMET. If you have only one choice of lens color (because of $) get yellow or the lightest mirrored orange/amber. Bluebird days will be a little bright but there are usually more cloudy days and shadows come early in the winter. Depth perception is the key.
Not recommended. Particularly there are warnings for C++ now that are "mutually unsatisfy-able."
No, you’re wrong. Speeding is one minor factor in driver or truck safety. Motor Carrier regulation is about much more than speeding. It’s a difficult problem that is addressed via a federal/state/local framework of regulation and enforcement.

I’ve worked in engineering roles where law made me potentially criminally liable for negligent handling of certain data. We took things more seriously than Facebook.
UCLA and other universities are in trouble because of their own doing. They relied on one publishing system and allowed it to grow so big that now this system is mishandling them for its own profit. Had they been more cautious of implications of their actions they would have avoided current situation.

University should immediately back out of negotiations as what they desire(open access) would never be fulfilled by publisher whose sole mean of income relies on subscription costs and search for/or build an truly open access communication system. Entering into another long-term contract with Elsevier would further delay the much needed reforms in currently unsustainable scientific publication process.
If you compile a bitcode file from anywhere around LLVM 3.3 or later, you can generally read it in the most up-to-date version of LLVM (you may have to first strip debugging metadata though).

The LLVM-C API also maintains compatibility, but that comes at the steep cost of preventing you from using most of the power: LLVM-C is basically limited to reading/writing LLVM code, running passes largely at the -O1/-O2/-O3 level of granularity, and executing the JIT. Writing a pass with that API is very difficult, and pretty much impossible if you want to use any analyses.
It is also far more dependent on personality of project leadership and contributors than pure % of code committed. Jay is well-regarded as a 'good guy' and has the interest of the technology at heart. Such personalities in leadership can change a project greatly though. A bad project leader may lose a great deal of public goodwill in an open source project. That is a key intangible that many do not take into account -- trustworthiness of leadership.
What does that have to do with owing a bank 300k and then your assets are worth ~150k?
DDoS of brogrammers and financially obsessed man-children. I think he nailed it. However the content in his pages is very lightweight and hosted in AWS it looks like so maybe that referrer logic pre-dates him hosting it and the DNA Lounge website there and... also because what he has to say is certifiably true. Good laugh.
Get or rent a copy of "Lines" It is a board flick about making board flicks but has a ton of historical footage and interviews in there. And any of the early Ticket to Ride's.

Burton deserves many kudos but there are/were a lot of others who did as much to advance the sport. Few have the longevity and balls of Jeremy Jones and it really hurt losing Craig Kelly as just two examples.
Cash accidentally dumped onto busy highway
> Also, newer reactor designs are much safer and last longer so a lot of the concerns of radioactive waste have largely been alleviated.

...in countries that are large enough to make it "disappear".
Meanwhile normal sized countries are still struggling with old waste and new waste. See Germany. Meanwhile reprocessing as it exists is economically pointless, while it reduces the amounts of highly radioactive material enlarges the amounts of mid and low radioactive material and doesn't help with the stuff that has been insufficiently stored already. Also Sellafield and La Hague are probably polluting water.

Hooray...
The Problem with RELRO/ASLR in Statically-Linked Executables or Lack Thereof
Asbestos brake pads are illegal in the US as far as I know (and I’ve heard that the asbestos in the old banned ones was not the same as the really nasty stuff in insulation, even after being ground up during normal use).

Did NYC somehow get a special “kill all the commuters” exemption under the radar, or something?
Amazon Google and Microsoft all definitely have enough business interests in Australia to have become untrustworthy due to these laws.

I wonder how long it’ll be until someone like Digital Ocean starts advertising “we have no Australian office, and we’ve let go all our Australian staff!”?

(Having said that, DO are at least as susceptible to NSLs. I wonder who the most reliable non five eyes cloud hosting provider is?)
It wasn't ever an acronym. It was an initialism.
more specifically, from bad skiers not carving.
Being US specific is not meaningful when it does not occur in any country.
Post-traumatic stress disorder may mimic autism in some children
> The implied conditionality here is troubling me. Reasons to block a merger should be about market power.

Why just market power? National security seems like it's also be a valid, defensible reason to kill a deal (it'd have been obvious to block Russian company taking control of a major US defense contractor, especially during the Cold War).
Governments have been trying to thwart crypto for a long time, with limited impact on people who seriously care about security.

In the mid-90s, it was illegal to export strong crypto developed in the US outside. So for quite a while programs would come with dummy crypto, and before building you'd download the actual crypto libraries from Finland and link them in instead.

Also for a time, RSA had a patent on public key cryptography and enforced it against companies using it (say, for running a secure webserver) unless they used their closed-source library.

So using crypto in the US was made difficult, and yet the internet was fine and most people got the crypto they wanted (except, ironically, defense contractors.)

Although the new law sucks, everything will probably be fine there too. The Internet is pretty resistant to the sort of damage this law could create.
Not if you default or die. Technically, you're only borrowing from your future wealthier self.
if you want an even more minimalist API you can try out lindenmoji:

https://twitter.com/lindenmoji
Ancient and long dead Opera 12.xx let you set all HTML5 Offline Storage quotas/features globally and per domain.

Afaik Chrome and its derivatives lack any form of user control over local storage. No Quota mechanisms, no domain black/white listing, no feature toggle. localStorage, webSql, IndexedDB, Filesystem API, all forced on with no limits under user control.

In a better world this would be an easy fix for Chrome users unable to upgrade their browser, flip one config setting to disable webSql and you are done, alas Google wont let you do that. Cant wait for first worm using this vuln.
"Dumb Fucks."
The headline is amusingly overly modest. Statistics and science have changed agricultural practices in extreme ways many times. As have simple economics. Machine learning doing the same shouldn't be a surprise, since it should just be seen as a continuation of those practices.
Most of the boarders complaining about flats do so because they never wax their boards. If you regularly wax with the right stuff you'll be able to fly by skiers on all but the stickiest of spring crud.

And when I say waxing, I mean doing it yourself. Too many shops do really inferior work. If you must use a shop, keep a small structure brush with you. A credit card can be used in a pinch as a scraper. The bane of speed is wax left on the board.
They could and they should. Linux is an amazing OS and to have a great UI on top of it that millions of people are comfortable with would be tremendous.

Think about it. The year of Linux on the desktop brought to you by Microsoft.
I don't think anyone's disputing that they've removed their Huawei gear from their US networks, but it appears they may still have some installed in other countries, e.g. Germany or Japan.
Never too late for them to make a go for it, even today.

But, to avoid alienating their huge existing developer community, they would first do well to get behind Mono [0] and maybe even, make it official (edit: Mono is "Sponsored by Microsoft", so already quite official indeed). In fact, as of 2014, there have been very promising signs in that direction. [1]

[0] https://www.mono-project.com/

[1] https://opensource.com/business/14/11/microsoft-dot-net-empo...
Is three sentences asking too much?
Indeed, and I think the ability to triage incoming patients can be part of the model for how an emergency facility works.
I actually don't even like -Werror for development. When I'm developing/testing/debugging, I frequently want to run partially implemented functions (a good example of this is repeatedly commenting out blocks of code to bisect a problem). Trying to deal with warnings about unused variables/parameters is extremely cumbersome.
Ask HN: What are some good topics for undergrad thesis related to Tomography?
I am in the final semester of my college and I am looking for a topic for my undergraduate thesis, it should be related to GPU Programming. I would like to work on a problem that involves Tomography. I have looked at several research papers but I would like to work on something which is untouched.
Its funny but the way I tell western riders is they rarely wear helmets.
This has happened many times, just not enough times yet. Here is a list: http://oad.simmons.edu/oadwiki/Journal_declarations_of_indep...
While Linux is faster and more scalable, Using BSD like Apple has many advantrges - especially when there are thousands of closed-source windows drivers which will never be released as open source. The other big hurdle is the sad state of Linux graphical facilities in the kernel. For Apple, this was never a problem due to limited hardware choices.
We have a Charybdefs; a fault-injection filesystem for testing.

https://github.com/scylladb/charybdefs
Everyone is scared of China, so getting our allies to work in concert wouldn't happen, that's why we need a fool. Once everyone realizes that China isn't a tiger, it's easier to get our allies on board.

Western businesses have also wised up, realizing that partnering in China just means that you are forced to give away your IP. China is reliant on western countries partnering and giving away the IP for a shot at the Chinese market, but things have not panned out so well for Western countries because the consumer market in China is rigged against western companies. Also the consumers in China are scared rabbits, their motto is save, save, save, and then save more. It's going to take 2 or 3 generations to change the consumer habits.

Manufacturing is starting to leave China for cheaper countries that don't require you to give away your IP, just like it took 40 years for China to become a manufacturing powerhouse, but it can unwind in a few years.
They only killed a few thousand babies. And babies are small, and a drag on the economy! They're like tiny little immigrants who don't pay taxes, then grow up to take our jobs. Anyway, just because it's labeled "Baby Powder" doesn't necessarily mean you should put it on babies. I mean, I like babies just as much as the next guy, but I just can't eat a whole one.
Sure, though what I'd say is silly is epistemological conceit of trying to pin down vulnerabilities as "remote" or "local". A lot of vulnerability research terms are silly (sillier than RCE). Either way: it's a "term of art", and it means what it means, and this is a clear and obvious instance of an RCE.
Costco now sells Macs online, with discounts ranging from $50 to $200
I'm not a certified instructor but have taken out many a novice the past 20 years. I'm not fond of the 'lead with your arm' point as I've seen way too many beginners with arms flopping all over the place and instead prefer arms and hands kept quietly at the sides. If they get into high speed or euro-style carving, then yes arm positioning is more in play.