skysight-inc/HackerNews huggingface dataset:
I like that one of the opcodes is "FixThisBeforeWeMerge".

Looking this over, I can see why my initial reaction of "why aren't you using WebAssembly?" was facile; this really is a VM optimized for templating languages.

I'm reminded of the Bad Old Days when I was a ClearCase admin; we ended up building what my boss at the time called a Revision Control VM on top of it, so that our developers never really learned ClearCase per se; instead, they learned our system that happened to use CC under the hood. Since then, I've treated the term "VM" with a looser interpretation than usual; clearly, I should have applied that here (though it is, strictly speaking, a VM in the classical sense as well).
> Look, kids. You are going to have to have an execution layer you can trust somewhere, you can't just expose your data store directly to the outside world or you run into an infinite number of security issues

The security issues your source points to in new, SQL-like (but not SQL) general query APIs (GraphQL, etc.) are actually already fairly completely addressed in modern relational databases, which are designed for multiuser access with users having different permissions. So exposing the datastore directly solves, rather than causes, the issues it raises with common generalized near-SQL query APIs.
Well, since you are in python already, you shouldn't have to subprocess very often. Then you would rather do os.listdir() instead of subprocess.check_output(["ls"]).

For the other cases where you do need subprocess, the more sane escaping rules (compared to shell) almost makes the verbosity worth it.
Yeah man long live 2stroke MX bikes. But WTF is this on HN?
great. Let's turn programming into a blue collar job. Increase supply so that we all get paid 7$ per hour.
You are answering to who arbitrage a dispute, but who enforce the results?
I was referring to the teacher mentioned in the article that I submitted that is the parent to your story of your teacher.
Yeah, but you write those 2 functions once, and use the result combination all the time without separating them. You don't want to write both of them all the time, which is what happens on the shell (unless you create an alias, or a program... which is exactly what 'ls' is)
I can't find a single worldwide figure, but looking at the average heights per country here, I suspect that 5'6" is about average for a man at present: https://en.wikipedia.org/wiki/List_of_average_human_height_w...
> Some might only remember it as "oh, yeah, that sphere thing".

Yes exactly. I haven't got a clue how to prove it either, but just like with Godel, I'm not going to drop my jaw on the ground when you state the conclusion.
My last name ends in "ian." This suffix is common among Armenians. Yet as far as I know of my ancestry, I'm eastern-european (Poland, Romania, Belarus, Ukraine) Jewish. So I doubt I've got any Aremenian in my blood. I'd love to figure out the provenance of my last name. Maybe just a typo immigrating to America (the oldest U.S. census on which my name appears is 1900).
Nodemailer reverted from copyleft back to MIT license
There is an interesting article on this subject "The Economic Organization of a P.O.W. Camp" by R.A. Radford [1].

This makes me think how
exchange is deeply engraved
in human nature.

Or maybe the inmates had all been socialised in exchange based systems, and understood that the advantages of exchange remain important even in other circumstances?

[1] http://icm.clsbe.lisboa.ucp.pt/docentes/url/jcn/ie2/0POWCamp...
I wonder if the submitter watched the same program last night on da Vinci that I did...

It was quite interesting, especially because they persuasively showed Vitruvian Man was likely developed in conjunction with a close friend and collaborator de Ferrara.

https://en.wikipedia.org/wiki/Vitruvian_Man#Evidence_of_coll...
WARNING: HYPERBOLIC CLICKBAIT. No substance, no informed critique or examples. The headline leads one to believe that there would be a thoughtful analysis, maybe pointing to some sociological research, that illustrates why javascript has gained so much popularity in recent years. Instead, it is a weak protest.
For 1) and 2), some frameworks solve the size issue by creating functions for the basic DOM ops, which then get minimized to single character names in production. So in your example, there might be a setNodeAttribute(node, name, val) function, such that the final code isn't `e.setAttribute("id", "bar")` but just `a(e,"id","bar")`, where `a` is the minimized name of setNodeAttribute.

There's really not much noise in that expression, just the "(,,)", so maybe 4 chars that an opcode could save.

As for 3), is that really possible? If you profile most modern frameworks, they're already fast enough that most of the time is spent in rendering, not in javascript DOM manipulation. So even if you cut short your js before 16ms (60fps), you have no idea how long the browser is going to take to render your changes. Plus, the browser will be doing extra work, since it needs to render all the frames in which you've only done part of your updates.
The Mac Pro was actually pretty well priced for what it was offering at launch. The price just has stayed constant and everyone else kept improving their hardware.
> That 1/3 road deaths is artificially inflated because if you had 1 drink and well under the legal limit it still counts as alcohol related fatality.

As it should. 1 drink is enough to impair your ability to drive.

EDIT: I'm probably wrong, someone else in the comments posted data showing risk only increases after .03 BAC.
One thing I forgot - giving you rights is different from enforcing them.

Obviously, the State can take away those rights. That's different from giving you rights.

Same is true for anyone with a gun (equating death with losing all rights).
Once you get over the fact that JS is basically a functional language where everything is given a false veneer of the object-oriented I'm not sure it's really all that bad. (Which isn't to say that it's good or elegant or isn't filled with badly named things.)

That said, I think the idea that full stack JS is somehow driven by designers or front-end people is mistaken.

I'm pretty sure many businesses find the idea of a "one language" stack appealing and figure it means they can hire less expensive employees. Likewise, I imagine quite a few individual developers hear the same thing and conclude that they could build an entire project with less complexity and some amount of code and library reuse between back and front end.
I see there are multiple good answers already, but I'll just add my 2c - which answers from a different angle, sort of (though partially similar to some of the other answers). It may help, if you understand recursive calls to functions, and an imperative language like Python - the examples are in Python:

Recursive computation of simple functions:

https://jugad2.blogspot.in/2016/03/recursive-computation-of-...

The first example shown is for computing the length of a list, recursively.

Edit: To make it clear, my example uses an imperative approach, while your Prolog example uses a declarative approach. As the excellent comments by carapace and kevhito show, the two approaches are different. Just that my example may help you to get the solution used. But in Python, we tell the interpreter how to compute the length of a list. In Prolog, it is sort of as though we tell the interpreter what we want it to find out (a goal), and give it some facts / properties and rules to help it do that. It then does that, using its inference engine.

HTH.
You probably already have a separate system that is regionally and logically separated from your application to control access to company resources.

The argument seems to be that the logical separation is not desired. But that implies that if I were an employee of Google, I should have a specially flagged Google account. And if I were to leave, I would lose that flag. Which means it should probably not be a simple flag, anymore, but a date gated property which may go off an on several times.

And already, that sounds more complicated than just keeping your application accounts distinct and completely separate from your organizations accounts.
To put this into perspective: the Planetary Society solar sail cubesats have a novel design, cost about $1 million apiece, and mass ~ 3kg. Falcon 9 costs about $12,000/kg for a GTO launch. The cubesat dispenser does have mass, but as you can see, the launch cost is still << satellite cost.

Amateur radio cubesats, which use 100% volunteer labor, appear to cost ~ $50,000 for a 3kg satellite. Launch cost is significant for them.
https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial...
Architect calls SF planners “obstructive.” Spoiler alert: they’re ticked
The Atlas V was built off the Atlas 3, so it wasn't totally starting from scratch. They kept the RD-180 engine, rebuilt the booster, and added strap-ons.

Also the Atlas program has about 40 years of experience on SpaceX. But I should point out they've also maintained their glittering track record while regularly upgrading their rockets, so they've shown it can be done.
I think HN disables commenting after X hours for every post.

Perhaps HN could introduce email notifications (e.g., if somebody replies to one of your comments/posts, you get a notification by email).
Off topic: I used to know a guy named Ithkuil. It's not a common name in North America, but it is definitely a personal name. I know how strange it is when you find a random software project. Send after you. There are at least a couple named "Igor" out there.
I hope Ultra level settings add a fair bit b/c the aliasing on that screenshot is incredibly obvious everywhere but especially on the cables holding the starting lights and the barrier fences. It looks good but it isn't real by a long shot.
> By the way I get annoyed when people say LDS is the majority here

Are you annoyed that the entire state was founded by LDS pioneers? Without the mormons, Utah would be west colorado wasteland or another desolate, sparsely populated state like Wyoming.

And 41% can be a majority depending on how you break down the remaining 59%
Security hasn't gotten any worse than it's been. It's much more visible now and all systems are practically connected through APIs..

Lack of security knowledge is the problem I think. In fact most companies that are hacked don't know it and don't have the knowledge to detect and mitigate them.

Security was much worse in the beginning of 2000's with dial ups.

Also don't forget about social engineering...that's a bigger concern than physical hacks...
Replacing a MacBook Air (2011) Magsafe Cord
To mods: it would be great if paywalled content was marked as such as part of the title, similar to [video] etc. It would have saved users a bunch clicks.
This must be highly subjective, because for me, 65" 4k tv 10' away is like night and day to me compared to 1080p
@replies and hashtags (one of the most successful features of twitter) came from third party apps,
Yeah, he strongly suspected some sort of lack of skill. The UK system might be different from the US.

He's retired so not his problem anymore.
WTF is ADF? Something to do with druids?
Maybe they could check if you have an ad blocker and only show the site if you do :)
In retrospect, my words were probably a bit harsh, sorry about that Andy. It's never a nice feeling having one's hard work shittalked by strangers on the Internet.

A roadmap is definitely highly appreciated. Something I'd love to hear from Twitter is a definitive statement on 3rd party clients: are they a welcome and supported part of the Twitter platform, or is their existence a historical accident that have no role in the strategy going forward?

(I'm aware that such a statement is probably not in Twitter's interest to make, but one can have dreams, right?)
For my job I do about 80% of my work in JS. I recognize that it's not a great language as far as design and ergonomics go. I also recognize that I shouldn't take these critiques personally - after all I'm just writing all this JS because someone is paying me to.

Even so, it wears on me to see the regular JS bashing on HN and other sources (even from more senior devs at my company). It makes me feel like a lesser engineer (which I already feel like being relatively inexperienced). And it just seems purposeless to me. Most of the people writing JS are just doing it because it's what we're paid to do. I know most of these critique aren't coming from a place of wanting to belittle JS devs, but that's the only effect I see them having.
> The language is so bad that the use of a linter (such as JSLint or ESLint) is practically mandated for all JavaScript programmers.

Worth noting that many of the "better" programming languages strictly mandate the use of a compiler. In those languages, you don't even have the option of skipping the ahead-of-time code analysis step before running your code.

Of course, regardless of what language you use, if you're a professional software engineer, you probably should be running at least some sort of analysis tool on your code, whether it's a linter or typechecker or full compiler. I think when evaluating whether JavaScript is a "good language", you should evaluate it in the context of the tools that nearly all JS developers use. It certainly has issues, but a lot of the worst problems (e.g. coercion in `==` and accidental global assignment) can be and are checked by any reasonable lint config.
From my experience, I have found that a properly designed schema in an RDBMS is going to outperform a graph database for OLTP style queries _if_ your graph traversal is light.

So, if you just need to build a system that finds similarities and you only need to look at a level or two of relationships, its going to be more simple to use an RDBMS, possibly.

But, if you need to do a lot of graph traversing, this is where and RDBMS system is going to get tricky.

One caveat with graph databases is that there is different kinds with different strengths. Some are fast and in-memory, some are distributed and meant more for OLAP. Some are distributed with reads, and are meant for OLTP but are slow for writes.

While there is similar tradeoffs with different RDBMS systems, if your use case is to get something up and running, I would start with an RDBMS and keep it simple until you can't.

Finally, your final paragraph may be one path forward, start with an RDBMS, and if you can't leverage to do what you need quickly but its working for most of your use case, you can extract the relationships to a graph database and use it alongside.
There are two kinds of languages: those people complain about and those nobody uses.

There is a bit of bandwagon effect here, sure but this is more due to the fact that JS is the only solution for the web and that the software development industry in contexts where JavaScript is seeing the most use is treated like an extended CS project instead of an engineering discipline.

That the former is important is because of the ship-first-build-quality-maybe mentality that has a hold of the industry. The latter is in part a reflection of this.
Hilariously, I had one of my friends on AT&T enable "advanced messaging" so we could exchange videos of quality greater than 640x480p. It didn't work. Turns out AT&T limits this to other AT&T customers only [^1].

Why can't we have nice things again?

[^1]:
https://www.att.com/shop/wireless/features/advanced-messagin... (read the fine print)
Ask HN: How would you implement word2vec?
I have built a vector space model implementation as a Lucene-like search framework and I want to implement word2vec. In a setting where you at querying time have in your reach a char trie with addresses to posting files at the EndOfWord nodes and given that to solve this you can create any additional data structure and at indexing time store any additional data you need, how would you implement word2vec?

I have read a few articles about the theory but never read a word about implementing it. I could use a real walk-through here, with cheets and everything ;)
It’s barely related to this story, and isn’t that interesting of a comment. Sorry.
Well, no. And it’s worse, because at least before, we were screwing up small things with X, it was a toy. The thing is, there is a mass psychosis about X and it’s like everybody is pretending that it isn’t awful.

Instead of JS, you could just as well have C or C++ or Java in there. I've been in situations where I was working for the vendor of a language accused of being a toy.

What other modern programming language is so bad that a linter is most recommended for safety sake?

The use of valgrind and the like has become de rigeur for C. Linters and other software checkers have been a best practice across many languages for awhile. Don't get me wrong, I think Javascript is an example of bad language design. But the language is only one factor out of many. If you have a good shop then it matters much less how good or bad your language is. If you have a good shop then you will have coding standards and tools which will run the linter as part of your integration/release process. If you have a good shop, then the more experienced coders can steer the new programmers away from the gotchas and towards the good parts of the language.

As project size, complexity, and age increase, a good shop with the worst language will outperform the worst shop with the best language. In the long term, a great language community with a mediocre language will outperform a great language with a language community riddled with group pathologies. Choice of language is one of those things that gets too much attention, where the experts know that other things actually matter more. (Just like more horsepower vs. better tires, or choice of golf clubs vs. practice time.)
iOS devices too. Apple uses broadcom wifi chips too.
I could argue that SpaceX might be better targeted for manned flights, given that meat-loads can be replaced essentially for free, given the huge line of people willing to be sent to space even at significant risk.
> But I think it's mostly that prosperity theology is the expression of predatory capitalism in the domain of religion.

Prosperity theology (in its original form of the Calvinist visible elect) is older than capitalism, so if anything I'd reverse those: capitalism (which is inherently predatory, as noted in the initial critiques in which the system was named) is an expression of prosperity theology in the domain of economics.
Adwords – Find out who’s wasting your Adwords budget and stops them, for good
This argument suggests that everybody has the same preferences, which is ... a daring assumption. For example sharing your meat with a vegetarian isn't exactly useful.
> Is there even a full open-source OS for the iPhone?

Heh, not officially, but this does exist:

https://ios.gadgethacks.com/how-to/exclusive-dual-boot-andro...

> because all he's really positing is that corporate control will continue to tighten at the current rate.

"The Net interprets censorship as damage and routes around it." - John Gilmore (https://en.wikiquote.org/wiki/John_Gilmore) In this case, I argue you can replace "censorship" with "too much regulation" or "too many controls" or "too much DRM" or "too tight a walled garden" because what they all share, are being benefits to centralized control and profit at the expense of the convenience and joy of innocent users.

This was largely the promise (and threat) of Bitcoin, by the way. An Internet-native completely digital pseudonymous payment system that is nearly impossible to regulate. There is (or will be) a direct relationship between the stringency of capital controls and the below-the-radar usage of cryptocurrencies. If you expect capital controls of innocent people (which, disclaimer, I really effing abhor, as a person who once had their main bank account locked out for a month sans any evidence of criminality) to get worse/more onerous, and you want to make money off it, you should probably own some crypto.
"Mitchell & Webb Sound - Identity Theft" : https://www.youtube.com/watch?v=CS9ptA3Ya9E
I really don't understand how they have millions of users and so much basic shit Just Doesn't Work.

Because those millions of users use the box to play games, like I do. Oh, I've tried all the other stuff, and as you point out it's generally such a steaming pile of shit that I feel foolish for having even tried. (If the Kinect weren't in a box in the garage, I'd be staring in its direction right now.) Frankly, I'd be happy if they could just bring the Xbone back to the level of usability that the 360 had. To their credit, they're getting there little by little in many ways. To their discredit, they shouldn't have to do that in the first place. MSFT had a working platform, but I'm guessing some PMs needed to make their mark, so they "improved" things by breaking them.

So I just play games on it, and watch the occasional Blu-Ray. That keeps the "aggravation footprint" to a minimum. Anything else I want to do is on the Apple TV. And when the next-gen consoles roll out, I'm going to be taking a hard look at what Sony has to offer.
CrowdStrike|Sr. Systems Engineer-Cloud|Romania|

CrowdStrike is looking to hire a Senior Cloud Engineer to help us take to the next level our automated systems for malware analysis. We’re looking for a highly-technical, hands-on engineer who loves working with data plane services like Cassandra, ElasticSearch, Hadoop, and Spark. The ideal candidate should be comfortable building self-service APIs and automation around large-scale cloud-based critical systems. We’ll be looking at candidate resumes with an eye on achievement. What you’ve accomplished in the past tells us the most about what you can do for us in the future.

Full description: https://app.jobvite.com/j?cj=orgu4fwZ&s=Hacker_News
Just skip it: 9 features your product does not need to launch
I think I'd get annoyed working with people who respond like this. Except for the part about fast response times -- I like that.

I don't like guessing people's intent. I don't like it when people are evasive about saying no, wasting both my time and theirs.
Octopuses can basically edit their own genes on the fly
This uBlock rule should do the trick, despite the use of CSS modules:

mobile.twitter.com##div:has(:scope > div[role="article"] > div[data-testid="tweet"] > div > div:last-child:nth-child(3):nth-of-type(3))

https://github.com/uBlockOrigin/uAssets/issues/351
Distributed Consistency at Scale: Daniel Abadi on Spanner vs. Calvin
Arnold Palmer's legend honored in touching Masters opening tee shot ceremony
Regarding Twitter's history of killing APIs and 3rd-party dev; is there a bulletproof approach to setting up such an API/service with the guarantee that it will not be killed/ruined, short of business closure? A one-sided contract, so-to-speak?
You get one TopCoder problem and the automated DeepCoder robot with q=0 is your first opponent. Once you beat it, they increase q to 1. You have 6 rounds with 1 hour lunch break where they tweak DeepCoder to respond to your thinking better. Once you beat all DeepCoder levels, they hire you and your task is to improve DeepCoder so that it beats you every single time.