skysight-inc/HackerNews huggingface dataset:
Rust memory management is just RAII, and there are no exceptions, just nice Result types and syntax that makes returning them and handling error cases simple and pleasant.

If you want to handle closing a socket, it’s as easy as implementing the Drop trait on your type. Without an unsafe block there’s no way your destructor won’t be called.

struct Socket(u16);

impl Drop for Socket {...}

To answer your question there’s no special casing around memory vs non-memory resources. Your socket is backed by a kernel ID which must exist in memory, of course, so by adding a Drop implementation you can then define the special treatment yourself. If threading considerations exist you can explore the Sync and Send marker traits too.

It’s largely a much simpler language than C++, you just have to learn how to write it. A lot of the friction/confusion IMO is that it looks so similar to languages you use at first glance you just start writing the code you used to in a Rust-y way, instead of Rust, then are frustrated as to why it won’t build.

In some ways it’d be clearer if it looked “foreign” like prolog — it’d be a lot less popular though haha.
This is disturbing. Is it accurate?
> Having read both Spotify's and Apple's claims, I am confused. Both seem legit.

Both sides are exaggerating: Spotify's claims that Apple is blocking their apps and preventing them from shipping features are likely bogus, while Apple's claims that they don't selectively implement rules when doing app review is false as well.
OpenOffice gained traction by supporting .doc files. VLC because it could read .wma and .mov files. Linux when it could read NTFS partitions.

"Be conservative in what you do, be liberal in what you accept from others" is good practice in software, espacially in open source. You can't be picky when you are the underdog anyway.
The X was trying to be some sort of exotic with its price tag and ridiculous doors.

The Y is more aimed at middle-class soccer moms IMHO.
Like other comments have noted, it's almost taken for granted that 5 countries can dictate who does and doesn't get access to uranium. It's fine that they collude, but legitimizing their collusion as logical or moral isn't really convincing. Discrimination isn't logical, especially when the club includes Russia and China - countries famous for being overtly belligerent, with a horrible human rights track record
It's legal to have a monopoly.

It's legal to have a monopoly and get advantages in the market.

It's illegal to have a monopoly and then try and extinguish your competition in the current or any adjacent markets.
I don't get it, this is more expensive than model 3, so the price can't be the thing that made you change your mind.
Was it the size ?
Population growth is in decline in real terms [0], but as you say it will take decades, unless you advocate enforced involuntary euthenasia. Even plunging populations, as Japan is experiencing [1], brings other problems such as economic recession. We really need to stop worrying about population [2] and revisit some baseless norms of common policy, such as "trickle-down economics" and other Friedman gems that leads to rampant overconsumption and wealth concentration.

There is hope, we just need to listen to those who want a change, not those who just want to maintain their already huge asset piles.

0: https://www.ted.com/talks/hans_rosling_on_global_population_...
1: https://www.npr.org/2018/12/21/679103541/japans-population-i...
2: https://en.m.wikipedia.org/wiki/A_Modest_Proposal
Also I suspect facebook is in decline in term of engagement, I hardly know anyone around me who still uses it. That sounds like a more plausible rationale for top employees leaving than them worrying about facebook “being good for the world”.
There are many things here, some of which are clearly Google's "fault".

There is the incorrect neighborhood assignment by Pitney Bowes. I believe that is the fault you are referring to.

There is Google's choice to use Pitney Bowes instead of a (possibly more correct but expensive) data source, or instead of doing it themselves (also more expensive).

There is Google's decision to handle error reporting through means which - according to the article - may be disadvantageous for neighborhoods where 25% are senior citizens and 40% lack internet access.

There is Google's choice to not reveal where the data comes from, making it harder for others to figure out the root source of the error. Consider if you are denied an apartment rental because you failed a credit check, and the rental agency refuses to tell you where they got the data, and the credit agencies all refuse to tell you where they got the data. How would you correct any data which wasn't accurate in your eyes?
I realize that advertising provides actual value. It just seems that it became too much. It went from something that should be an add-on to the main income source for some of the biggest companies in the world. That‘s way too much power in the hands of advertising companies.

That‘s why I said the „I build something neat that people wanna use and when I have enough users I exploit the shit out of them“ aka ad-based business model needs to die.
> And Spotify isn't asking to keep 100% of the revenue. Spotify is asking for a choice of letting users pay how they wish.

But users can pay how they wish, if Spotify didn't mind the 30%/15% cut. Spotify simply can't direct users to use their website to use an alternative payment system. I think that is a very reasonable policy for an app store, as it protects its users from poorly implemented financial info handling and scams.

I agree that Apple's article is more hostile than it needed to be, but it is only in response to an unreasonable attack by Spotify on Apple's IAP policies.

Regarding the walled-garden App Store policies of Apple, it's not friendly to enthusiasts and some developers, but it is good for most Apple consumers, and helps less tech-savvy users trust Apple's App Store.

Android has freer permissions on installing apps, because that is necessary for vendor adoption. However, it is unclear if this is still ultimately a better decision for consumers on aggregate.
Problem is that Apple is actively trying to prevent that. They have no right to do that and are abusing the power they have in other areas to do it.
I think the argument they try to make is that the car is safe despite of the touchscreen.
You can't carry neither your TV nor your desktop on the go with you like you can with your smartphone.
Apple has ~15% market share (fluctuating) so it's not really a monopoly situation. Google will give you access to the exact same Spotify service.

Whether what Apple is doing is legal or not I guess the courts will decide. But it's certainly factually incorrect to imply that you're not free to buy from anywhere else.
The History of Philosophy episode on icons and iconoclasm is relevant and, as with the rest of the podcast, excellent.

https://historyofphilosophy.net/iconoclasm

MP3 direct: https://hopwag.podbean.com/mf/play/h7m3vi/HoP_303_-_Don_t_Pi...

I've been thinking of our recent technological fetish for digital identity and identifiers as something of a modern cult of idolatry, grounded in many of the same aims, and subject to similar failures: digital IDs are representations through which we interact with the represented, but problems arise when we mistake the icon or idol with the archetype or ideal.
> Honestly, I got the vibe he started MtGox as a hobby that happened to make money.

Mtgox was started by Jed McCaleb. He essentially gave it away for free to Karpeles when he realized that he was in over his head. It seems he was already losing money running mtgox and just wanted to get rid of it.

https://hackernoon.com/mt-gox-interviews-jed-mccaleb-on-the-...
I was doing a little bit of Z80 work a while back, but I didn't particularly seem to appreciate its design (compared to say MIPS). Why do you think it's beautifully designed?
Linux apps are easily ported to other platforms and this is because the Linux kernel has an easy to port interface and all the GUI toolkits, along with the X Window subsystem are open source and have been ported already.

For example I use Gimp and Inkscape, irregardless of the OS. The experience is a little shitty on MacOS, but they get the job done.

It's also the reason for why Microsoft was able to provide the "Subsystem for Linux" on Windows 10, because the Linux kernel is much easier to mock than Windows is, being a much smaller effort than what the Wine project has to handle. Speaking of Wine, it has been doing a decent job of running Windows apps on Linux, many Windows-only games are playable on Linux due to it. And Steam has been using Wine to make games available on Linux.

iOS on the other hand is another matter entirely. First of all you don't have direct access to the binaries, without hacking the OS and Apple is doing everything they can to make that OS unhackable.

No, we are not talking of technical limitations, as those aren't insurmountable.
That's not a good comparison. An iOS device is not like a book shop. The iBooks application is. Nobody's asking that you can buy Kindle books in iBooks, but you can't even buy Kindle books in the Kindle app because Apple would demand 30% of the book. If you open the Kindle app on Windows you can buy books in there and Microsoft doesn't take a cut of the sale. People would lose their mind over this. Why is Apple different?
He is, all the time, which he shared on his Reddit AMA some time ago.

Might be worse than the actual sentence.
Did you take a pay cut moving from consulting to e- commerce company? Did it make your work life balance better?

Yes I agree that wanting more money can result in frustration as in Germany such salaries are not that common outside of management positions or specific companies, but I have some plans to fulfill - buying a Porsche; travelling the world; opening an NPO in a developing country, employing literate and teaching underprivileged, etc..

With the pennies that I'm earning, I wont be able to save as much, wont be able to retire as early as I would like to and, most importantly, the impact of final initiative won't be that high. So for me it is important that I earn huge..anyway, it's a choice of thinking, I'm happy with my life even now, just not quenched with the money I have..
Do I Eat Enough Protein? Most Don’t
Did you read the question? It has nothing to do with choosing the right market.

He asks if it will be hard for him to find a job and the answer is “no”, it won’t be hard. He is not asking if he should have made a different choice 7 years ago or if he could have had more savings in the bank.

And he is most definitely not asking about Stockholm, that was an example from _my_ life.
May I just take a moment to contradict the hysterical screams of "don't share the video"?

Yes, share the video. Share it everywhere! Watch it and learn what happens in a situation like this so you can take appropriate action to escape or try to thwart the shooter.

Because cowering in a pile in the corner definitely does not work. I can now guarantee that absolutely.

Especially you need to do this if you are in a group that is at heightened risk of being the target of a nut like this.

Share the shit out of that video and watch the shit out of it. It's far, far less horrible than stuff we see on prime time television and the movies, excepting, of course, that it was not fake.

Gaze upon all the closed doors that the shooter never even tried to open because he was in a bit of a hurry to get out before the cops arrived. Feast your eyes upon how the shooter never cleared his rooms properly and anyone could have hidden behind a door and grabbed his gun. Watch how he shoots in response to movement (so if you're trying the pile in the corner manoeuvre, keep still!)

Don't let those people die entirely in vain! Don't make it easy for the next nut job shooter who comes along! Learn from this and don't be an easy victim.

Watch the living shit out of this! Learn! Defend yourself! Be ready! This is not exactly a rare occurrence in the US these days.

(I'm not posting it here because it may get this comment deleted, and I think it is important to get this idea out there.)

On a related note: when your loved one dies, the answer to do you want an autopsy is always YES! Why remain ignorant and let their death mean nothing? Why not LEARN SOMETHING! Same with airplane crashes--you're darn right we need to know EXACTLY what happened.
> The average low for the month was 46.5 degrees […] The overall average temperature during the month was 54 degrees

I'm sorry what? Only if they were measuring in kelvin does that qualify as "cold" let alone "really cold".
> no such competition inside Apples walled garden

There is massive competition to the garden itself.
"We" as a culture, sure, but we don't use any of those.
Unable to Login Desktop Gold Account from Microsoft Outlook
> from climate change

You mean global warming.
It describes more accurately the situation we are in.
> as it protects its users from poorly implemented financial info handling and scams

And, just coincidentally, that 'protection' is very lucrative for Apple.
I had a friend who was cohabiting with a single mom of a 4 year old. He was always quite harsh on the kid I thought, very strict, he didn't hurt him but the kid was sort of scared of him (Because my friend was like 6'6, and looked like a mountain wizard)

So one time I was at the house alone with the kid. I turned my back on him for a couple minutes, he came walking into the living room from the kitchen carrying a butcher knife almost as long as his leg. I yelled at him got that knife away from him. When the mom got home I told her the story and she laughed and said 'oh Damien!' (kid's name was Damien)

When I told my friend later he sort of buried his head in his hands and said something about how hard it was and he was always mean to the kid and having to yell at him because basically he was the only adult in his life that kept him in check. Probably my friend should have found a better way of handling Damien, but on the other hand some situations are more difficult than others.
Geomarketing in 2019: Is it even right for your business?
If you get significantly better grades than your peers, you can land yourself a high income job, no matter how poor you grow up. Many US immigrants take advantage of this, and have achieved single generation jumps from lower class to upper middle class. I have known several, personally. Isn’t this the definition of meritocracy?
Pretty cheap actually for distribution channels.

If Spotify were selling their products through retail they would probably lose about 50% of their margins.
When we started the Theia project (theia-ide.org), we considered doing a large patch on VS Code as well. But we decided to go down a more sustainable approach by reusing the important building blocks from VS code (editor and vscode extension protocol) with stable APIs, because rebasing a large patch on a fast paced project is a PITA.

Theia is about to complete the VS Code extension support. At that point it will be the better option as it is architected to run in remote scenarios from the ground up.
Next time you should just assume someone has said it and move on without commenting.
> without making any contributions to that marketplace.

If Spotify was not available on the iPhone, because Apple wants to push Apple Music, I would ditch the iPhone, not Spotify.
Debate over using artificial intelligence in college debate
Here's another take. CS degree from a top university, spent my entire childhood doing Linux and Windows stuff. I only started taking my career seriously over the past 7 years or so. I'm in the Bay Area.

2012-2015: $100k, sysadmin
2015-2017: $100-150k, random projects
2017-2019: $150k, devops
2019: $200k, devops manager

I've only started to develop some level of self discipline in the past few years. Before then, I wasn't even working 40 hours a week. I'd have some brief bursts of productivity where I'd automate something or crank out a project really quickly, but most of the time I was messing around with new technologies.

Given what I'm seeing here, I think I'm going to start looking at working for a FAANG. It's always been my intention to retire early, and I could probably operate at burnout levels of productivity for a few years in exchange for being able to finish funding that plan.
You can signup for a Developer account and then execute whatever code you like on the device.

You just don't have a right to distribute that code to others. And that's one of the reasons why many of us like iOS since I can almost guarantee I won't have malware, viruses etc.
The same was said about the game developers using Pascal and C instead of Assembly, followed by game developers using C++ instead of C.

The industry always needs some pioniers willing to do the investment regardless of the naysayers.
I was actually very interested on the approach, until I realized that it consisted on fabricating awfully violent stories to scare little children as young as 3 years old into behaving properly through fear.

I am pretty sure this approach would be seen by our society as quite damaging to the children mental development.
My progression is probably more on the unusual side. Not amazing compared to folks with 1m+, but I feel I did the best so far with the cards given to me.

2006 - $6k - system administrator

2008 - $14k - webdev

2009 - $18k - webdev

2010 - $32k - swe1, enterprise

2012 - $48k - swe2, same place

2015 - $135k - swe2, relocation

2017 - $150k - swe2

2018 - $200k - swe4 (bigger enterprise)
Richard Feynman on Why Questions
I thought the name was an anargram to localhost, but it is easily contradicted with the absence of 'h'. Anyway, still a cool name though
Thanks for the strategy. I really appreciate it.
Time travel 20 years back on some USENET forum.

"When a game seems to be written exclusively in a high level language like C++ then there is almost always a massive framework underneath that integrates a lot of shiny C and Assembly libraries for the real heavy lifting."

Time travel 30 years back on some BBS forum.

"When a game seems to be written exclusively in a high level language like C or Pascal then there is almost always a massive framework underneath that integrates a lot of shiny Assembly libraries for the real heavy lifting."
3d modelling is a problem domain where performance is the most important feature. Without sufficient performance, the tool.is not interactive. And direct interaction with immediate visual feedback is the whole point of these programs.
But it's for the benefit of the customer !
That sounds very good. Thanks.
Not everyone is on FB and FB has been bleeding users to instagram, whatsapp and other internet services for a while now.

I could say the same thing about WhatsApp really; everyone is on it so why switch to Facebook?
> I don't think Mark ever expected to handle that kind of money. It just sort of happened.

That is probably true, and I wouldn't expect anyone to stand in the way of something that they had created and that developed such a momentum. How could one!

What I would expect, however, is (1) that person to recognize this momentum, (2) to recognize that this momentum is way above the person's head, and (3) to rent or hire the know-how necessary to deal with this.

IT Security consultants, legal experts, people with experience in running exchange systems, etc.

> One of the things usually needed to prove a crime was committed was that there was the intent to commit it.

There's no question of that, as the court found that he had tampered with accounts and manipulated records to hide losses.
The fraction doesn't matter at all in this case. Spotify is saying they're abusing the 30% to be able to push their own music application for cheaper.
I just hate such links which I could not read without logging in into nytimes :(
I presume it's because they're contracting? It's the way to cash out in software in the UK, I believe in most companies, contractors get to sidestep the HR/salary budget hierarchy, usually because the company is really desperate, and they tell themselves "they're only temporary, so won't apply salary banding on them"
For those interested in working with wire wrap: ebay/aliexpress/whatnot all sell old-new-stock wire wrap wire and the manual wrapping tools. Wire wrap works perfectly on standard headers, but the extra-long headers you sometimes see on arduino shields and such give you a couple more connections per pin: 5 vs 3 if I recall correctly.

It's a really nice way to work, you solder your components onto one of those pcbs with a lot of holes, solder the pins next to em, and from that point on you can wire, unwire, and rewire to your hearts content. Its great to easily be able to undo a connection when you make a mistake.
And are proposing it alongside C# and Core Guidelines compliant C++ for new systems software.
> The only time we have requested adjustments is when Spotify has tried to sidestep the same rules that every other app follows.

So Spotify complains that the rules are draconian and the response is that everyone has to follow them? If anything, it requires getting to a certain size to have your complaints addressed like this, even if they are hand waved away as consistently applied.
Nobody is talking about external combustion trains because you can count them on your fingers. The amount of coal they use is minuscule in the grand scheme of things. They also don't tend to run through inner cities.
> It would be good if the problem is unsolved and the interviewer him-/herself does not know the answer.

I think one-use questions like this must be are bad. It makes it harder to compare candidates, which is what you really want in an interview.
I'm really impressed - what a great project!
> Oh wow. You just described the existing imperative DOM APIs, haven't you? Inflexible implementation wasting everyone's time.

Existing DOM APIs are very simple, low level and unopinionated. A pleasure to build libraries on. That's what durable platform APIs should look like.

It is very easy to build virtual dom and importantly other DOM management paradigms on top of those low level APIs.

The same can not be said about virtual dom - it's a very opinionated, very rigid paradigm. I know because I built FRP UI libraries based on Snabbdom and on native DOM APIs. The latter is much simpler to deal with and more performant. Virtual DOM only works well if that's exactly what you want. It has no place among browser APIs, at least not in any recognizeable shape or form.

Regarding performance, the whole point of the virtual dom is that the diffing engine does not know which elements changed or didn't change. It gets a new virtual subtree and has to diff it with the previous one. The browser would be doing all the same diffing work, just closer to the metal. But we will soon be able to do the same with just WASM.
What I learned about VCS after raising a seed round in Silicon Valley
There’s clearly a difference between moving money from one internal balance sheet to another, and moving it to an entirely different company’s balance sheet.
They contribute to specific open source projects with a long-term view to undercutting other open source projects that are more independent of Apple. That is far from being "nice" or "contributing back".

Have you heard of "dumping"? What Apple does in its FOSS contributions is a similar thing - pour a ton of developer resources into critical FOSS projects so that they eventually control the development process and claim they are "contributing to open source", but in the end everyone that depends on these projects have to follow the direction that they set. LLVM/Clang is perhaps one exception, but even the Apple parts of that project's history have very obvious goals of undermining GCC since they hate the GPL's guts, counterbalanced by the legitimate need for a FOSS competitor to GCC that attracts enough non-Apple influence in the LLVM/Clang project to balance out the Apple influence.
Sound like the google outage post mortem (see https://status.cloud.google.com/incident/storage/19002)