skysight-inc/HackerNews huggingface dataset:
Unfortunately not - there are probably good resources out there, but most of what I know has come out of manual profiling in Chrome, different experiments, and the occasional StackOverflow post that explains a weird behavior or two.

At some point in the future I will probably write a blog post about good techniques for taking back control of JS memory management from the browser, but it probably won't be for a while.

The short answer though is that browsers try to defer garbage collection until it looks like the page isn't doing much; and the problem is that games don't ever really stop doing stuff. This encourages the browser to put off garbage collection and handle it in chunks, which in turn leads to dropped frames because you're doing a lot of deallocation at once.

This is why if you profile a Chrome app that's doing a lot of allocations very quickly, your memory usage will kind of sawtooth all over the place. And you get around that by getting rid of as many allocations as possible.

IMO the lack of garbage collection in WASM is the most exciting thing about it, but different languages have different tradeoffs and WASM isn't appropriate for every application.
That's how you become a product when there is no proper regulation.

> Before we launched this beta product last year, we built a new, double-blind encryption technology that prevents both Google and our partners from viewing our respective users

> We do not have access to any personal information from our partners’ credit and debit cards, nor do we share any personal information with our partners

That probably means that they do not get customers' names or email addresses but hashes of them. So technically no personal information is transferred.
Security issues we have to be aware before migrating to the cloud
The only thing preventing me from using this is it makes UI's very cluttered, especially in scenarios with a lot of verified users. I only care about the Keybase verification as from there I can check for the rest. Hovering Keybase would provide an interface to show the rest. I see there's an issue to change the UI so I look forward to that - so I guess I'll wait.

E: It's very cluttered in this thread, for example [0]. Also, in Chrome, a users' verified websites don't appear - they do in Firefox.

[0] https://vgy.me/o3NVtf.png
I doubt that's related, but allow me to suggest creating a new browser profile like this for Firefox [1] or this for Chrome[2]. If that doesn't fix the problem, a quick search for 'report bug Firefox Chrome' will allow you file a bug report. Or were using Safari? My solution for that would be to switch to Firefox...

1: https://support.mozilla.org/en-US/kb/profile-manager-create-...

2: https://support.google.com/chrome/answer/2364824?co=GENIE.Pl...
The most buzzwordy thing I heard from a blockchain guy was from Vinay Gupta, of Ethereum fame. He said quantum computers can solve the economic calculation problem, so we can get Quantum/Blockchain/AI socialist central planning.
A bit. In the West we mock the East. We're pretty sure they forget we exist half the time.
Who says I'm not fighting for better choices? Voting just doesn't happen to be very effective at doing that if you don't first make sure there are good candidates to vote for. Telling people to just vote is as good as believing in the power of markets to solve all ills; neither are a magic bullet. Getting people to understand that problem is part of the fight.

If you would like to support a good candidate, you should consider donating to Ross Barkan for NY State Senate: http://rossbarkan.com/
AFAIUI seems to solve the problem nicely. Not a native speaker and yet I understood it right away.
The Trump Administration has taken one of the most liberal positions on cannabis of any Republican president ever.

His stated positions on supporting states with medical laws, and his complete absence of federal raids on people following state cannabis laws, is very good for a republican president.
The author states

> The focus of this post is on fixed-size string buffers, but the technique applies to any type of fixed-length buffer.
TTBOMK, TANST.
I'm not entirely sure what the point of the multi-mapping is. It says that it means you don't have to do any pointer bitmasking to dereference, but you already have load barriers, which have to at least check to see what phase you are in and possibly do work every time you dereference a pointer, so how much extra latency would doing the bitmask really add? And the problem with the multi-mapping is you will be resolving more virtual addresses, increasing the working set for the TLB. Seems like there could be increased TLB thrashing.
UNIX was to C what the browser is to JavaScript.

Naturally it didn't caught on mainframes, already using better system languages.

It is also barely used on Unisys ClearPath MCP.
Unfortunately, a lot of people treat "estimate" as "a binding commitment written in blood" - so I sometimes understand when people are reluctant to give such a thing.
> edit: Also, in Florida the days get shorter during the summer, over here they get longer.

I'm not sure what do you mean, but it doesn't seem right.

Either the days in Florida get longer during the summer relative to the winter, as they do in Europe, or the days in Florida get shorter as the summer advances, as they do in Europe (the longest day everywhere in the Northern hemisphere is around June 21).
When I was a kid in China, we have winter and summer school schedules separately. It's not only a time shift. To deal with the shorter day time in winter, the winter schedule is tighter overall like shorter noon breaks. Companies usually don't do that.

For me, DST is more like a too simple solution for a much complex problem and too inflexible.
Excessive capital raised to go with excessive expenses per widget and a higher density of other startups.. The Bay Area and anyone who bought this recent 4 times overpriced equity in it won't be pleased if these things have a way of evening out.

Most of the interesting startups I've seen recently have a small office in the Bay Area to go with a preference for real operations in other cities. Probably an efficient way to raise money from VCs who apparently think Google maps is the tool for investments and yet not have to excrete rainbows to reach profitability.
What pcmonk said. And:

* I'm a dschep, sorry I don't work at keybase

* it's open source

* extensions are easy to unpack & view the source if you don't trust I'm not tampering the extension before upload

* I do no obfuscation of the JS, it's only 201 LOC
Sure, monads provide an elegant way to structure code with error conditions, but I don't see a problem with using simple assertions, throws, try-catch to enforce invariants. Personally, I don't care about elegance as much as whether or not it works, as long as it is simple to use and maintain. I can return something like a Maybe/Either, or I can throw an exception - both approaches are fine by me if it forces the programmer to account for error cases.
It's a lot easier for me to find oxy and heroine than weed if I wanted to today, and I live in Colorado. I have three neighbors who deal pills openly, and one who has pretty good heroine. I have to get in a car to find weed.

The effects are already here, there is no need to hand wring about what might happen. It's a waste of time and intellectually dishonest to pretend otherwise.
Hey sails are technology. Just, really old technology.

And these "sails" are much newer tech...
Not only tuned to a common frequency but tuned to match a predominant wave pattern in the mouth of the harbor they were departing.

I had a hard time reading this part, as the puzzle placement seemed so forced and nonsensical to the plot. What did the Japanese gain from this stunt if it worked? A sunken ship in their harbor leaking mercury from hundreds of smashed jars...?
SeeShell Desktop Automation as Sikuli Alternative with Unicode Support
> programs like needle sharing

What? Did you mean needle exchanges? Needle sharing is the problem, needle exchanges help take dirty needles off the street, and reduce the spread of blood diseases like HIV.

> normalization of that degenerate behavior

Why should your morality define what other people can do with their bodies?

Ultimately it is about a constructive approach forward instead of a destructive one. Putting people who use illicit substances in tiny cells and making it near impossible to find employment after they do their time is destructive. Using that money on treatment and addiction programs and letting people who are clean find jobs is constructive.
Technology companies that make DPI technology for censorship should DIAF. If you work at one, you are actively making the world a shittier place. That is all.
This error can be sidestepped by stating "Eastern".
I am not a windows fan. Any guesses on Linux support? I’m guess none at all.
White bread is bad in saltwater too, that doesn't mean there aren't better materials for the application.

https://www.quora.com/Does-aluminium-react-with-salt-water

https://en.wikipedia.org/wiki/Organic_solar_cell
This Guy Made a Working Laser Cannon Arm from ‘Metroid’
What slippery slope? We have an existence proof that the “War on Drugs” has been ineffective and the only people who have been served by it are the prison complex and politicians who want to disenfranchise voters.
Ireland is unusual in that it doesn't have a "summer" time as during summer we use Irish Standard Time (UTC+1) and switch to Greenwich Mean Time (UTC+0) for winter.

It doesn't actually make a difference. We still switch at the same time that the rest of Europe does.
They send us email. I get on the phone with them.

The way this "scaled" at Matasano was that we gradually got smarter with our outreach, so that instead of constantly circulating wide appeals to the whole developer community, we staged events (Cryptopals, Microcorruption) that targeted a specific community of enthusiasts with whom those phone calls were likely to be valuable to us.

But in the beginning, we just posted on the HN hiring threads; it's a fine starting place. That's what we're doing now. I'll do a couple phone calls a day at this point.
Here in Finland, sunrise and sunset shift quite a bit. During year sunrise shifts from 4AM in summer to 9AM in winter and sunset from 11PM to 3PM. Shifting one hour for DST doesn't really fix it.
>Trump apparently (I did not know this until reading the sibling links) wants to move to merit based immigration

He also wants to cut the quota to a third of its current value.
How LeBron James Mastered the Media
Even with UTF-16 that quote is incorrect, due to surrogate pairs. It's only correct for UCS-2, and even then, only if you take 'characters' to mean 'codepoints', and take 'Unicode' to mean 'a specific Unicode encoding'.
I'm 6' something, and most of my bosses and senior management are not taller than me.
So they're supposed to put LeBron in the game with no tattoos or fake different tattoos? If someone had a special haircut, could the hair stylist copyright the haircut? If someone had a special makeup job, could the makeup artist copyright the makeup job? I don't see how this makes sense. I can understand a design being copyrighted, but once it's applied and inseparable from a person, the copyright can still apply?

edit: So nobody would be able to take photos to make posters, coffee mugs, etc, if the subject has any copyrighted design implemented on their body, unless they pay a licensing fee to the copyright holder?
Here's what we know for sure: Prohibition CREATES crime.
It’s not about perception. I have to stay late because the work itself is insane. Crazy deadlines, dependency on other people/teams, that sort of thing.
This and what the author said basically.
Not all talented people want to move away from their friends and families to live in 4x price of living shitholes.
It's cool to watch alongside the game action he's describing: https://www.reddit.com/r/nba/comments/8jajbd/lebrons_photogr...
Tramp trade
Not as much as the 512.6 million it might affect.
Yes, exactly! It's such a shame that people think "more efficient process" means "we'll ship more lines of code" when really it is all about getting to the _correct solution_ more quickly.
Reversing the NSA's latest bad idea to figure out how to stop it from taking over your network.
What example? Are you confusing me with GP commenter perhaps?
It absolutely does turn off some people. And, what's worse/better: we refuse to alter the process for anyone; there are no fast-paths through our process. Running someone we're almost certain is "overqualified" through our challenges helps true up the challenges and the scoring rubric.

I'm sure we lose people who can generally talk their way through any interview. And a lot of those people are good at delivery! But we gain so many more candidates we never would have been able to engage before that we come out way ahead in the bargain.
>As a reference, Spain has been in the wrong time zone for decades (GMT+1 instead of GMT) but they have no problems with that.

Only that their lifestyle is approximateley 1 hour shifted. Stuff like eating at 21:00 or 22:00.
Technically, you can prove any service by posting a signed proof on it, but keybase won't be aware of it, so it's not very useful.
Trendy at the same time. They're contemporaries. Related by circumstance.

It's all just marketing.
The page I linked to listed the problems posed and solved. The Chinese version is accompanied by modern notations using x,y,z...

By the way the numerical solution to high order one variable polynomial was already known and given by another mathematician in an earlier (1247 AD) book: https://zh.wikipedia.org/wiki/%E6%95%B0%E4%B9%A6%E4%B9%9D%E7...
The rules are much stricter these days and it’s not indefinite. When I left it was 5 years with a possible 5 year extension.

There’s also a lot of luck in the application process. I had colleagues in identical jobs, similar salaries who didn’t get the 30% ruling when I did.
> For 30 years, Queensland has been in a different time zone to NSW

Ridiculous! That sounds like Portugal and Spain. If one lives in Porto and travels just north of the border to Vigo (Galicia), it's an hour ahead. Apparently it was done by Franco who wanted to be on the same time as Hitler [1]

1 - https://text.npr.org/s.php?sId=244995264
Telco lobbyists accidentally send their talking points
I say, go for it. Large companies are just large because they have more people on the payroll. If the job and team looks right to you, it doesn't matter how big the company is.
I am currently taking this class, and am happily surprised this made it here.

The book needs more work, but I still believe it's an great resource. For example, on page 11 it says "Note that when the lower 32-bit eax portion of the 64-bit rax register is set, the upper 32-bits are unaffected." In reality, the high order bits are zeroed to avoid a data dependency. I'm going through the entire book for typo hunting :-)

Also I found some issues while discussing Unicode, but the class only requires use of the ASCII character set.
IMNSHO Always refer to _cities_ when talking about different civil time systems for a specific moment, e.g. "The call is at 14:30 Melbourne time" or "When you arrive it'll be 18:15 Montreal time".

The Olson TZ data works on cities (e.g. "Europe/London" or "America/Los_Angeles") but more importantly because a city has all these humans living in it there must actually be a real working answer, or it'd be chaos. Even if the person you're speaking to isn't _from_ or working/ living in the major named city, they will have a better idea what the time is in nearby major cities than how timezones work around the world. Nobody in, say, Nantes is confused as to what time it is in Paris but they may be unclear about PST vs PDT.
Companies do this all the time with their regional offices and factories. Usually they milk the city for subsidies and tax breaks while dangling the promise of job creation and trickle-down revitalization of local businesses. Then when the tax breaks expire, they move to greener pastures, leaving the city in a bigger financial hole than they left it.

In Silicon Valley the dynamic is different, because it’s mostly global headquarters full of upper management and highly paid engineers. Unlike low-wage employees in regional offices, those people are not considered disposable, and aren’t willing to relocate on a whim. So relocating headquarters to another city or state is extremely hard for large companies.
And his stated positions are in opposition from what his attorney general - the person responsible for enforcing laws - has said.
The guy said "there are good people on both sides" after a group of neo Nazis chanted "Jews will not replace us," murdered a woman by driving a car into a crowd, and attempted to lynch a black man.
Thanks for clarifying, sounds like pretty deep stuff though.
Take a look back at the jet packs developed for the army in the '50s
Sometimes they use your work in theirs, upload it and have YouTube flag your original as infringing.

I have to wonder why anybody still uses YouTube. It can't be the community.
Disney started with the works of the Brothers Grimm, available after 24 years, I think.

Pulled that ladder right up behind them.
Because Google is a private company and allowed to delete videos whenever they like (assuming you don't have a contract where they've agreed to host them for you or anything like that).

IMO YouTube ought to be regulated the same way as broadcast media used to, with things like the equal-time rule, but that's not the rule as it currently stands.
The CET should be smaller. Spain should be on the western time.
I completely agree with the approach outlined in the original post. (It's also called defensive programming.)

Not failing fast and hard when the application is in unexpected state (which is what assert should check) is robust only on the surface.

I think we have the debate because it's not just about adding asserts. If you want to add asserts to existing codebase, essentially making it to fail fast and hard, you need to have a system architecture that is capable of dealing with said failure. If your codebase isn't architected as such, you will probably make things worse for the user by adding extra asserts.

I think that's what the people who are against asserts fear
of, and rightfully so. But the answer shouldn't be do not use asserts, the answer should be make the system more resilient to failure first.
Location is far from the only factor, peering can make as much of a difference too. Not saying DO is bad, but there are more factors at play than just location diversity.
This made my day. We've assumed that animals can adapt changes as fast as we can.
>those who falsely claim copyright can do so with impunity

It's a different enforcement mechanism. DMCA requires by law that YouTube affords people a way to report things. If it gets abused that's on the government to correct, YouTube hands are tied.
VMworld 2018 llega a su fin hoy
I agree. But taking away a tool from the “justice” system to be used to target the poor and minorities is a good thing.
What choices is Tink asking you to make that you feel are unreasonable for "the average developer"?
It doesn’t matter if they created the work 20 years ago or not, it’s theirs. Can people go into your house 20 years after you build it and just say it’s their because they like the way it looks? Intellectual property is still property.
The Diverging Diamond Interchange
I'm genuinely curious why this was downvoted. Hacker News, you are hilarious!
>You mean he has no clue? Will it take three months?! 30 minutes?! How can we plan to work around no AC in a restaurant when the installers have no idea how long it will take?

>But of course they had a rough estimate. Why didn't they give me one? It would relieve a lot of anxiety if nothing else even if it was wrong.

If he had told you it would take between 1 hour and 10 hours would you have been happy with that answer?
Ymmv
People who didn't vote are fine with either way.
But it's only a poll.
JavaScript Beginner? Start Here (Exercises Included)
Yes! I haven't read all of it yet, but from what I've seen so far, the book spends a lot of time rigorously proving mathematical properties/bounds of various bandit algorithms. I love rigor as much as the next guy, but I also like seeing code :)
They sold smartphones with projectors a few years ago. They were bulky and not very popular. One issue with current projector technology is keeping the image straight. You also need a place to rest the device near the surface. Logistically it’s a pain. Future tech could improve this, but right now it’s not great.
The straight/sane man is the funniest, to me, character in any kind of comedy.
I can sort of understand concerns around an increase in recreational opioid usage, but that's already happening. Drug overdoses are at epidemic proportions, largely due to the increase in usage of illicitly manufactured synthetic opioids. [0]

The argument for adding regulation, supervision, and proper labeling to opioid manufacture is simple: significantly fewer people will die.

[0] https://www.cdc.gov/media/releases/2018/p0329-drug-overdose-...
Eh DPI? DIAF? Not familiar with what these mean. DPI = Dots Per Inch usually...
Awesome. My boy and I were talking about liquefaction and phase solids last night when he was showing me how the sea salt behaves as a solid in the shaker (humid here) until he bangs on thr glass.
GP didn't say $125k total comp. Counting sign-on, bonus, and stock, it could be as much as $200k total comp - for a new grad. Which other cities/industries pay that much? (outside of finance or law, at the top end)
For people who aren't Ph.D. students, it may help to contact a local CS department and see what they have going on. There should at least be a grad student colloquium meeting once a week or so. I attended that at Penn a few times, although it was too far above me to really follow (lots of PL theory). More recently I've been going to a Database Reading Group at Portland State University (http://datalab.cs.pdx.edu/dbrg/index.php), which is a great way to get a taste of current research in that niche. Databases are less rarefied, too. :-)
If it's not obvious yet, the President disagrees with the AG very publicly on multiple issues, the question is will the next AG take the same stance?
It's their choice to publish.
As we found out, they buy the data - this time from Mastercard and collect a detailed profile of every user, maybe more detailed than 3-letter agencies have.
Time zone are very useful for news, travelling, business, etc. Because if you know it's 3pm somewhere or 3am, you can make assumptions. If you know it's 3am everywhere, what does that mean that your plane land at 8 am in this countey or that the strike will start at 10 on that one ?
strscpy seems like a nice interface. Is an implementation outside of the kernel available? Preferably one that is permissively-licensed?

Also, it doesn't appear to be specified what happens if the count argument is too large to be represented as a ssize_t. The destination buffer would have to be extremely large, so it probably doesn't happen in practice, but it'd be good to specify it, or at least explicitly state it's unspecified / undefined.

https://www.kernel.org/doc/htmldocs/kernel-api/API-strscpy.h...
Internet time would actually have been an interesting innovation... if only Swatch were not involved.
Back in the day, MS was the gospel in my country (Colombia). We take everything them say, expect programming in Visual C++.
With these fancy tools bringing their own UI toolkits to the table, it's possible that tab was broken— when you roll your own, accessibility is usually the first thing out the window.
Show HN: Probabilities of major sport and political events