skysight-inc/HackerNews huggingface dataset:
One nitpick: `.chars`[1] gives you an iterable[2] of `char`s[3], each of which is always a 4 byte representation of a valid unicode character. This means that `"asdf".chars().collect()` will have a different size to `"asdf"` and `"asdf".chars().as_str()`. `.chars()` will never give you an incomplete codepoint, but it will give you incomplete characters, as you could have many c̶̼̟̏ó̷̘̉n̴̖̞̏̇t̸̡̃ĭ̸̻̬n̴̯͉̂͑ṵ̴̑a̷̛̫̳ẗ̸͕́i̷̱̫̓̋ǫ̸̑ǹ̶̼̅s̸̩̾̌ to represent what visually are a single char.

[1]: https://doc.rust-lang.org/std/string/struct.String.html#meth...

[2]: https://doc.rust-lang.org/std/str/struct.Chars.html

[3]: https://doc.rust-lang.org/std/primitive.char.html
Il est en première. Do not underestimate the french education system ;) What you need for such a game are Pythagorean and Thales's theorems. I gave him hints so that he poses the problem correctly, but he came up with the formula for moving the red square on his own!
Did a date column get mapped to Date, moment, date-fns, luxon, or any of the dozen other choices that your shop might standardize on?

I've never heard anyone server-side care about the size of a deployable. It's the size of the codebase that's an issue. Tedious conversion code does not work in javascript's favor.
If you don't pay those penalties though then you'd be in trouble
In the more nice corners of the music world - especially dance, jazz, and classical - it is very common for music fans to describe their tastes by following a specific label. A good label head is a tastemaker and curator, and their label brand will all be a consistent kind of sound (or level of quality, for classical).

When you find a DJ you like, you figure out what label they're signed with, and if the label head has done their job right you've just discovered a whole family of related similar artists who produce music in the same style and often tour/perform together.

This doesn't really happen as much in other genres, where the goal is to be signed with a sub-imprint from Sony, Universal, etc... there isn't nearly as much curation going on.
I'd feel more comfortable with my personal data if that were the case.
Now I kinda hope Oracle decides to buy out MongoDB and integrate it into their own cloud. Then Oracle can decide to pull the same bullshit that they did with Google over the Java APIs with the MongoDB APIs but now against their current enemy Amazon (and Microsoft, too).

Then a combined Google + Amazon + Microsoft may finally be able to reverse the API Copyright insanity that is hovering ominously over the tech industry, and Oracle can continue to be a shining city upon a hill of shitty technologies you should never allow your business to adopt.
we are from France :)
What kind of advances are you thinking of?

As best I can tell, most of the warnings are either things that can be figured out for a single translation unit and (some) compilers will eventually incorporate as warnings, or things that can only be figured out by analyzing / linking across many translation units - which a compiler can't do, but the actual "advance" is simple enough if you have all the function definitions to hand.
For sale: New York City's second most famous skyscraper
TriggerMesh brings AWS Lambda serverless computing to Kubernetes
What is particularly impressive about his portfolio? The whole idea of venture capital is placing many bets. In fact elsewhere in this thread people used that same logic to excuse his bad bets. So if you put money into just about every company that gains traction in the SV, why would that indicate brilliance when some of them hit big valuations?
Ah but here's the caveat: "given enough time." For most jobs the time line is much longer than you'd think. Also, we're always discovering new jobs. Misemployment misunderstands what it is employees do. Employees help a business economize (produce value for folks better, cheaper, faster). The worker did a fantastic job and should be very proud of their $40M acomplishment. Ever notice how the best employees are always being given new jobs? That's because they're finding new jobs. Doing exactly the same task for many years is risky business because the repetitive nature lends itself to automation. The good news is that employees can avoid this. The recipe is finding new ways to create value for the business (and hence customers).
I'll never buy AMD again, I had nothing but problems with Raven Ridge on Linux:

https://bugzilla.kernel.org/show_bug.cgi?id=196683
I'm pretty sure this is going to kill Mongo as a company dead. With this in existence there's literally no reason to use Atlas.

If they wanted to twist the knife they should get to work implementing a pass through migration option.
Brand new Samsung Galaxy J6 exploded on student's pocket
It was a temp table that we hadn't garbage collected yet. We don't make a habit of leaving that much junk data around, but it bumped our monthly storage bill several percent, not like tripled it.
i have never heard about him. he sounds like those indian gurus and scammers. who says "my great analogy". sam altman is so much clearer in his videos, why is he interviewing this guy?
China loves basketball as well. And the Philippines ! I've never seen so many people playing at once.
Context on his comments?

Edit: http://blog.samaltman.com/e-pur-si-muove

I don't see anything awful in here. There are absolutely people in the bay area who wish to silence other opinions. I'm a pretty liberal person and this place is ridiculous.
It's likely you were misinterpreted because many people immediately jump to the worst possible interpretation of things when it comes to China on hn.
Does Bandcamp work for you? I mean, they don't offer a streaming subscription, but you have access to all purchased music through the app.
My only complaint is the global scope pollution with the top-level variables and lack of ‘var’ for those. But other than that, I agree.
You have a point, but he never said he programmed exclusively in C++, so I don’t really see the issue here...
Maybe because he is not on hackernews? I told him I did this post, and he reads your comments, though.

He is 15. I should have written younger brother and not little brother; english is not my native language.
Even if they were established they’d have a tough time getting financing in the .com crash. A bit of luck is always necessary.
It is indeed a vector space. You don't really choose a basis, an ML tool like word2vec [1] does. And like most advanced applications of ML, exactly how it works is a mystery.

1: https://en.wikipedia.org/wiki/Word2vec

> The reasons for successful word embedding learning in the word2vec framework are poorly understood. Goldberg and Levy point out that the word2vec objective function causes words that occur in similar contexts to have similar embeddings (as measured by cosine similarity) and note that this is in line with J. R. Firth's distributional hypothesis. However, they note that this explanation is "very hand-wavy" and argue that a more formal explanation would be preferable.
Mysterious fast radio bursts from deep space ‘could be aliens’
A Brief Case Against Limits
Yeah, I'm a little skeptical of CS schools that try to shelter their students from suffering. While schools should obviously not attempt to break students, there should be a reasonable crescendo of difficulty within the program. Because, well, software development can be hard. Students that don't like the hard parts don't like software development. This doesn't mean insanely hard "weed-out" classes, but simply projects that reflect the difficulty and demand of the real world.
My understanding was that the accelerometer was there to stop the drive in case of a fall. You wouldn't need that with an SSD, though perhaps if it still had an optical drive?

EDIT: I should add that both the HDD Macs I owned (a 2009 Macbook Pro and a 2004 or 03 Macbook) had accelerometers and I found a cool app for oldest that made a lightsaber noise. This was pre smartphones, so it was novel. My Late 2013 Macbook Pro does not seem to have one.
How the heck was this approved by legal? AWS is linking to MongoDB's own documentation.

https://docs.aws.amazon.com/documentdb/latest/developerguide...

Go to any operation, it links to docs.mongodb.com !
MongoDB still have a strong hand

- control of the client and particularly its exposed featureset

- due to that, also control of the protocol and the ability to, for example, insert legally protected strings in the style of the Apple SMC signature into the handshake.

- ability to gate new features on the presence of an object like a copyrighted text, trademark, or even a crypto signature

- ownership of the name. AWS are pissing in Mongo's pool marketing themselves as compatible, and there are a variety of ways it could be made to backfire, if it were in Mongo's interests to encourage that outcome

- AWS focuses on breadth and very rarely nails any particular service. Their hosted Postgres for example still does not expose core features years later

- Following from that, AWS services on the whole are rarely best-in-class in terms of raw performance. I imagine Mongo could continue to easily compete on benchmark results running on AWS own infrastructure

I think this is a really interesting case, far more interesting than the technical minutia of Just Yet Another AWS service. It does not sit well with me whatsoever that they're basically ripping off a much smaller company's core tech while simultaneously borrowing their trademark (in a legally acceptable manner) as part of the marketing, but I also find it hard not to see a ton of potential upside from this for Mongo
You don't need to hypothesize what the alternative to HSR would be. It was well researched. The alternative, expanding highways and airports, was more than 2x the cost of HSR. Of course, the costs of HSR have grown, but so would the highway and airport costs.

The biggest cost to HSR is acquiring and developing property in developed areas. But this is significantly more costly for highways and airports.

The solution to the bloated HSR budget is to improve the process, not to switch to another alternative mid-stream that both theoretically and in practice would be at least as bloated and even more costly.
Good thing I’m not Jeff Bezos.

But then again, maybe he’s well insulated, such that her bank heist fails, and retires into obscurity with pocket change or less.
Indeed -- taking into account the recent revelations about CTE and related issues, Mayweather's "I believe in taking as little punishment as is possible" approach seems to me well-considered.
1 the feeling it's much better
2 enormous waste (multiply that by the people in your country)

Once, when I though that people might regularly use plastic I thought: "if that's not a mental health red flag I don't know what it is"
So you're saying that Jackie Chan did extreme stunts–that stunt professionals refused to do–early in his Hong Kong career, because he thought to himself, 'This will make me an international star'? And not because 'This will prove my worth to this director and the audiences'?
I agree with this assessment. Frankly, GPUs are so much faster for dense linalg than even the highest end Intel (or AMD) chips that anything that can be done on GPUs should be done there. But that requires one to know how to work with them, if the primitives don't already exist, and most people are oblivious to the finer points.
Once there is AWS version, it seems like a matter of time before it becomes the safe choice. Nobody got fired for using AWS.
just fyi, $300 a month on Lyft is much cheaper than the average car (~$750/month) - though not an apples to apples comparison.
A couple languages doesn't seem beyond the realm of possibility for one engineer to be familiar with, though?
What is the way out? Would love to hear from people.
Show HN: Extract the contents of files using data recovery techniques in macOS
Previous submission of the direct link (which was justifiably flagkilled): https://news.ycombinator.com/item?id=18856758
What city? Restrictive zoning is definitely a huge problem when it comes to affordable housing in a great many American cities. I guess I can't say it's universal though.
It really isn't that ridiculous that someone who has worked as a network engineer for a decade would use Erlang, C++, and Go. Even Haskell isn't too much of a stretch, considering the user's company has functional programming expertise in Erlang. Rust is a neat language that, depending on their workload, could replace all of those languages. Why the presumption of bad faith?
Sorry to pile on to the design complaints, but when I opened it in my browser, the first image (the wall with security cameras on it) was so big that the title of the article was completely below the fold. So I just waited a moment expecting some text or something to load in. You should definitely consider condensing this down a little bit.
Having got through a divorce (though in California) I don't see how this need make a huge difference to AMZN. The division of assets is not a taxable event, so no big stock sales. She could sign a voting rights agmt to vote her shares always with her ex husband's -- this could remove any "change of control" issues that would reduce the value of the company, and if they agree are going to continue as friends this would likely be no big deal.

In other words, a private matter and likely not "news" in the sense of implying some shift in the tech sector.
You’re neglecting what fraction of users actually listen to indie artists’ music. It does hurt payoffs when listeners listen to more (diverse) music, but the payoffs are not diluted by the masses who individually listen to less, but cumulatively listen to much more music from mainstream artists. This combined meta-user is listening to a LOT of music, of which dilutes the number of plays of indie music. As long as there are users who listen to mainstream music but not indie music, indie artists will always be better of under the proposed scheme.

My intuition says that an example of Simpson’s paradox might be hiding here, in case someone is interested in constructing the mapping and making it explicit.
And Tesla’s Autopilot has driven a bit over 1 billion miles autonomously, and a lot more than that in “shadow mode” where autopilot runs without doing anything while humans are in control.
100% this. Nothing I tried even comes close to Emacs + TeX. It's exponential improvement in productivity.
I've never seen his lectures, but I've used one of his books for a course and have leafed through another.

I have to be honest, I never have understood why everyone loves his texts so much. I always felt that they were lacking in practical applications (even the Linear Algebra with Applications version) and that a lot of the ideas were not immediately clear when presented in his writing style. It often seemed that ideas and definitions would be thrown out with not much connection to why they were interesting. (Although I suppose this can be said of many math courses).

I suppose the thing is, with this stuff, there are lots of really interesting applications. I think I would have preferred something that started with the applications and then worked backwards. Maybe this book is an improvement? I'd like to check it out.

The exercises also didn't seem particularly enlightening, I just remember doing lots of rote things like LU factorization by doing Gauss elimination by hand.
How the Bezos divorce could impact Amazon shareholders
It would be nice if Amazon provided an API to access the data via SQL alongside the MongoDB API; I've seen quite a number of organizations migrate from mongo to Postgres once they get out of the rapid development phase. This would make that transition butter smooth.
AWS is preemptively defensive about API licensing claims: "Amazon DocumentDB implements the Apache 2.0 open source MongoDB 3.6 API".
Is linking to documentation illegal?
And if you have leadership experience, you could always step back into that role if the needs of the company change (e.g. project lead leaves the company and they need someone to fill in until they get a replacement).

My previous company saw project management as a step up, whereas I see it as just another role. Many engineers make poor project leads, and many project leads make poor engineers. Unfortunately, our society values "people" jobs like leadership positions more than technical jobs, so people will see it as a downgrade (especially those in management).

Ignore that noise and do the thing you like that helps you meet your other goals (financial, lifestyle, etc).
Though Tesla might have been losing 4k on these Models, X and S would have compensated on the support front with Annual Service fee and accessories.
It'll automatically unzip, decode UUEncoded files, and jump through other hoops to get at the underlying data to present it to you transparently and on-the-fly.

This is using the same data recovery engine which forensics software uses that I wrote which has been purchased in bulk by the CIA, FBI, and various other government institutions around the world.
"bland" != "pit". I can understand being bored by MTV (everyone likes different things) but your quality of life is not going to be poor. And for people interested in skiing, wine, and outdoor recreation on the weekends, it's far from "bland". It's pretty awesome to have world-class slopes, wineries, national and state parks, and beaches in a 3-hour drive radius. I can't think of many places in the world that offer all that + a booming tech industry (mind this applies to many cities in the Bay Area, not just MTV).

One of the themes of Pleasantville was the insularity and closed-off-ness of the town - literally in a geographical sense (only at the end do buses start going to out of town). Whereas MTV conveniently places you close to awesome things that you can access easily, while still having a good career.

There are other equally prosperous and thriving cities in the US that I would consider to be a distinct step down in terms of quality of life.
That would make the internal representation used an "API" and thus won't be able to change it in the future.

Apparently, they are using a 1:1 mapping between a collection and a table. Either by flattening the document or by using jsonb or equivalent. I'm not a big believer this is good for performance reasons, at least compared to a more normalized approach like the one we did for https://www.torodb.com But they may change it in the future --if they don't expose the SQL API to their internal representation.
I assume PCIe 4.0 will support the next-generation of Thunderbolt?
Double pendulum simulator app
this is the last place I expected a viper plug.
Reminds me of an incident in my early education when I happened to catch a documentary spoof about Stonehenge on TV that depicted whales building the ancient wonder. (I think Steve Martin was involved.)

Coincidentally, a few days later the topic of Stonehenge came up in class and my teacher asked if anyone knew anything about it. I immediately raised my hand and, when my teacher called on me, smugly announced, with full sincerity, that whales had built it.

She simply said, "No." Then turned to the next raised hand.

Edit: I can now confirm that my teacher was simply not informed by the latest research at the time:

https://www.youtube.com/watch?v=PVz53dQ1Eyg
> visually are a single char

IIRC that's what grapheme clusters are for.
ah yes, completely agree!
So is having cheap milk at the same grocery store you get bread at.
It's idiomatic in all ML-family languages, and generally in languages that are functional first and foremost.
But what if he wanted to turn it into a AAA FPS game with RTS elements in a persistent online world that supports millions of simultaneous users?
Some time ago, Eaton invented a hydraulic hybrid system that stored hydraulic fluid under compressed air tanks from braking. It was incredibly efficient because of minimal conversion losses in a simple system. It didn't take off, sounds like what's mentioned
Reminds me of the story of the Matisse painting that was hung upside-down.

https://news.masterworksfineart.com/2018/09/19/moma-hung-mat...
Yeah. I'm concerned about similar issues too.
Her bank heist? She was there from the beginning, over 25 years ago. She didn’t just marry a billionaire.

As long as Amazon remains stable I think their agreement, while it would be interesting, is none of my business.
IMO, it should scare you less than mutating the variable, which is the equivalent pattern in most other languages.
Seattle, and for a city of 730,000 people, it currently has ~13,000 units actively under construction, another 30,000 approved, and another 30,000 applying for permits.

I look out the window, and it's a panorama of construction cranes. There's more active cranes here, then there are in any other American city.

Oh, and my rent went up 17% last year.
There are a lot of wild writing styles: https://en.wikipedia.org/wiki/Boustrophedon
This is terrifying if true. Has this been documented anywhere? I'd heard reports of cities doing this to raise revenue from red light cameras generally, but nothing targeted for certain economic areas.
Tesla sold 90k cars in Q4 of last year. They sold 244,920 cars in 2018 and are now at a much higher rate of production than they were for the first 1/2 of the year. You’re off by quite a bit.
How to Make Headphones More Comfortable?
Not seeing any major inconsistencies. Three months ago they exclusively used Go and Rust, at some point before that they used Erlang and Haskell and they used C++ for a total of over 10 years.
If those unnamed other cultures think that the United States - a representative democracy - is equivalent to or worse than China - (again) a totalitarian dictatorship - then those cultures are objectively and factually wrong. They're entitled to their beliefs, but that entitlement does not equal correctness or sanity.
Don't do the crime if you can't do the time.
I dunno about flowers and roses, but life expectancy at birth has gone from ~52 to ~67 in the last 50 years.
> This isn't at all true.

Well I guess we'll just have to disagree there. I spend a lot of time writing code in all of these languages. By the time you've bulletproofed your dynamic code, you've got more code than if you'd just declared a simple static Java type.

I can define this...

@Data
public class Thing {
final String text;
final Instant when;
}

@Path("/thing")
public class ThingResource {
@POST
public void doSomething(final Thing thing) {
// ...blah
}
}

...and stop worrying in my implementation about what was actually passed in, or how a JSON string date got turned into a real date representation. This is mostly-vanilla Java.

Sure you can, with enough extra code and clever libraries, hack together a crude typing system into dynamic languages to automate much of the conversion. At the end of the day you're still declaring types, and it doesn't end up being as elegant as having the type system built into the language.
Not very much. For example i9 uses under 13 watts at idle [1].

[1] https://www.tomshardware.com/reviews/intel-core-i9-7900x-sky...
Look at it closely - it's exactly the same as your OCaml example, except it uses ";" instead of "in", and indentation is adjusted accordingly.

Although in practice I found that it's common to not indent adjacent nested let..in blocks in OCaml, either, so you'd often see something like:

let foo = "..." in
let foo = parse(foo) in
let foo = escaped(foo) in
...

And the rules are really simple - "let" always introduces a new binding.
"If I can win the lottery, anyone can" indeed. Does that technically fall under survivorship bias? (Which isn't to say that Chan _just_ got lucky, just that it's a combination of luck, skill, upbringing, disposition, opportunity...)
Amazing success story! The game is really fun! You should challenge him to add mobile support via accelerator!
All these "value" theorems are "obvious", but they help prove some neat not so obvious results. That's what I like about math: if you are anal enough about the "obvious" and "trivial", then eventually (with the help of this "obvious" stuff) you can tackle the not so obvious that's way outside the reach of those who prefer "common sense".