skysight-inc/HackerNews huggingface dataset:
I gotta give that sub props. They got me hooked. Went to a meetup for that sub in DC last year and it was really cool to see how friendly that community is and how creative they are.
I think maybe that _is_ JQuery.
Actually a quick follow up :

I presume that GSK thinks they can do more detailed follow up medical questionnaires on the 5m existing users than just any random sample.

But will the genetic material still be viable for retesting with the more advanced chips?
Thanks, we'd love to have you! Finish up demo day and fundraise first :)
"Toronto is NYC if it was run by the Swiss."
I'll mix nuclear physics and particle physics, which are close anyway: The www, digital x-ray, PET/CT, MRI, proton/ion beam cancer therapy. Just from the top of my head, certainly not complete.
Exactly. It's win-win-win. Anonymous genetic data is amazingly useful for various kids of biotech applications. The more people who have it and can work on it, the better. 23andMe is a great platform for collection and providing useful insights to consumers, but the big potential is having millions of people's genetic data for drugs and science. Why would this make you wary? Use a fake name if your concern is PII.
It's like traversing a tree for me. I'm opening links from links from links and don't start closing tabs until I reach a page I don't open a link from
Proposition: There is no way, given some integer r and a sequence of iid random integer samples X1,X2,... uniformly distributed in [0,n) for some n>1, to always construct some finite k and function f : [0,n)^k -> [0,r) such that f(X1,...,Xk) is uniformly distributed over [0,r).

Proof: Suppose such a k and f exist. The distribution of U[0,n)^k is isomorphic to that of U[0,n^k) (just treat it like writing down a k-digit number in base n). And so f must be a function from a set of n^k things to a set of r things. By the pigeonhole principle there must be some integers x,y in [0,r) such that the preimage of x has size at least ceiling(n^k/ r) and the preimage of y has size at most floor(n^k/ r). By the fundamental theorem of arithmetic there exists (for any n,k) some r such that n^k/r is not an integer and so the probabilities of x,y (being proportional to the sizes of their fibres under f) are not equal.

————

The gist of this is that you always might need to loop (repeatedly sample) for some ranges and you might need to repeat arbitrarily many times.

One way is by rejection.

Another nice thing is if you want to generate a Bernoulli r.v. for some probability p a computable number, you lazily compute the bits of p simultaneously to a random sequence of bits (distributed as Bernoulli(1/2)) and compare the two. If your random sequence is definitely less than p then generate 0. If definitely greater then generate 1. If not sure then generate some more bits.

In this way any Bernoulli random variable may be generated from an infinite sequence of iid Bernoulli(1/2), and basically any probability space can be modelled in this way too. In this sense, all of probability can be built out of tosses of a fair coin)
Show HN: Baasdb|A simple DB that uses JSON
Author here. I answered this and other questions in discussions on Reddit: https://www.reddit.com/r/haskell/comments/8ye1h0/explaining_...
This got my hopes up about something I was just talking about a few days ago [0]. However, this does not seem to be custom bespoke keyboards, but rather DIY keyboards. It also seems to be limited to mechanical key switches with the bulky key caps. I'm not too interested in building my own keyboard, but I do see the appeal. Some of these are truly works of art.

[0] https://news.ycombinator.com/item?id=17563058
Hey. We don't say low performance. We say efficient, or low cost.
Facebook Revenue Falls Short of Expectations
Yes that’s it!
GitHub says they are using polyfills instead of jQuery as well. The point is to not have to rely on external frameworks.
New buildings and the possibility not to penny-pinch every time also makes a much nicer work/study environment.
Nope, there is also [COMBINE PARAS] in there as well. I didn't see the COMBINED until later on in the article.
i think i watched this before ony guy whos is korean student somewhere in USA, teches via YT very cool stuff...

glad this is here.
Actually, you're right, I have missed that bridge is a full-fledged IMAP implementation. My mistake.
As noted by others, jQuery was essential in carving a path between the past of browser incompatibilities and the modern form of mostly reliable and evolving standards. It was hardly alone - other libraries did their part, evergreen browsers are essential, and the list of people doing a lot of thankless work is long and unassembled - but it was nonetheless an essential piece.

I want to clarify a bit about "JA Hate" though: Most of it stemmed not from JQ's limitations or age, but rather as a matter of architecture. While it's cool these days to smugly enjoy the options of vanilla JS, JQ hate was around before those standards were reliably implemented.

JQ really stepped in when dynamic web pages (i.e. pages that modify their own HTML without page refreshes) were becoming a thing. AJAX calls were new (to most) and exciting. form validations that didn't require 2-3 seconds to load, etc. All made far, far easier by the APIs JQ had.

BUT there were complications: JQ plugins meant that having multiple copies of JQ on the page tended to not work well - and that happened if you were mingling content sources. JQ didn't require it, but many coders would use the DOM to store data (JQ made it so EASY), which worked well short term but caused troubles. Example: If you have a list of items, with every other item shaded, and every item had some metadata in the HTML, and then you wanted to remove some items, what did you do? More importantly, when you wanted to restore them, where did it come from? If you were tracking everything in a JS variables and building the DOM, no problem, but if you were using the DOM to hold your data, you had issues. Even if you WEREN'T using the DOM to track your state, repainting all the DOM got expensive - a table of 10 items worked great, but a table of 1000 could bog down terribly.

Ultimately someone would inherit (or create) a convoluted mess of JQ and blame JQ rather than the creator.

Much of the JQ hate came not from JQ flaws, but the flaws of coding done in the face of JQ success (as has happened with so many languages/libraries/frameworks before and since). We've learned from those flaws AND successes though - querySelector() basically uses the sizzle syntax; modern virtual dom libraries deal with the DOM pains; be it React's Unidirectional flow or Angular's two-way binding, the goal is not to use the DOM to hold state; and every AJAX library out there tried for a better interface (arguably fetch() beat them all). We're still hashing out how to handle reusable pieces of non-static HTML, but there are many options.

So congrats to anyone that doesn't need JQ, and no hate to those that use it if they strive to use it well. I can only hope to write something hated for the results of success that nonetheless leaves the world better off.
Making a prediction and writing about events that have occurred is two different things.

Goldman Sachs predicted World Cup winners and were wrong.
“The Great Suspender” is a chrome extension that solves this very gracefully. I came across it, showed a couple coworkers, and it spread like wildfire inside my workplace, where everyone I work with spends their day split across dozens of chrome tabs. I was wondering when this would become native to chrome.
Yes, and I was also at a company that didn’t appreciate me and gave me menial raises for 9 years. I stayed for a lot of (bad) reasons, one of which is that I let my skills decay. I vowed I would never make those two mistakes again - letting my skills be out of step with the market and never getting paid less than I’m worth.
Yes, cancer and murder are duals. Do you think there may be a way to convert between measures against either?
That was my number, too. The thing is, at that number I don't have to worry about the year the market returns -10%. I don't have to worry about the year that inflation is running higher than the interest rate on T Bills. I don't have to worry about that sudden medical expense. I don't have to worry about money at all, short of the total collapse of the US economy. (And with that much money, I can even buy some gold bars in Australia for insurance...)
MoviePass stock plunges 50% after reverse split
Shhhh..

I'm trying to buy a house in Waterloo. Inventory is already staggeringly low.
Any sufficiently advanced web browser is indistinguishable from an operating system.
Avie Tevanian (Computer History Museum) [video]
That's a very different issue.

When malicious users were abusing our trial accounts at work, I tried to find alternative solutions that would slow them down, but the implementing team had already exhausted all the usual tricks and in the end I didn't really have anything to offer. And they went with ReCAPTCHA, since unfortunately that seems to be one of the better options at the moment.

I think the best option might be something as CPU-hungry as a coin miner, maybe just burn through a bunch of hashes as a proof of work, but smartphones have such limited CPU that it's not clear to me you could reach a threshold that would be acceptable to phone users but not to the bots.
It's all fun and games, until you have to access parent elements.

You'll likely start wrapping these methods, and before you know it, you have jQuery-micro.
Except it happens all the time.
Username: tpdc

Thank you for the offer, even if you don’t get to me.
I typically don't end up with >100 tabs, but a very common pattern for me is to do a search, open the results that seem interesting in new tabs and leave the search tab for the case I don't find what I want. I'll sometimes have several such searches going on, which can easily consume ~30 tabs. In addition to that I've got a collection of ~10 tabs that I keep open such as email, status page for work, etc. Most tabs end up being either something that I'll skim or only look at when it pages, so its not too much information to consume total. I typically clear my related tabs when I finish a task and most of my tabs are short lived, but I know a number of people that will leave similar search structures open when moving to a new task and possibly have several different contexts open in the same browser.
No, it is not necessarily identical in C, because even though you don't have constructors or destructors, you can make an address comparison to check whether two objects are identical.

For example the following code:

https://godbolt.org/g/ikD6bi

where the address of the caller's variable that will take the return value is passed along to the function returning it. Within the callee, f1 and f2 must be different objects in C, but not in C++.

All decent compilers compile this in C++ with only a single object, so sink() will receive identical objects. Most compilers "deoptimize" this in C since sink cannot receive identical objects: two objects are created so f1 and f2 have different addresses, and a copy is performed from f2 to the return value f1.

Due to a bug, clang mis-compiles this and applies the C++ RVO to C. So you maybe you are right: you can get RVO in C, but only due to a compiler bug!
> while it's possible in practice, it'd never work in theory.

Hah, sounds like you nailed the emergent philosophy of C there... :-)
What the SF City officials are covertly asking for is campaign contributions!! This is literally not affecting daily life or commerce for residents, but it's a great distraction and fundraising opportunity for city officials
Make it a high karma cost. E.g. you must have been upvoted 10 times to be able to downvote once. That cost can climb up for people who generally don't significantly upvote more than they downvote.

[added] I've noticed that sometimes in a deep conversation between only two commenters -- where they cannot downvote each other -- one of them gets their comments downvoted within a minute of posting or so, suggesting that there are parallel accounts used to downvote as a method of intimidation or retaliation.
The design they're sticking with is instead Curiosity; the Mars 2020 rover is basically an update of that design with different instruments, better navigation software, upgrades to parts that specifically took a lot of wear on the Curiosity mission, and a cool little helicopter scouting drone.
ho wo use that lol to leasrn circuits ?
I use the great suspender and it works well for me.
India has more applicants than all other countries combined times 2.5

I wouldn't be surprised if a lot of them are fraud and legitimately rejected

https://www.uscis.gov/sites/default/files/USCIS/Resources/Re...
RISC-V is a something one might even learn somethings from, maybe. But it will never be a viable commercial alternative.

-- ARM
So either open source developers have to work for and enrich corporations or work on the side for free?

Why should software development be any different than any other profession where people get paid for their work?
It's the difference between building a product to spec and building a product so it's usable by the actual demographic that needs to use it. US Digital Service talked about finding these Flash barriers and building quick webform replacements making a HUGE improvement in usability (like from ~5% completion to 90%+ completion IIRC).

I wouldn't be surprised if those same government departments are stuck on WinXP SP2 with IE6-8 with Flash enabled. IT at huge orgs moves extremely slowly.
Let's say you have cancer, but you're also in the middle of a famine and can't feed yourself. That's a more fundamental problem, right? Zoom out, what good is curing cancer in the face of apocalyptic climate change?

The case for Mars is that “humanity putting all of their eggs in one basket” (Earth) is the most fundamental problem of all. Everything else is a band-aid.

(Cancer can’t be cured, incidentally: https://tapas.io/episode/58081)
Steve Jobs on the App Store in 2008: 'We Didn't Expect It to Be This Big'
I've been to sexual harassment training, sensitivity training, and some management training retreats. I agree that some organizations may use them for HR compliance or to defray lawsuits, but they can help. I found these trainings helped me understand the impact of effective leadership. Although not always the most interesting trainings, they can and do make a difference.
"There's nothing in what I've said whatsoever to support this. You've completely imagined that."

No. Your entire rant where you mention people who can fill out an IRS form clearly shows that you are not arguing in good faith. You are assuming that we're saying any charity is good, which, if you were listening, no one ever said. Once again, the entire thrust of your argument is, "What makes people who have actually studied things, people who are actually involved with the problem they're trying to solve, think they know more than me, a rich person who's read something on Twitter?"
https://en.wikipedia.org/wiki/Fourth_Estate
With much worse UX and interoperability capabilities, unfortunately.
Did any of the deployment improvements discussed at Lonestar Elixir make it into 1.7?
>at a certain point, it’s too expensive to keep fixing bugs because of the high-opportunity cost of building new features.

While I may agree with this in the abstract, in practice most folks don't really know whether they're at that point. It also doesn't consider cumulative effects over time.

Bugs don't just affect application stability or user experience. A system that does not behave as designed/documented/expected is a system that will be more difficult to reason about and more difficult to safely change. This incidental complexity directly increases the cost of building new features in ways difficult to measure. Further, new features implemented by hacking around unfixed flaws will themselves be more difficult to reason about and more difficult to change, exacerbating the problem.

The larger the system grows over time, the more people working on it over time, the faster this incidental complexity problem grows over time. At a certain point, it's too expensive to not fix the bugs because of the increasingly high cost of building new features. At that point, folks start clamouring for a rewrite, and the cycle begins anew.
See my reply to the parent poster for an example where RVO applies in C++ but not C, leading to better code in the C++ case. The key is to let the address of the objects involved escape: otherwise "as if" will let C (and C++ even without RVO) optimize away the copies anyways, since they are not observable in that case.
I'm kind of lazy, I rarely downvote, and only if It's really garbage, I don't upvote much either unless it's a golden comment or post. I should probably upvote more.
power doesn't concentrate in miners any more than power concentrates in those who create the paper to make euros or dollars.
I've been programming heavily in Elixir for the past 2+ years and I've become increasingly happier with the language, its growing ecosystem, and the Erlang/OTP.

I first came across Erlang a few years back, while I was researching more exotic programming languages, but for some reason Erlang never felt like home. I know plenty of people like it, but personally, I found it difficult to get accustomed to its syntax, especially after having spent most of my time in Python.

But as soon as I discovered Elixir, I got hooked. All the advantages (and disadvantages) of using the Erlang/OTP programming model, while experiencing a nicer, developer-friendlier, and more familiar interface.

Our work is seldom, if ever, not dependent upon the sweat and labor of other people.

So, thank you Elixir team! Elixir is truly a joy.
Why should my DNA be private? I don't care at all about my DNA.
You're right, no one has to. But why would I want to take a job somewhere that pays less, and has me live out in the middle of nowhere if I don't want to live out in the middle of nowhere?
Oil is a killer for calorie control. Amazingly so many people just don’t factor it in, even when they are tracking calories they forget about the tablespoon of oil in the pan at the start or in the dressing on the salad.

I’m keen not to blame people for their weight, I’m keen to make sure we are researching the right problem. I think the “how to control weight” is solved, the harder problem, as I mentioned in a previous comment above, is how do me help people control the appetite and impulses to stand a fighting chance.
I believe part of the London Underground system was written in Ada - think it was the signalling on the Jubilee line.
Agree. It has to do with the fact that the H-1 is a nonimmigration visa. I’d make it one, or better yet just allow for a quick F-1 to permanent residence change.
Understanding Currency Debasement, Inflation, and Bitcoin’s Limited Supply
Oh, and the ISS, but I’m not sure it still runs that code.
The RESTful API of echo: voice-focused dating app (Django REST framework)
Semi-OT: I'm one of these guys with ~200 tabs open spread over 5 different Chrome user profiles (work plus one session per Twitter account, as I can't stand Tweetdeck or any other app). Once an hour some tab, usually it's Twitter or a specific newspaper, will run amok in the background and run up to 100% CPU usage until I manage to launch the Chrome Task Manager and kill the offending tab (group, sometimes).

Is there any way to force Chrome to totally inactivate all tabs in the background, with a whitelist option so Youtube and friends can run?
That and OneTab I can recommend. OneTab basically makes a "temporary bookmark" of all open tabs, and then closes them. After that, you can open the links from OneTab.
Can't we just add support via an addon?
Some of the sensor tech is subject to export controls. The stuff that could be used for nuke research/development.
I'm curious, why would you need 800+ open tabs in a web browser?
Yikes, in the few minutes that I first loaded this Marketwatch story about the stock falling, $FB went from -19% to -24% in after-hours trading. https://www.marketwatch.com/story/facebook-stock-crushed-aft...
What exactly would warrant such 'marketing'? You think Google is going to make mad money selling little USB doodads to uber-nerds?
> So we're seeing the channel become condensed on its way to I think just telebusiness.

Stealth prediction of Amazon. If you know what you want, you order it online (until Amazon kills itself with counterfeits.) If you don't know what you want, you go to a store.
ussername: shesto

thanks man ! :)
Saw you getting wrecked by ideological downvotes in a thread I made recently. Good job not letting it keep you from speaking.
We (Sojern) have been using BigQuery since late 2015, we moved from Hive. It has been an amazing experience in terms of cost savings (managed infra, operational cost of a hadoop cluster), and performance. We use it across the org from analytics, ingestion, reporting, ML, and many more uses.
I am and was keeping a record of what I eat and I tried multiple diets while maintaining the same level of activity and I went into that just as sceptical as you.

I run about 80KM a week, I used to have a very well balanced diet with carb loading before long runs.

I first tried a carnivore diet as a joke to tease a friend that was going vegan because of his then new boyfriend and while I’ve seen good results I had blood sugar spikes because of the high protien intake and my lean body mass flactuated quite a bit.

I’ve then tried Keto and for me it worked, my performance and overall endurance improved my blood sugar is now constantly in the range of 4.3-4.7 mol with the lower being just after excercise which is honestly very good for me considering that while eating carbs it did jump to above 7 after a carb loading meal.

Lean body mass has also increased considerably I’ve dropped from 21% body fat to 13% over a period of 14 months while maintaining the same level of activity as I have had for the past decade.

Again n=1 but I’ve seen enough anecdotal evidence and more importantly actual research to think that there is something there.

And that is the whole point it isn’t that simple and there needs to be much more research into this hopefully without commercial interests butting in.
I think that's pretty much what "the great suspender" does: https://chrome.google.com/webstore/detail/the-great-suspende...
Downvotes to express disagreement are part of the ethos of this site; it's a norm Paul Graham established almost a decade ago. But comments discussing downvotes are not; the guidelines specifically ask us not to waste time litigating them, which is what this thread basically asks everyone to do.
Market isn't happy. 25% drop in after hours trading.

It'll be interesting to see if it recovers tomorrow like Netflix did (which then of course gave most of it back the next day again).
Yes. I actually started upvoting comments which are downvoted because they are dissenting, even if I don't agree with them. I think a downvote should be accompanied with an explanation if the reason is not very obvious.
EDIT: the last point might actually be a new feature: If you downvote, you can leave a note why, and the poster (or everybody) can see that.
I concur. I really enjoy reading the comments section on some websites because there is some very insightful discourse happening that offers counter-arguments to the points in the article. But I am thoroughly unimpressed with the HN community when I read the comments on any topic that can tangentially be related to politics or currently politicized topics (mostly US topics, like immigration, Repub vs Demo, Trump, etc.). Ones that come to mind recently are MSFT and ICE, Facebook and censorship, TSA, Amazon and AI. There is an immense amount of conversation that could happen and great insight can be shared from a community of extremely knowledgeable people, but within 2 hours of it making to the front page, the comments section is mostly light gray, double digit dead threads, and not much more comprehensible than a Buzzfeed comment section about the Kardashians.