skysight-inc/HackerNews huggingface dataset:
I was curious to reproduce the "benchmark" in rust, which got me to this code. Mind you, i have not much experienace in rust, so i'd think this would be the most straight forward translation of the nim code in the blog post for a beginner.

use std::fs::File;
use std::io::Read;
use std::path::Path;
use serde_json::Value;

fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut json_file = File::open(Path::new("1.json"))?;
let mut json_content = String::new();
json_file.read_to_string(&mut json_content)?;

let json_value : Value = serde_json::from_str(json_content.as_str())?;
let coords = json_value["coordinates"].as_array().expect("Coordinates");
let len: f64 = coords.len() as f64;
let mut x: f64 = 0.0;
let mut y: f64 = 0.0;
let mut z: f64 = 0.0;

for value in coords {
x = x + &value["x"].as_f64().expect("X Conversion");
y = y + &value["y"].as_f64().expect("y Conversion");
z = z + &value["z"].as_f64().expect("z Conversion");
}

println!("{}", x / len);
println!("{}", z / len);
println!("{}", z / len);

Ok(())
}

(fyi: the program ran in 2 seconds on my 7 year old laptop)
I think each bullet in Supreme Commander IS it's own object. I know they nearly all are individually simulated. That game is STILL hard to run at high framerates in certain "5000 unit vs 5000 unit" circumstances
Just 'cause no one less was helping doesn't make you a saint for giving your leftovers. Maybe you can take this as a lesson for next time you're in opportunity to give.
NYC is not uniformly rich at all. It is only the astounding wealth of the richest New Yorkers that makes it appear so. Who exactly is affected in NYC depends on the dock and wind direction. I have read (somewhere I forget) that air quality is in the mean worse in the Bronx; by no means is the outcome of this affecting all classes uniformly.
Can you give some good pointers to how to best make use of the tool? Or other great examples of how people are best using it?
Twenty Years (and Days) Later
Required and actual are very different animals. Just b/c the govt doesn't say you must doesn't mean employers don't provide good benefits. Reddit always says race to the bottom but a quick look around doesn't support it.
>>>Russia backed Assad in Syria, who attacked his own citizens with chemical weapons

That position is suspect given the growing number of whistleblowers coming out from the OPCW stating that evidence pointing to the rebels behind the worst attacks was suppressed while compiling their reports.[1][2]

>>>Their main strategy was to target the moderate anti government factions

The main strategy was to secure the major population centers of Damascus, Homs, and Aleppo, and secure the highway that links them and runs North-South through the whole country. These areas were largely held by a mix of moderates as well as al-Qaeda-adjacent jihadists (Jabat Al-Nusra, HTS, etc.). The least-moderate factions were largely near the Turkish border in Idlib (no surprise, this is how foreign hardline fighters were flooding into the country), or deep in the eastern desert (ISIS spilled over from Iraq). The Syrian Army was in no position to bypass its biggest cities, extend its supply routes (given the Army's non-existent logistical capability), and expose its flanks to attack the "REALLY bad guys" first instead of the "just kinda-bad guys".

[1]https://medium.com/@caityjohnstone/opcw-losing-credibility-a...

[2]https://www.zerohedge.com/geopolitical/new-opcw-leak-further...
Dates are really hard (I mean data type ones, but ymmv). Numerous libraries claim to be “standard” or to cover almost all date/time functions, but rarely do so. Some libraries allow a developer to see a date as a primitive value/breakdown, which may lead to hard to debug issues (unix + 86400, etc). Leap years, leap seconds, DST, “leapy” UTC/GMT+ days, accidental month overflow, shift date vs duration mismatch, etc. If you’re a developer and never scratched this topic, be aware.
Most of the notorious security breaches in practice (Stuxnet, NSA, IoT mega-botnets…) had nothing to do with buffer overflows.
Which of those is actually formally specified? Also, calling Python or JavaScript any effieicnt sounds a bit unwarranted. Consider any JavaScript desktop application, its power and memory usage... it's a mess.
I think we should not force ourselves to become something we are not.

If you've got the Unicorn CEO personality, go for it as it would be a pity to be stopped by fear.

If you don't have it, why chase the social norm of the day?
You won't make it and you'll be miserable.

Again, not everyone has to be a CEO.

You can be great at something else but you need to be blind to the social requirements of your age.

What is cool today wasn't cool 20 years ago and won't be cool in 20 years time, anyway, understand this and you are free.

Maybe we will look back at the "be big or go home" days as a skewed approach to business fuelled by VCs need for high returns.

And yes, today I look for partners who can complete me, as I have millions ideas but I only enjoy the first part, where you go from 0 to 10, growth 10 to 1000 is boring for me and I'm not good at it.

BTW, if anyone is good at it, I have great ideas in the Vacation Rentals (Airbnb) market, my contacts are in the profile.
It's not ambiguous at all. The statement is perfectly clear. The statement is a contingency, i.e. a statement that is neither valid nor unsatisfiable. (Proof-theoretically: neither p nor not-p is provable. Model-theoretically: some assignment of truth values to p will make it true but not all of them).

It would be a far more valuable lesson to teach children that talking about something doesn't will it into existence so that you can start making meaningful statements about it, like how many of them there were.

It's like tampering with witness testimony: "Witness: Somebody stole my handbag. Police: Do you remember anything about him? Can you describe him?" All of a sudden the witness remembers that the suspect was male, not female, when the witness may not have seen such a thing at all.

...or like a show I recently saw on History Channel about the zombie apocalypse. Harvard Professor on TV: "Well, scientifically speaking, there is nothing to suggest that a zombie apocalypse would be a scenario we will likely ever be facing. But if there were such a thing as a zombie apocalypse then one of the most important things would be hygiene, so as to minimize the risk of infection, which is a fascinating topic that I have published about quite extensively." Reporter: "Oh, really? Tell me more about the hygiene precautions that we need to use in the event of a zombie apocalypse." Harvard professor: Spends the next 10 minutes of screentime talking about zombie hygiene. Dumb idiot in front of TV: "Honey! Come down here! They're talking about the zombie apocalypse on TV! They have a professor from Harvard and everything!" All of a sudden: The zombie apocalypse is a thing.

Conversely: The fact that you can't see something doesn't mean it doesn't exist... (like atoms)! "How many blue cats are there? -> zero." Might sound okay, but "How many atoms are there? -> zero" is quite wrong, since the cats are presumably composed of more than zero atoms but we can't really count them etc etc

So when these kinds of presupposition violations come up, then you should teach your little daughter to go "Huh? What the? I can't answer that!" Because "Huh? What the? I can't answer that!" is actually the right answer!
Not "bloggers" its black hat SEO
Yup.

If people are willing to go through that much trouble just to get from A to B or to save a few dollars on diapers, there's something wrong.

They're investing hours and go through quite a hassle just to possibly save single digit amounts of dollars.

You don't do this if you don't think you have to.
How do game generators update 2020
Comparing meta-analyses and preregistered multiple-laboratory replications
And yet the most common language used for GPU programming is a C++ dialect.
Why would that damage be calculated client side?
well it came from initials of Hertz, Armstrong & Marconi all of whom were instrumental in radio wave research. I think that counts as an acronym but when it is a common word it is often written in lower case
Happened to some of the sites I looked after - its when your SERP snippet changes and you see traffic for pharma and porn terms.
Coding in C is like constructing a bomb and and defusing it at the same time.

It will explode and kill people eventually. That's a sure thing, no matter how good you are.

The only relevant question than is: Have you been still around or did you manage to find some safer workplace far away?
If we can't find the docs try the BSD 4.1/4.2 docs, A/UX is essentially UniPlus which was vanilla AT&T System V with Berkeley 4.1 networking added, the Apple team upgraded things to BSD 4.2 networking by A/UX 3.0
Nice.

It would be really great if you guys were to partner with other helping infrastructure, such as recovery centers, salvation army, homeless shelters etc...

Getting more people tested for treatments on all levels is a good thing, IMO
Americans are retiring to Vietnam
http://archive.md/zXfVz
My company recently switched to MSFT Teams, and the other day I was thinking how difficult it would be to get spam through teams.

By design, only people part of our organization can communicate with each other. There (AFAIK) is no endpoint for my organizational teams account visible to other teams users outside my organization. For spam to occur, someone's account would need to be compromised (which would be found quickly) or a fake account somehow created by the org admin (which seems unlikely).

With email, the IT department is commonly spoofed, or the president, HR, etc. Most people can spot the differences, but with teams they would virtually never get any fraudulent messages.
For #2, it'd be nice if there were kits sold to create your own physical keys. You can flash code from github to it yourself, and then assembly the casing together.

Optionally for first line of defense, the assembly could be fastened with some less common like a torx or square screw head and it could come with a pack of small holographic security stickers to place over the screw.

Edit: You'd want it to be an unassembled kit so that you can provide your own hardware if you wanted instead of relying on what is provided for you if you wanted to be super cautious.
It was Hicon, 5th of December, we organized the Blockchain in Travel part.

I was also a couple of times in Como, presenting our project, every heard of VRWS? It was two years in the row in Como.

I'm interested to know more about your villa in Bellagio!
- "Permission to harbor, Sir"

- "You said this is a nuclear ship sir?"

- "Correct"

- "Aaand you're not speaking figuratively of the geriatric waste you're carrying?"

- "Correct. We need you to dispose of our very literal nuclear waste."

- "Roger. Please stand by."
The only time I used a soda machine at 3am was when I was pulling all nighters in the library
The spec files (also mentioned in the GP post) are what RPM uses to describe how to build the software and then package it into a .rpm file for later installation. This includes things like build and runtime dependencies, along with the actual steps to compile the software. They're not the most human friendly things to work with but they will certainly give all the information needed to build everything.
A new method for boosting the learning of mathematics
Similar here. The KIM-1 was my entry to programming. So simple and understandable. I still remember some of the opcodes, hand-assembling and punching them in was a powerful rote teaching method. Obviously I had some nerd in me if I thought it was easy to understand. IMHO every programmer should spend some time coding this close to the metal.

The chess game that fit in 1K was a goood example of what someone smarter than me could do, too.

Thanks Chuck! We’ll raise a toast to you as we close out the year.
Sadly no, those are more of a Linux thing from at least a decade later
Drone swarms replace fireworks; where are the hackers?
I agree. In my case it's not ethics as I enjoy working hard, but as it gets less interesting and goes in growth phase I'm already chasing the next idea.
I don't think that's controversial at all. I'm not aware of any kid of age < 6 who has "screen time".

It's usually the first/second issue discussed when sending kids to friends homes.
Rent is higher in some areas due to market forces. If I have an apartment and can rent it out for $2500/month why shouldn't I?

A 1 bedroom in my immediate are rents for @1800/month. Go 5 miles down the road and the same space rents for $1000-1200/month. Differences? "Desirability" "newness" "better schools (which makes no sense if you don't have kids" "atmosphere (I read everyone looks like me)"

You can go into some older areas of the city and find rents below $800/month.
It's interesting to note that expectations for the limits of what's acceptable for labor are defined by, "Is it as bad as slavery?"

And for what it's worth, there is indeed "jobs" in this country that are objectively as bad as slavery. Most Americans do not work them, but they do help shape the market most Americans work in; and, in some cases, they are outright competing with them.
Isn’t the solution then to build a national infrastructure for late stage trials as opposed to putting life-saving drugs behind a ludicrous paywall, whose price is determined by the opaque malfeasance of the healthcare system in the US?
Because you want to instill fear. As an employer offering shitty jobs, you probably want to make it 100% clear to your employees that they can easily be replaced. "Humiliating and dangerous" can "help" instill fear in people living hand to mouth.
Buckyballs release electron-positron pairs in forward directions
I was just reading up on Broadway, written in Elixir, (https://hexdocs.pm/broadway/Broadway.html) that provides the fundamentals of batching/job control. It’s by the creator of Elixir and is based on 7 years of libraries in the area so the fundamentals are pretty well honed.
But why do you believe this? Encouraging physical world interaction before screen interaction (I'm taking away the value judgements) – what makes you think that this is beneficial? What are the benefits? How would changing this change the outcome of the child's life?

One theory I have found pieces of and put together is that a primary pillar of mental health is how your life experience as an adult matches your life experience as a child. If most of us are going to spend a significant amount of our lives glued to screens in order to be productive members of society, at least introducing that early might make the matching experience more tolerable.
Writing a Vim Plugin
Rate of dropouts is probably priced in. Plenty of people in the U.S. drop out of public education before they've completed it as we..
Swatting is disgusting. It’s a scourge. It’s also frightening that in our society we have people who are incapable of seeing just how wrong it is, and see it as some sort of “prank” and not attempted murder, which ruins the lives of the lost one and of the officer.

I mean it not in a judgemental that the people who are calling in these incidents are sick and need help from professionals. I really hope they get the help they need before they go on in their lives and do things they regret.
> But this was also the decade in which science was commandeered by all kinds of people with political, social and economic axes to grind.

And here follows a list of people with political, social and economic axes to grind. Wow, apparently, all of the examples I have just happened to be from the political right and/or aligned to the evils of ‘Big Business’!

Come on, if you’re going to accuse people of having an axe to grind, don’t do it in the service of having a political axe to grind.
This is why I just don't listen to voicemail. There is no reason to leave a voicemail, just send a text.
Ask HN: What did you learn from your 2019 New Year resolutions?
American. And to other responders, I'll restate that the premium for the cat totaled more than the amount my employer pays for insurance, plus the amount that's taken out of my check.

I know a lot of people don't know exactly how much their employer pays, but mine provides a yearly printout of what it costs them, and we got ours just a couple of weeks ago, so the number was fresh in my mind.
>and I use it to check 3 websites

That is a powerful use. You're connecting to a source of data that is likely weeks of travel by foot away, if not on another continent. If even one of them is a social site, like HN/Reddit/Facebook, it grants you access to the collective thoughts and works of thousands to millions of people.

"I wonder what other movies so and so was in" used to be something you'd have to ask multiple individuals.

"I wonder how a nuclear reactor works" was something that would have required a trip to a library and might have left you unsatisfied, now you can go on YouTube and actually see a tour of a reactor at a university and find many articles (some from nuclear/energy organizations on the first page of Google) that contain descriptions that even someone plucked form a random grade school could understand.

"How do I change my oil/hang a door/learn to program/knit a scarf/sew something/plan for my retirement/order illicit goods on the darknet/repair my item" now brings you more articles and videos than you could possibly want for countless topics.

While you might do these things on a daily basis, or a monthly basis, many people do use that nifty pocket computer that is their smartphone to find such things.

I learn more from listening to YouTube videos and podcasts at work in a month of work days about history than I did in all of my k-12 education. For that matter I probably learn more just during my commute in a month than I did in all of my k-12 education.

I can also whip that phone out and learn all sorts of things via Khan Academy, I can fire up Duolingo and TALL Drill and practice foreign language skills. I can chat with friends all over the world in real time via text, via image and video video thanks to Marco Polo/Skype/ FB Messenger/FaceTime etc.

That phone is my planner, my own personal weather forecaster, my full-time navigator, a camera and a video capture device, grants me access to all manner of data I've stored in Drive/Evernote/Sheets/Docs, can give me basic translation of foreign languages in real time with the camera, allows me to manage my investments/credit cards/bank accounts and get instant notification of transactions, grants me access to insane amounts of music, let's me get a very good estimate of my dietary deficiencies via cronometer.

I'd call that quite a technological accomplishment. That little black rectangle gives me the same abilities and conveniences that someone might have required an entire staff to have even 30 years ago.
I wouldn't say it's "easier", since random chance of failure isn't a difficulty level, it's a lack of difficulty: Your gameplay has no effect on the outcome.

If anything, this is Minesweeper as it should have been: A game of perception and deduction with no chance of random failure.

As a huge minesweeper fan, I think this is fantastic.
FYI you can read directly from a file without reading into a buf first. This might be a bit faster:

let json_file = File::open(json_file_path).expect("file not found");
let deserialized_camera: SomeDataType =
serde_json::from_reader(json_file).expect("error while reading json");
This sounds so familiar but I'm not placing it.

Snow Crash?
They had Amy who was a trained psychotherapist during both 2015 and 2017 when I went through. Anyone could schedule time to talk to her at anytime but it was generally used for resolving founder conflicts. She went off to be an executive coach but I am sure they still have someone like that.
I'm an enthusiastic user of Julia, but I would not think of it as a language with a "similar profile" as Nim or Crystal. As you said, it's hard to produce static binaries, and they are huge if compared with Nim's or Crystal's. Moreover, the typical workflow for writing code is very different from what users of static languages follow (edit, compile, run, loop over).
Yep - this is why I ultimately gave up on hosting Wordpress at all and just went with Pantheon. The managed service to deal with this was easily worth more than constantly being paranoid as to whether I was up to date with the most recent types of Wordpress vulnerabilities.
> Basically unusable for all intents and purposes, even if it were quality software.

Only if you don’t have anyone who can’t read Chinese on your team. Also most repositories are not documented at well or at all anyway so language hardly matters.
I have been playing this obsessively the last few weeks without knowing about the implementation. I thought it expresses the known facts about the board configuration as a system of linear equations and uses one of the classic algorithms for solving these. Anyone know if that would be infeasible for some reason?
Cognitive Function: A Key Human Factor Of Software Development
Is there an aircraft size where ADS-B is required?
The YouTube video explaining how to disable it will be here in 20 minutes.
I have personally seen women struggle to get birth control with health insurance.

Then check with your state's attorney general. In many states, insurance companies are required to provide it at no cost. Certainly in the last three states in which I've lived.

If it's not required in your state, then contact your legislators and try to get a law passed.
Downvoted for being funny.
So they all work absolutely great for their intended audiences?
... and they wonder why "trust in experts" is declining.
Put simply.

Life is an optimization problem.
I self host a ff send instance. See https://github.com/mozilla/send
I enjoyed the Isaac Newton "testimonial" (the others as well, but that one was the first I read).
Merkle Trees are from 1979 and those are one of the core concepts for most blockchain implementations (a Blockchain proper is, technically, just a merkle tree with a branching factor of 1).
IP protection isn't a big deal for countries sort out to give equal ownership for split funding. We even have every major country from the US,Canada,Europe,India,China, and Russia all working the first full-scale cold fusion reactor via the multi-billion dollar ITER project built in France.
- Nickel-manganese-cobalt cathode

- Dioxazolones and nitrile sulfites as electrolyte additives

I never found chemistry that interesting in school, but now I'm much more curious. Would like to find a video that explains battery chemistry evolution.
One advantage of using open source libraries is that they are often more battle tested and cover edge cases you either didn't consider or have not encountered yet. The trade off is less time spent fixing bugs, but more time spent on maintenance (package upgrades for security vulnerabilities/features/bug fixes, updating your code for library API changes).
Author here! Cool to see this pop up on HN again. I was wondering why I was getting so many Twitter notifications all of a sudden.

As a quick update, I continue to be happy with my decision to leave Google. I enjoy working for myself, even though I haven't made much money at it yet. I'm ending 2019 with ~$7k in revenue, which isn't much, but it's a bump from the $2.2k I made in 2018. My savings are still far higher than my annual cost of living, so I'm not in any danger of running out of money in the next few years.

I'll be posting another year-end summary to my blog on Feb. 1, 2020. I also write monthly retrospectives[1] about my work and weekly updates on What Got Done.[2]

[1] https://mtlynch.io/retrospectives

[2] https://whatgotdone.com/michael
Ask HN: How to earn money from open source while unemployed?
SPIR-V is fine as a standard. What you put on top and transpile into it should be completely flexible. I.e. no need to mandate higher level languages.

And if anyone wants to make a better higher level language and compiler for it to generate SPIR-V, they are always welcome.