skysight-inc/HackerNews huggingface dataset:
> But, if it's rare to sort by X then doing it the hard way is at worst (O) x log x which is a generally a non issue out to a few billion records.

Not really true. Users aren't understanding if "sometimes the list page takes over 10 seconds to load". They don't understand (or care) that they are doing a non-indexed query or that the alternative is they don't get to do it at all. Removing a feature is often not acceptable, and so often the only resolution to a problem like this is to add an index.

Of course, indexes increase the write times to your database. Indexes on every field increase the write times by a lot.

Except sometimes you can't simply add an index, because you're displaying a calculated value and only calculate it for the page you're displaying. In order to sort by that value, you have to calculate for the entire system, so now you're into O(n^2) or worse complexity. You can also denormalize or pre-cache calculated values in some way (even going as far as adding something like ElasticSearch on top), but that introduces another dimension of problems (expensive updates, more potential for bugs and/or stale data).

Do this for several fields, and you're now talking about quite a significant development effort, both up-front and for on-going maintenance, to support sorting that wasn't ever an actual requested feature and that only a small minority of users actually use.

I know this because I have inherited exactly this problem before. Even as thousands turn to millions (let alone billions), anything worse than O(n log n) becomes painfully obvious rather quickly, and it tends to happen to the entire system at once. Suddenly you have to fix a whole bunch of "this feature is unusable slow, you broke my business" problems at the same time, while getting further and further behind your actual planned schedule.

> Remember, give me the next 100 of X less than Y is an O(N) operation.

..IIF you spent the time to implement caching (and deal with the additional cache invalidation complexity problems).

Many apps do paging on the database, or only do expensive joins after paging. Heck, many apps are even stupider and query the entire dataset from the DB, do paging in code, then throw it all away afterwards (so every time the client asks for the next page, it transfers the entire result set from the DBMS).
This website is not intended for people who know what Javascript is or even how to turn it off. Most of the web are not (us) geeks, and not everything revolves around us.

Plus, there is such a thing as ROI.
This is my life, except the CEO chose AWS and I'm the CTO.
I don't see anyone making that claim. All of the major players experimented with small laptops – just as there were small PowerBooks, there were small ThinkPads, Vaios, etc. going back to the 1980s. – but for a long time the engineering tradeoffs were too extreme.
(warning: studied Math in college, so don't know how that biases me in this discussion)

I wonder if some of this is because of the number of jobs in industry for each discipline? There are a great many jobs available which nurture CS skills but I can't quite think of a job besides academia off the top of my head where that lecture in Toric Varieties I took would come in handy.

Maybe its that there is a career/financial incentive to go deeper into CS but not mathematics?
"This site" (and I mean HN) is almost entirely JS-free. Coincidence?
$50.00 an hour? What?

Instagram is incredibly polished. Notice how fast it is? As you're selecting an image, they're already uploading it to their servers. That is critical to maintaining and growing their user base. I go to Instagram knowing I can upload a nice looking photo quickly. The images load incredibly fast as well. Its simplicity is deceptively robust.

This is not recreated by a developer billing at $50.00 an hour.

So, if you're looking to have an app built, and you're reading this post, just know it's pretty inaccurate. You get what you pay for.
Edward Niedermayer seems to be more concerned with click bait and controversy than really promoting discourse. The Truth About Cars has almost become readable since his departure, but its still a car tabloid at best. The dude is young and was given a pretty good sized platform, decided he didn't like Elon Musk and has now spent a significant percentage of his time to prove Tesla is a scam.

I wouldn't call myself a die hard tesla fan, and Im not willing to spend the kind of money required to own a model s or x. But I would certainly call them compelling reasons to look into an electric car and they are easily 10-15 years ahead of the entrenched auto makers.

I think that Tesla definitely has challenges ahead as well. The biggest is that they need to have cars fully baked and delivered on time. They need to start showing positive balance sheets regularly and they need to get the gigafactory done. I dont see them failing in the near term but their balance sheet and stock price need to reconcile eventually.

As to the claims of reliability, Ive not seen anything that looks to be egregiously worse than cars in the target market. Ive yet to own a single car that has never had a defect or something break that required a warranty/out of warranty repair. I have had cars that were better than average (My current 2014 A4 has had one thing break in 55k miles) and some that were much worse (2009 Chevrolet silverado - everything electric broke, power rear glass, power windows, cruise control, fuel pump, power seats; 2001 VW GTI vr6 had the check engine light on every 6 weeks after I exceeded the ridiculously short 24000 mile warranty- I think they knew that was all that car was good for. I replaced the MAF twice, several other engine electrics as well)

Whatever happens I have to give Tesla(not just Musk) a lot of credit for taking on a hard problem and creating a credible product.
Direct link to Bostrom's paper: http://www.simulation-argument.com/simulation.html
It's not dramatically different than hitting CMD+OPTION+H every time you switch tasks. It is a little bit easier on your fingers though.
Most things counted as "mass shootings" in the US are gang-related attacks on other gangs.
I think privacy really enables all of those others in a way though. If I want to learn about reverse-engineering, it's just as important to me that nobody knows that's what I'm learning, as it is to have access to the learning materials. Knowing that all my research and learning is being sent to 3rd parties has definitely curbed my desire to learn some subjects.
Human rights in immigrant detention centres is something everyone should get behind.

Unfortunately this exact kind of treatment is common at the US border. Search for: denied port of entry nightmare.

e.g.
https://news.ycombinator.com/item?id=3545548

I guess when you see scores of people trying to scam the system you get hard nosed about it in time.
«You generally have to have an end-of-the-chain catch as a safety precaution. If you don't have one and the promise fails you may get no feedback that an error happened at all.»

This will be increasingly less of a need as browser native promises catch up (and more reason to make sure that the promise library you are using is built on top of native promises rather than rolled from scratch). Several browser dev consoles will already show unhandled promise rejections today, and there's a growing convergence to also providing browser/system-wide event handlers for unhandled rejections as well.

http://www.2ality.com/2016/04/unhandled-rejections.html
I imagine the lower price point still covers the full cost of the battery.

The lower price point plus the upgrade revenue can certainly be expected to cover the costs of the program (because that's how businesses work).
The deal of the century was when SAIC bought Network Solutions for $4.7M in 1995.

Five years later, they sold it to VeriSign for $21B.
Web pages can still be dynamically generated on the server without needing to use JavaScript.
Ever do an egg drop? http://www.sciencekids.co.nz/projects/eggdrop.html
What's an SRE?
You can judge for yourself[1] whether the joints are sealed with rubber or not; it appears to me that they are.

[1] https://www.youtube.com/watch?v=DgdKZMlzQog
Yeah you're right. Just updated stable Chrome and:

NodeList.prototype.forEach
forEach() { [native code] }

Thank. God. Finally.

Edit:

HTMLCollection.prototype.forEach

(which is what you'll get from other vanilla JS methods) is still missing.
OK isn't this dangerous though? I don't want to get on any lists.
> We can't just say that because it's legal then it's ok.

Absolutely. I say this all the time.

> Prosecutors can decline to prosecute.

But prosecutors can also choose to prosecute. When there's that much give in the legal code (giving a ride falls between 'no charge' and the death penalty), there's a lot of room for abuse and corruption. It might be worth giving up the ability to execute people for guarding (terrorist) warehouses for the assurance that we are governed by laws and not by (fickle, prejudiced, and corruptible) men.
>for the most part

That's not enough. The FBI has to completely operate within the framework of the law, just like any other law enforcement agency.
Why is this downvoted ? Shouldn't we share these values as hackers ?
How would you do this without basically writing your own database from scratch?
> he left them out on purpose so as not to be associated with Occupiers

That was probably a good idea. Some people (including some liberals) would close their ears as soon as they heard about any association with Occupy.
Good points. I too am grateful for risk mitigations the alphabet agencies provide. I don't admit it enough.

I grudgingly agree with you on the last paragraph. For the majority of the population this is true. For a relative few outliers mistaken intent, misinterperetation or simply guilty of emotional outbursts(online & IRL) can and will happen. The frequency can be in the millions w/ a large enough population and pressure to over-reach/profit. That said, it seems fairly obvious to me the pressure to profit has grown too extreme. Unchecked in part due to FISA-style politics, political collusion and lobbying.

I am hopeful the pendulum of fear theater rocks back from this trend soon, as the backswing tends to mirror the former in extremity. The internet has enabled information sharing in ways previously unimaginable and in speeds hard to comprehend for most. The alphabet agencies & the mega corps(alphabet/apple/ms/etc) are the best at it and attract the majority of the talent. I theorize, perhaps the corps were the best of the best of the best at it and are a little miffed big bro is collecting it's own data good enough now the guv stopped buying data and now just demands more for free.

edit:

added 'own data' 2nd to last sentence

subbed 'it' for more in last sentence.

TLDR: Your're right. Abuses/erreors can and will always happen. Profit motive has pushed the envelope to what we have today.
Research behind the Canadian HI and IT talent shortage
Source? I've never had an issue compiling legacy code.
Or, granted you know how to quickly setup the push certs, and deploy a simple docker container with parse-server to AWS Beanstalk, you could launch a MVP (iOS, Android) in one afternoon, for $49.

https://market.ionic.io/starters/photogram-ionic-instagram-c...
Apple is now a utility to manage its renewable energy portfolio
PowerPoint would never have become what it was without being on Windows and part of Office. So no, not really.

Ignoring network effects makes this kind of silly.

Keynote has also been better for a number of years now. Still not as popular just because Macs are less common than PCs with office.
That's a little different because those extra features required additional work to implement in software and just happen to run on the same base hardware. This is just hardware being artificially constrained. It's like buying a 6 pack of Coke and actually getting 8 cans but you can only drink 6 of them unless pay an extra $3 to "unlock" the two cans already in the box.
Functional programming is a broad term that at its core describes languages that allow you to pass functions around as values to other functions.

In other words, when using a function the parameters of that function can be defined as other functions instead of needing to be precalculated variables or constants.

That's basically all that links functional programming languages, all other language design decisions can vary.
It is simple, as others have said. It is a small cost to pay to get back in business quickly.

That said, what is going to happen is no different then what has happened in history for other forms of "terrorism" (which essentially ransomware is, someone is terrorizing an organization by holding them hostage).

Once a company has been hit multiple times or has had enough the company will assemble one or more response teams, they will spend money to go after the people and start preventing it, that is when companies will stop paying. Companies already get the authorities involved, but face it that is an investigation after the fact right now. It won't change until companies essentially protect themselves better and become more offensive in nature, which in some corners they are doing. BTW -- offensive doesn't mean they are out killing people, just that they are putting on an offense to prevent this stuff instead of waiting for shit to happen and being forced into paying a ransom.
> The main design idea behind Unix is composition

I'm not sure how well-supported this is in the historical record.

You give /proc as an example, but it's first appearance was in the 80s, and it took until solaris in the early/mid 90s to really get going. ( https://blogs.oracle.com/eschrock/entry/the_power_of_proc )
Why did she delete emails in violation of the FOIA?
Just a small remark: If you're visiting the USA your fingerprints get taken every time (at least thats my experience). So that part of the story (an american complaining that their fingerprints got taken in the UK) is kind of skewed perspective.
I would really like to see some of the major tech companies step up and make an example of some of the more prolific patent trolls. Apple and Google should be making a real effort to make this process more risky as they have cash reserves deep enough to deal with any of these companies regardless of the size and the goodwill that these actions would generate would be significant.
> "Search history is a tremendously powerful tool and insightful data point for anyone."

Can confirm. Near the end of internships I use my browser history, and mostly the search history contained in that, to figure out what I've done so I don't forget anything in the report. It's a near perfect way to tell what I've been up to any day.
SEEKING WORK - Remote. based in Yerevan, Armenia.

Professional UI/UX Design and Front-end Development team.

Skills: UI/UX Design, AngularJS, HTML5, CSS3, SASS, TARS, JavaScript etc.

Hourly rate: 30-55$/hr

Portfolio: https://frontjet.com

References: https://clutch.co/profile/frontjet

Contact: hello@frontjet.com

Looking for partners and new interesting projects!

Thanks,
Mesrop
+37494177144
I agree with this. I used to teach at a coding school. I told my students to emphasize projects on their resume, not the fact that they went through our program.
"I would love to know if people from the UK suffer the same sort of troubles entering the US"

I personally have had extended grief entering the US on a number of occasions - not in the last 4 or 5 years though. Worst was probably an extended session with me being asked why I went to Turkey so often from the UK (saying "it's a nice place to go on holiday" seemed to make them angry [maybe a lack of vacation days] - I think I must have provided 20 variations on that statement).

A friend who was a senior corporate lawyer had it much worse when he visited the US from the UK to attend a legal conference - extended stay and a "cavity search".
Did he buy in, or was he the source? A bit like how you can hear Chuck Yaeger in every US airline pilot's calm drawl.
Given the resources the FBI puts into each one of these cases, it's clear they're targeting people whose main crime is "being suggestible". There is effectively an unbounded supply of those in a country of 400 million. They don't seem to care about finding those who would actually be handling the hypothetical recruitment or financing, because they don't really exist - that pattern of an externally-recruited terrorist cell is extremely rare. Approximately all instances of Islamic terrorism in the US have been either true self-starters, or people who were radicalized / recruited / trained overseas and sent to the US for attacks.
Wow it's nice to feel validated.

If this ends up becoming real Adam McKay is reading this I'm open to consult :)
>> they out Advertised or eventually caught up and passes you (Word Perfect).

WordPerfect kind of killed itself. They never embraced the GUI because they thought Windows was ugly. The keystroke-based interface was trashed by critics. They were all over the map trying to make a suite of strange, semi-office-related programs.

When they went from 4.x to 5.0 they had to re-do the printer driver model, just as Windows was making specific dos printer drivers for your application obsolete.
> which is led by Theresa May, who is behind the push for 1984-style mass surveillance of the UK population

And who is also advocating that the UK leaves the European Convention on Human Rights. All these things are connected.
You'd prefer a reload of the page every time you upvote? Even a mostly static site like HN needs some JS to make the experience drastically better.
A British friend of mine suffered almost exactly the same situation attempting to visit the USA a few years ago to present a paid workshop. He's now barred from travelling to the USA without first arranging a visa at an embassy (which is apparently extremely hard to do with a previous incident on your record).
Not sure if I'm supposed to choose the most important one, or go back and select each thing that matters.
You can absolutely use JavaScript to pull an article into the browser.

But if the user doesn't have JavaScript, they should still be able to navigate the site the old-fashioned way. It doesn't have to be one way or the other.
Show HN: Ferret – A Hard Real-Time Clojure for Lisp Machines
Boeing employees are scared to fly their own planes
This was her mistake:

"..where a young man somberly asked me what brought me to the UK.
“I’m giving a talk at a conference then traveling to see a bit of England. I have a letter of invitation,” I replied, confidently handing over the requested documents."

Just say "A short vacation", whether it is or not. Don't give the agent any more information than they need. Throughout her entire encounter with the agents, she was giving way more information than she needed to, which was prompting further questions.
> So then you agree that returning to historic real rates would require the Fed to do something currently unthinkable -- ~1% rather than 0.25%?

No, for three reasons.

(1) A limited sample problem; the present circumstances are nearly historically unprecedented. When the only post-WWII comparable in inflation terms is in the mid-1950s (and, conveniently, its also very roughly comparable in at least headline unemployment terms, though other employment measures may not look similar), and that's deep in the Bretton Woods period which puts entirely different constraints on the effects of (and thus the calculus feeding in to) monetary policy, you've really got no good comparison in history.

(2) The current effective federal funds rates (what was around 1% in the 1950s period with similar inflation) is 0.37%, not 0.25% (The current target rate is 0.25%-0.50%, and the actual effective rate happens to be right in the center of that target range.)

(3) Prior to the recent jobs report, which showed gains at a slower rate than anticipated, most predictions were for a July increase in the target rate, possibly followed by another in September. After the recent jobs report, predictions are mixed, with an increase by September seeming commonly predicted, with some possibility of a July increase still on the table. Raising the target from its current level (which, again, isn't 0.25%, but 0.25%-0.50%) isn't "unthinkable", in fact, it seems to be what everyone is thinking.
And they wore silk in Rome before Rome had ever heard of China. Trade doesn't have to go halfway around the world on one camel. It can go from neighbor to neighbor 'diffusely' with the same result. I'd not be surprised if native Americans had traded old world items 10,000 years ago.
Where's the irony? Microsoft started (ignore the DOS part) as a company that developed applications for Macintosh specifically word and excel which started on the Mac and only got Windows support in later versions with Word 4/Word for Windows 1.0 and Excel 2.0.
But you said you'd be "fine" executing JS for other kinds of pages. What is it about "effectively static" pages that offends you?
That's a bad analogy.
Front End Web Developer – ROLI - Music Tech - London
They seem exaggerated for "back doors", because it's possible to avoid them. Yes some defaults might be malicious but the bar for calling something a backdoor is higher than just malicious.
Here's a handy website that tracks mass shootings in the US: http://www.massshootingtracker.org/
I wish that the vocal 1% who want a JavaScript-free web would just rediscover Gopher.
For YouTube you don't need to log in; the rest I don't use.
The web I want is free of junk loaders, javascript tracking ad garbage making my page requests crazy slow, unpleasant and hard to use.

FB Pages now have a giant login thing that takes over the entire page if you aren't logged in. If you close it, it comes back for every other page you visit.

The amount of stuff that uBlock origin blocks now is amazing. I couldn't even use WSJ until I turned on ad blocking.

I'm starting to think text based browsing is the future. Using chat like interface along with voice commands, mainly work directly with APIs and just never use a browser again. HTML and JavaScript are being taken over by crap on sites.

The web is starting to feel like a garbage dump. API's are the only logical path forward I can see.
Otherworldly Animation Makes These Motion Captured Dance Moves Even More Amazing
We have several solutions developed in F# over the past year or so that run exclusively on Linux. Mono 4.x has made it an a viable choice for running in production, but the dev experience is still lacking. We develop mostly on Windows with F# power tools plugin. You can find our open-source stuff at https://github.com/Prolucid
Privacy is a foundational value. It is necessary for trust and sharing. Without financial privacy, online commerce would not exist because people wouldn't trust to share their banking information. Without some modicum of social privacy, people wouldn't trust to share information with their friends & family.

& I avoid using the services I do not trust.
So do you think this is more of a policy problem or an attitude problem.
I'm never sure if Theresa May is evil or incompetent. It may be she is just incapable of controlling her department, although perhaps I'm being too charitable.
Didn't Excel descend from Multiplan which was originally for DOS?
>and has nothing to worry about.

How can you be so sure about that? Maybe the FBI thinks that A and B use some kind of code and B did mention terrorism to A. It's not about what really happened, it's about what the FBI thinks happened.