skysight-inc/HackerNews huggingface dataset:
It's not. hg users generally don't understand that git is doing something fundamentally different from hg. git adds a 3rd dimension to your file system. dimension 1 = files, dimension 2 = directories, dimension 3 = branch. That git adds this 3rd dimension makes it useful for version control but that's effectively a side effect. hg on the other hand is specifically about version control so it does not handle adding this 3rd dimension well. This is why for example things like gh-pages on github where there's a branch that has absolutely nothing to do with any other branch and no shared history is a normal thing to do in git (because a branch is another dimension to the file system, not a version control construct).

That difference, adding branches as a 3rd dimension, is why git is more powerful. It's also a reason why a staging area is important to be able to precisely decide what goes in each branch since they may be unrelated. That is not to say that hg's ux isn't easier to understand than git's. It is easier. In part because it's trying to do something else. That is also not to excuse git's unintuitiveness.
> As an aside, is there some reason that using the same identifier with different cases is desirable?

It is mostly for conventions, however different cases are generally used to represent different things. For example, in Python:

- ALL_CAPS: global variables

- PascalCase: for classes, and now that Python has typing annotations, types

- snake_case: everything else, from variables to function/method names

(This is not a rule, Python allows anything anywhere, so it is just a convention).

So for example, in Nim you couldn't have PERSON (global variable) and Person (class), however you could still have Person (class definition) and person (class instance). Of course, applying the code style from a language to another language is silly, however it is just to illustrate the value of case sensitive identifiers (if you think that my example is more or less valuable than having the flexibility of using a external library the way you want this is your choice).

BTW, nowadays I am studying Golang and I found it annoying that you capitalization is meaningful in Go, so person() is a private function however Person() is public. It is generally not bad, however sometimes I want to create a global private constant and can't simple call it MY_CONSTANT since this would make it public.
If I had a guarantee from Gitlab that _they_ were scrubbing the data, I would have no problem. I get the sense they know what they're doing (naive, maybe)

However, giving a third party script, potentially unvetted, access to the crown jewels of the company I work for? No fucking way.

Different. Not a double standard.
There is also a number of other related projects:

- Deep Learning with OCaml[1] blog post from Jane Street

- Reinforcement Learning with OCaml[2] blog post from Jane Street

- Transfer Learning with OCaml[3] blog post from Jane Street

- An example of object-detection convolutional neural network (Mask R-CNN) with Owl library[4]

- Currently, the integration with ONNX[5] is being worked on in Owl

- Other proposed projects[6] that might need your help

[1] https://blog.janestreet.com/deep-learning-experiments-in-oca...

[2] https://blog.janestreet.com/playing-atari-games-with-ocaml-a...

[3] https://blog.janestreet.com/of-pythons-and-camels/

[4] https://github.com/owlbarn/owl_mask_rcnn

[5] https://github.com/owlbarn/owl_onnx

[6] https://ocaml.xyz/project/proposal.html
Every project I've ever worked on has used analytics; it's super useful.
It's a spambot that reposted this comment from a year ago: https://news.ycombinator.com/item?id=17709028
google's already got a pretty good head start, too...
The Citizenlab report will probably answer most of your questions about this.

https://citizenlab.ca/2019/10/nso-q-cyber-technologies-100-n...
Why is the free file thing such a big deal? Considering the taxes paid, tax prep software is a tiny expense — and it’s deductible. How about complaining about a tax code that requires accountants and lawyers just to understand? Complaining about tax filing software is like complaining about a paint chip on the Titanic. The tax prep industry is a result of a ridiculously complicated tax code and the ridiculously complicated tax code is the result of politicians that reward or punish people as a means to garner more relevance. See Milton Friedman’s speech on tax code complications and the reasons behind it.
Crossplane, the open source multicloud control plane
I have three GPT-2 bots that hook up to Slack so I can pretend I have coworkers.

One of them is general queries on the latest model, one is Gwern's poetry bot, and the third is trained on toxic/moderated comments and says only sadistic cruel things to me. I don't know why I built the last one.
I bet you didn’t even read the study before you down voted me. Facts don’t care about your feelings.
Wouldn’t it be so much better if domains were specified the other way?

new.github.repo

It makes more sense and sounds better in most languages too

Although from the point of view of HTTP we already have verbs for that. It should really be

POST github/repo

Or maybe in user friendly display:

new github/repo

I guess maybe usa.github and in.github can be different domains because different organizations may have same name in diff countries

Treating a TLD as a verb is just silly. It comes at the end of the sentence...

Also it encourages stuff like repo.new to be owned by only one company - github - but what about atlassian butbucket etc?

Better to just have decreasing specificity. Like you have after the slash!
I have a bot that polls my Airtable list of birthdays and if it is someone's birthday, it sends me a push notification via IFTTT at 7am that morning so I can call or text them first thing in the morning.

https://github.com/hkhanna/birthday_notify
They should try pushing that angle a lot harder I think. I wasn't aware of it (I've only used their store for some of the weekly free games).

Most of the pushback seems to be because everyone is fine with Steam, yet another store seems unnecessary, and it smells a lot like a rich company buying their way into our hearts (exclusives from all that Fortnite money). I think that's why it doesn't sit too well.
There have been a number of posts about NSO on HN, and most of them do not say Israel in the title. But most of them do say "NSO Group" instead of "NSO", so maybe this title should have said that too. Although you might blame that on Reuters as well for not having "Group" in their title when that is actually in the name of the company.

https://hn.algolia.com/?dateRange=all&prefix=true&query=NSO&...
What happened ? Google is still one of the better players around. They pulled out of DoD contracts etc. This site just hates it for every single thing..it's just group think now , majority of the general public still loves it.
Excerpt:

"From the ingress frontend that handled the query down through the depths of the serving system, there were more than 20 layers of microservices! The complexity was mesmerizing, though also somewhat terrifying; who could possibly understand a system that deep? With conventional tools at the time, the answer was simple: nobody."

Easily one of my top-ten favorite articles on HN.
I hope someday we learn to make controllable mini-storms. All kinds of interesting things to study thanks to the energy levels.

From wikipedia -
"Scientists estimate that a tropical cyclone releases heat energy at the rate of 50 to 200 exajoules (10^18 J) per day, equivalent to about 1 PW (10^15 watt). This rate of energy release is equivalent to 70 times the world energy consumption of humans and 200 times the worldwide electrical generating capacity, or to exploding a 10-megaton nuclear bomb every 20 minutes"

https://en.wikipedia.org/wiki/Tropical_cyclone
Rather interesting, it just occurred to me that I don't remember what Type 2 diabetic patients that I have worked with in the past did for their blood sugar monitoring. For the most part, I think very few of them monitored daily. Most of their blood sugar testing (fasting blood glucose, hemoglobin a1c) were done at clinic visits.

The only times I can remember daily glucose monitoring was for the insulin dependent (as they need regular monitoring to make sure they are using the right amount of insulin), or those who we were trying to track to give the doctor more information on how to treat, but also to push the patients into making lifestyle changes (not eat that sugary meal in the morning if their blood sugar is already high when they wake up, for example).

Glad to see that the evidence suggests no different in A1c outcomes regardless of what is done.
> So from far away, I would question the neutrality of the Centre d'Studis d'Opinió.

They are the "Department of Statistics" of Catalonia, and they are controlled by the local government (pro-independence), so i am not sure why would they be biased to report lower support than the actual one.
Our Constitution does not consider secession of part of a territory. To hold a referendum, they will have to change the constitution first, which is unlikely to happen in the short term.

Also, I am not sure that a referèndum is the best way to settle this conflict. I think that other options that can gather the support of more than 50% of the population would offer a better solution. (i.e., how do you build a new country when half of the population feels strongly about it?)
You know what they say, when everyone is responsible, no one is responsible.
Collusion isn’t a crime unless it’s done in order to commit a crime in which case it becomes a conspiracy.
Ask HN: Individuals and Companies, How do/did you regain lost trust?
How would the free market help increase web accessibility?
AWS isn't killing your business, you just suck at it
The problem here is you have a complex inheritance hierarchy, right? So don't do that, use composition instead. It's super flexible. E.g. (OCaml):

let create_frog () = object
method color = "black"
method size = 10
method speed = 5
method direction = 3.14
method swim = print_endline "Frog swimming"
end

let allow_frog_to_walk frog = object
method walk = print_endline "Frog walking"
method super = frog
end

let allow_frog_to_jump frog = object
method jump = print_endline "Frog jumping"
method super = frog
end

let make_frog_toxic frog = object
method intoxicate animal = print_endline ("Intoxicate" ^ animal)
method super = frog
end

let frog = create_frog ()
let frog = allow_frog_to_walk frog
let frog = allow_frog_to_jump frog
let frog = make_frog_toxic frog
What about committing partial changes to files (like git’s hunks)?
This sounds like a great application for all of those professors who know a lot but never go to the industry.
> more likely than not

Yeah, “more likely than not” isn’t a promise. Sure, a lot of people firmly believe in their theories, so me saying “no one was actually sure” seems wrong, but I was talking about a different kind of “sure”. The community overwhelmingly agreed on SM, whereas there were huge divides on where the BSM bets were, or even on roughly the same bet, where SUSY scale lies, etc.

> Mant really good students are funneled into dead end careers in high-energy physics, ...

I was one of the funneled. We signed up because we were drawn to the fundamental questions, not because of glowing job prospects, which were largely laid out for anyone paying a little bit of attention. Cancelling things and decreasing funding certainly didn’t help, only lead to worse “exploitation” in your words.

> Funnily enough lot's of institutions doing fundamental research in high energy physics either also do military research or receive military funding.

Institutions do lots of things. Most also receive funding for medical research, so?

In general, modern day HEP in and of itself hardly contributes anything to the military sector. On the more practical side, powerful magnets, computational methods etc. should be useful in military applications, but a lot of different areas have such second-order effects. Nevertheless, I’m neither knowledgeable nor enthusiastic about killing machines, so I could be missing some obvious connections.

> Most of Witten's work for example has been funded by the Department of Energy.

Why would you put all DOE funding under defense budget? It’s not DOD. Or would you characterize all renewable energy spending as military spending too?

> In France one of the major institutes contributing to particle physics (Saclay Nuclear Research Centre) also developed their nuclear arsenal...

Particle physics has largely moved on from nuclear physics. (I know, many particle physicists are still interested in cold fusion etc.)
My A1c was awful before I started finger pricking and continued to be so until I started using a CGM. I have dropped to pre-diabetic levels now. I think the problem is the method. I can see why the study came to this conclusion using finger-pricking but having an easier method of checking would probably change the outcome of the study.
Your "morals" precludes anyone from working at any major company. Let alone companies like WashingtonPost who helped start many illegal wars and led to the death of millions of innocent people with their lies.

Using your logic, the murdered journalist took blood money.

https://www.washingtonpost.com/archive/opinions/2003/02/06/i...

If you work for pretty much any major company in the world, you are receiving "blood money". If you are working for the US government or any major government, you are receiving "blood money".

Can you point me to a company that is "without sin"?
Good point. "NSO Group" would have helped me a lot, and avoids the immediate political innuendo. @dang: An obvious compromise.
Yikes, has anyone reported what the contaminant was?
> they are working to dismantle the predatory payday loan industry.

Any interest on a loan is, by definition, predatory. How are they working on addressing this issue?
Yes; several!

I have a Ruby bot running in Lambda that forwards emails in my Gmail inbox that are tagged with a specific label to Expensify automatically. This saves me a LOT of time, especially since Expensify doesn't have this feature yet.

I'm writing another small API on Lambda with Ruby that returns flight info from FlightAware in JSON format so I can use it with Tasker to do things like send travel updates on WhatsApp and log my travel in Google Keep. I do this every time I travel, and while I have a Tasker task that uses the FlightAware JSON at the bottom of the page to achieve this, it's given me stale information several times, which has been annoying.

Up deck on Trello, I want to write another bot that uses my TripIt trips to update my Slack status at work so that people know where I am!

I also have a few Tasker shortcuts that help me during my travels.

The less I have to remember to do, the better!
There are ways to fight this. Controls on corruption (aka lobbying) and removing the revolving door between industry and government would help greatly.
Deadspin Editor Fired Amid Pushback over ‘Stick to Sports’ Memo
just uppity underhanded lawyers
Ask HN: What's Your Rough Net Worth and Age?
It's fun to do these kind of threads every once in a while because it gets people talking about personal finance, success, failure, perspective, and other topics rooted in money.

So what's your general age-range/cohort and what's your Net Worth?

I'll start: late 20s, ~500k depending on the day and market fluctuations.
> Considering the taxes paid, tax prep software is a tiny expense — and it’s deductible.

It's only deductible if you itemize deductions, which most people don't do. And even then it isn't free. Your tax deduction only means that you don't have to pay taxes on the cost of your tax preparation service or software.

That said, I agree with you about everything else!
Found in https://regmedia.co.uk/2019/10/29/ngogrouplawsuit.pdf
Another perfectly fine example:

auto * logger = Logger::getLogger("main");
On a slightly unrelated note, the firewall at my work tagged karma.fm as pornography. I opened this post on mobile and it clearly isn't that.
Yes, that’s exactly right. They just want to feel like gods as they stomp the new players.
Frankly, I’d rather some form of compressed binary logs, but sure, either works if it includes a stack trace and I need it at the time! Text logs compress well anyway, they just grow larger if/when you process them later... I’m just happy to see objects as log entries instead of plaintext strings. ;)
Upgrade to iOS 13.2. They finally fixed the “watercolor” effect.
I've made a fair amount of these kinds of animations in the past, and it's much harder than it would seem to portray the random nature of interactions. Another common criticism is that a lot of these visualizations don't show how completely packed full of molecules/cells each of these environments are.

You're tasked with the almost-impossible goal of clearly conveying accurate information, visually, in realms where a) though there are a lot of structural data, the visual relationship of things gets VERY complex, b) not everything is actually known, and c) the time and visual scales aren't naturally perceptible to humans.

It's definitely not impossible (see Drew Barry's work, and from the glimpses of this project I've seen it looks pretty great actually), just difficult, and there's not a huge amount of money in it unless you want to work for pharma. Personally, I've been moving more towards 3D interactive content vs. linear videos because you can show a lot more layers, and having users drive what they're focusing in on can be a lot more powerful than trying to design one animation for every learning style.
> I don't want to have to worry about a thousand DVDs

Did you actually buy 1000s of digital movies from Amazon or are you talking about a streaming service (not the same thing)

Paying $10 a month for amazon's movie library streaming access is different than paying $10 per movie for virtual ownership. In one the price is $10 a month. If amazon ends their service I start paying $10 to someone else and pick up where I left off. In the other 1000 movies costs $10k and if amazon ends their service my $10k of virtual ownership is worthless.
Ask HN: How to Teach Software Architecture?
I am working as a software development trainer and consultant. In 2020 I will have a new challenge - training & coaching a few people to become software architects, from their current positions (senior software developers, mainly).

The main interest and focus will be on distributed systems (generally) and microservices (particularly).

Any recommendations on books or (at least) articles on a learning path are more than welcomed. Thank you, in advance.
No. get_random_u32() simply returns result of RDRAND if RDRAND is available regardless of any runtime configuration. For me that is pretty significant issue, because it is documented as being based on separate kernel-only CSPRNG with somewhat specific security assumptions (complete with pretty large discussion in comments of random.c as to why would anybody want that weird thing)
Agreed. Git's stage provides more flexibility when committing - I'm not constrained to either commit, stash, or revert every modified file. I can choose which modified files I'd like to include in the commit, and the others can be left as-is.

It's very nice to have when I've done a lot of work that most naturally should be split into more than one commit, or when I have temporary modifications (say, to config files) that I'd like to leave in place for now but not include as part of the commit.
How does she feel about her employer's role in aiding torturing journalists to death?
I'd have thought the government would need to maintain some expertise in the "industry" of collecting taxes, at least. When I file a tax return in Australia, I do it via a government website.
Amazon set to challenge loss of $10B Pentagon Jedi cloud computing contract
This was a great read, thanks.

I've used svelte for one site that ended up being a good fit. Ended up using Sapper to build out the static site and was pretty impressed with the load times
GitLab rolls back controversial changes to customer telemetry collection
Dear GitLab users and customers,

On October 23, we sent an email entitled “Important Updates to our Terms of Service and Telemetry Services” announcing upcoming changes. Based on considerable feedback from our customers, users, and the broader community, we reversed course the next day and removed those changes before they went into effect. Further, GitLab will commit to not implementing telemetry in our products that sends usage data to a third-party product analytics service. This clearly struck a nerve with our community and I apologize for this mistake.

So, what happened? In an effort to improve our user experience, we decided to implement user behavior tracking with both first and third-party technology. Clearly, our evaluation and communication processes for rolling out a change like this were lacking and we need to improve those processes. But that’s not the main thing we did wrong.

Our main mistake was that we did not live up to our own core value of collaboration by including our users, contributors, and customers in the strategy discussion and, for that, I am truly sorry. It shouldn’t have surprised us that you have strong feelings about opt-in/opt-out decisions, first versus third-party tracking, data protection, security, deployment flexibility and many other topics, and we should have listened first.

So, where do we go from here? The first step is a retrospective that is happening on October 29 to document what went wrong. We are reaching out to customers who expressed concerns and collecting feedback from users and the wider community. We will put together a new proposal for improving the user experience and share it for feedback. We made a mistake by not collaborating, so now we will take as much time as needed to make sure we get this right. You can be part of the collaboration by posting comments in this issue: <snip>. If you are a customer, you may also reach out to your GitLab representative if you have additional feedback.
How have you found and applied for jobs?
When looking for work, how have you found them, and how did you organize your search? Did you automate applying, cover letters, etc.?
Is it possible to enforce american spelling ( especially in the title )? Behavior vs Behaviour?

HN is an american company and gitlab is an american company so people who participate here should use correct american spelling.

The gitlab post itself uses the correct spelling - behavior.

"In an effort to improve our user experience, we decided to implement user behavior tracking with both first and third-party technology"
It's a joke! :)
Read the books in this order: Cryptonomicon, Reamde, Dodge.
Were people really arguing for removal of telemetry altogether? I would think that many of us are comfortable with aspects of tracking.

For me, the concern was the value of the content. It might as well have been my bank saying they were going to start embedding disqus threads.
I dont get those who are going after Facebook for this yet they are not going after television stations. They for decades and decades have run any and all political ads; truth or fiction.

How is Facebook stance any different then TV, radio and or print industry's stance?
There are tools that aren't nim-specific, like ack/grep/sed/git, and code review tools, which suffer as a result.
This Will Make You Look at History Differently
Nim is actually case sensitive on the first character only, so your list of identifiers are not all equivalent. Just thought I'd point that out for correctness sake.