skysight-inc/HackerNews huggingface dataset:
There are plenty of APIs that have structs in their interface, although they are always passed by reference so that the structs can increase in size, while still retaining compatibility with old software, e.g.

struct APIFoo {
int a_field;
}

void do_something(struct APIFoo* argument);

later on we add a new field, and that becomes:

struct APIFoo {
int a_field;
int new_field;
}

For API compatibility you just need the source level field names to remain, and to remain the same type. But for ABI compatibility - e.g a existing compiled program - the fields must remain in the same location, so you can only add members to the end, and you can't change the alignment or padding rules.

What remains is how the API implementation knows if the argument is the size of the old api, or the new one.

The Microsoft API idiom is to have a size field that you initialize to sizeof(APIFoo). This means when you recompile you code against a more recent version of the API you'll get a modern sized struct. My feeling has always been that this approach is more fragile, as you can unintentionally increase the struct without initializing the new members. Apple APIs that need it tend to use an explicit version number, so you have to explicitly say that you know which fields you want to update - as an example you can look up JSClassDefinition (IIRC) in JavaScriptCore.

The other thing that Apple APIs will do is use a linked-on-or-after check: basically the macOS and iOS include metadata about the system version that a library or application was compiled to target. This is generally used to control legacy behaviour to handle cases where some internal logic leaked across an encapsulation boundary but the behaviour that was leaked is simply too awful to retain in general, and in the worst of worst cases code may include explicit tests for what the current application is (you can see a bunch of these in the WebKit codebase). Microsoft accomplishes similar tasks using (I think they're called) compatibility shims.

You are right however that the actual objects you get returned in macOS and iOS APIs are basically all opaque objects - looking at the JSC example, the actual API objects are opaque: so JSClassMake() takes a pointer to a JSClassDefinition, and returns an opaque JSClassRef that provides the actual API object you use to create objects.

As for C++: I would suggest you look at the nightmare that is IOKit. That's right, the kernel driver APIs are in C++. Because NEXT wrote that code in the 90s, when C++ was considered the perfect solution to all problems (e.g. before people really understood how hard C++ makes ABI compatibility)
Barnes and Noble Is Sold to Hedge Fund After a Tumultuous Year
in this case is laziness another word for efficiency?
https://www.jetbrains.com/pycharm/

It has a free community version
Are you joking? In every thread about FB besides this one, almost every single comment actively bashes FB.
This argument is stupid, self-centered, and entirely made up the author... "Without Google, Huawei's are more likely to have malware, and therefore important things might get leaked, and leaks are the most essential threat to national security as we all know."

No, common.. the reason Google thinks its a bad idea to block Android it's because the Chinese don't care. They just fork Android yes, and that's it. Congratulations, you brexited yourself out of the Smartphone-OS market in China. Where you once had integration and some influence, you are now removing yourself as a dependency.
Our cost of living in Japan – 2019 update in USD
> Ultimately, nobody is an expert on everything, and heuristic thinking has to take over at some point. Overwhelming expert consensus is a damn good heuristic to go by.

Sometimes.

I don't know enough about physics to even really understand the standard model. I still believe that it's pretty much true.

However this approach is a bit limited. There simply aren't experts in macroeconomics that could convince me of anything on an appeal to authority basis in that same way.

Ultimately, arguments are much cleaner and more convincing if you can simply and directly argue the point. For those arguments that are not so amenable, expert consensus may be a practical alternative, but at best it's a least bad choice, not something to be lauded.
>Learned as junior: Technical skills matter most.

>Understood as senior: Communication skills matter most.

I see this often, but it needs to be said with a caveat - the second line presupposes the first. Without the first, the second doesn't really matter (or it does but you're in the wrong career).
> you get to be at the ground level of these moral compass debates

Is this a euphemism for "test your moral fibre"? I had a similar experience with a company that later turned patent-troll - not sure I'd wish that on anyone (high stress, not rewarding).
Getting someone evicted in California might take 2 years in court. For it to be that hard, they have to be in residence for over 2 years. There are all kinds of shenanigans lawyers can pull to draw out such processes.
> I always considered myself one of the most humble people i know

That's a brag about being humble.
Keep up your passive aggressive persona. Have a nice day!
“Publish commercial apps for no fees”?

Processing payments costs real money. Who should subsidize it to make it free for publishers?
Facebook already had Facebook Credits around 2011-2012, but it was killed in 2013.
>but with better comments

Communication, especially with your future self, is an important skill.
> It's about whether they should trust their users and believe that the latter can take responsibility for their own choices, and figure these things out themselves.

You're just begging the question. Why should they do that?
It feels like such a tenuous argument you could argue the government should hand Google over to Apple to improve security ...
the lack of VC culture doesn't indicate a lack of innovation, because the VC industry is just one form of financing businesses, very regionally limited to countries that have huge homogenous consumer markets and operate on scale. Innovation in countries like Germany is traditionally distributed.

And the idea that GDPR is damaging to innovation is really just a fiction at best and deregulation agitprop at worst. Europe has not competed with tech giants before GDPR, and more importantly, even other US companies cannot compete with Facebook or Google. You can measure the lack of competition in feet as you walk away from the Google and Facebook HQs. VC money in the US is geographically concentrated in an area that doesn't even cover 1% of the map, the law has nothing to do with it.
>you get to be at the ground level of these moral compass debates.

That's the most generous way of phrasing it that I've ever heard... ;)
Because ISPs do not want to implement secure routing protocols.
So in the past couple decades, your ace in the hole is Dota? Damn, that's an entire game (that was mirrored from a w3 mod) Also: gen z gives absolutely zero shits about Mobas, so that's kind of a lost cause.

What else do you got? Or is it just DOTA in two decades, that z gives no shits about, while the main moba demo ages out of gaming.

And are you serious? "we can't compete with other games so we don't" This is exactly the kind of bs I'm talking about.

Bunch of one hit wonder 1%ers who have been been sitting around in a vacuum playing widgets over at club valve over in bellevue, they haven't grown at all since the orange box.
Well, it's very clear that what the developer was trying to do was not "good enough."
I fully agree. I started programming in JavaScript because I only had access to public computers, where I couldn't install or even download binaries, but I could write a .html file and open it in the browser.

Ubiquitous access to these tools provides wonderful opportunities, and the drawbacks are minimal.
This is one thing that confuses me. Why Keras is still a separate brand? Why everything isn't under just tensorflow namespace instead of having to do tf.keras all the time. I really wish tf just had one API and just one thing to learn.
this is in fact the exact argument used by AT&T and the government repeatedly during its monopoly. See The Idea Factory- the heads of AT&T and Bell Labs had "secret schedules" where they attended meetings at the NSA, Pentagon, etc, regularly and shared internal details so that the intel agencies could use the phone system to maintain security.

that google is taking on the AT&T mantle should be no surprise.
Cool story. Do you have any peer-reviewed research that shows that the earth isn't warming at an unprecedented rate or should I just trust your "common sense" on this one?
Didn't Kik try and do something similar as well and came under fire from the SEC?
I work in Ad Tech. This is on target. [..] People DO NOT click on ads

Was there ever a serious belief that people clicked on ads willingly and intentionally?

I mean a real serious "people want to click ads", and not a "of course people click on ads which are relevant and helpful - as all adverts always are, nudge nudge wink wink"?
This, and Conway's Game of Life, are my go-to for learning a new programming language, and I've written about 10 implementations of each.

They're in this nice, happy medium of "easy enough to not get frustrated" and "hard enough to not be trivial".
But that would only be an issue if the burgers are consumed in the state of California.

But more seriously, I'd like to see more food items available that aren't trying to imitate meat. For example there is a Samosa with chickpeas dish that they do in my company's cafeteria that is really good, contains no meat, but I don't miss the meat in that dish. It has a good mouth feel, gives an appropriate amount of energy, and fills me up throughout the afternoon. Whereas a dish containing mostly steamed vegetables (such as broccoli, carrots, and peas) or a salad typically fails to satisfy (unless you put cheese on the broccoli, or add ham or egg to the salad).

Now I can feel mostly satisfied by switching to primarily fish based meals, along with free range chicken (the ones that came from my grandma's chicken yard were really tasty). And I personally see that as more ethical / sustainable than consuming other mammals.
Back when people used phone books instead of search engines, businesses would choose names that would be listed first alphabetically[1]. Even now, there are three unrelated AAA Plumbing businesses within 10 miles of me.

1. https://www.chicagotribune.com/news/ct-xpm-1992-11-08-920411...
It is nice to know you are fan of David Foster Wallace. I first came across This is Water about 10 years back, shortly after he passed away. It was an article that appeared on New York Times. The article described what an extraordinary writer he was. The I read This is Water. It was jaw dropping. I have read that essay several times after that. I have remembered the contents of that article several times when struck by melancholy. I was deeply moved by that essay. He has written This is water with such deep understanding of the human condition and with such empathy. I have wept for his untimely death. I always wonder, how does he was able everything about the humans in slow motion and with such high resolution. Amazing. No words. We are worse off without him.
The Red Pitaya STEMlab is a considerably more expensive device, but it's more than just a toy. It has two 14-bit, 125MS/s ADCs and DACs, 16 digital GPIOs and gigabit ethernet.

https://www.redpitaya.com/
That's only intended to be a band-aid until you can do a reboot without heavily impacting users. Say your monthly maintenance isn't for another two weeks, but there's a kernel vulnerability that's very worrisome. You may be able to kpatch it, but you do still need to do a reboot later.
Japanese banks have a habit of extending additional financing in order to avoid having to write down their assets even when borrowers are effectively insolvent. Extend and pretend, kick the can down the road.
Funnily enough this kind of advertising has an adverse effect on me: Showcasing your product as sponsored content at the top of the search results at Amazon, as well as Google or the App Store, suggests that this is a subpar product that needs to pay to be relevant. I’m not sure how common this attitude is, but by now I subconsciously ignore these ads.

Of course there are also brands and products I know and like, which appear in these ads, but I see them as an exception, as a shining pearl in a sea of mediocrity, and continue to regard sponsored content as a strong indicator for lacking quality.
If you're interested in algorithmic drawing, https://turtletoy.net is a nice little toy to play around in and it uses the same primitive operations as most plotters (pen up and down, move to coordinate). One popular plotter is AxiDraw which can be controlled in a multitude of ways including an Inkscape plugin and a REST-API.
> What if the person being ordered to hand over the password says "I forgot"? How do we know if they have genuinely forgotten the password?

I'm curious what case law there is there for this situation.

I change my passwords fairly frequently using a password generator, so if I don't use the password regularly, I forget it quickly. If someone brought me an old laptop of mine, it's more likely than not I genuinely wouldn't remember the password for it.

Also, there's the situation where someone isn't sure if the order to give their password is legal, so a court battle ensues for a year, but then even if they lose at the Supreme Court, what if in that year they forgot their password simply because they hadn't used it in so long?
32bit PPC ran on intel macOS, which is probably harder (it's basically a problem of how you map 32 registers onto 8).

The difference is that after a while Apple is willing to deprecate things. Versus a lot of open source projects that don't guarantee any stability at all, even across minor version increments. That's the problem that makes them dangerous for platforms like macOS and iOS to expose them as public API (intentionally or unintentionally - my understanding is for instance that the system openSSL was accidentally exposed publicly - and that took most of a decade to remove from the OS, e.g. most of a decade of shipping an increasingly old Frankenstein branch of openSSL)
There are certainly disadvantages. For a start, it keeps freezing my VS code :D

But Modders also have a hard time adding features if logic for all items is in a single function. This seemed exactly what OOP / interfaces were designed for.

Also I'd love to see Terraria's actual source code. The de-compiled versions hat a ton of stuff like

> if (num1 != 109 && num1 != 110 && (num1 != 113 && num1 != 115) && (num1 != 116 && num1 != 117 && num1 != 118)) return;

or

> else if ((int) Main.tile[i, j].type == 19) Type = 94;

20x in a row, with obviously different numbers. Hope the actual code was more readable and just lost a lot in translation. But many more readable styles should be visible in IL (enums, constants, etc). There might also have been some obfuscation (can't remember), but couldn't have a strong one since names were preserved.

But yes, there are also advantages to their style of code. And in the end they delivered a product and that's all that counts.
I don't understand your point. No one is disagreeing about the contribution that big finance has made in shaping our current systems. FB raised money, got listed. There's tons of financial system which helped them and help everyone from invoices to making a trip everyday.

But that doesn't mean something better can't come up. People don't hate banks for the monolith but their monopoly like nature that had stifled innovation and displayed outright criminal behavior. Don't forget 2008 recession was triggered by banks. Recent libor scandal..

About the technology investments. I would argue against this. Banks are more regulatory and defend my turf play than a technology play. Have you ever worked for a bank or any finance facing institution. There's layers and layers of clutter. Whole party is one big monolith, sucking money from places that it doesn't deserve.

Biggest benefit banks provide as in traditional banks is the account and trust that, that money in the account will remain on the name of holder. That trust as well was breached multiple times during withdrawal limits and freezes.

We all need better alternative. May be FB won't be the one. May be bank themselves will become more open and lean. But someone needs to push. There's a lots of money to be made and quite frankly FB deserves it for trying.
I always felt that virtualenv is vastly superior to most other package managers. I think comparing it to Rust and .Net is a little unfair, as these are compiled languages and have different deployment models.
That could have been it, but when they pivoted they had a very complete beta product. Probably more to do with investor pressure or something along those lines.

I think Blue Mars was started when there was a huge surge of them after Second Life took off. Even Google and others were developing something in the space.
Of course, if someone physically shows their genitals, the situation is about the same.

That does not mean that it's a light situation. In Canada, that is a criminal offence.

Indecent acts
173. (1) Everyone who wilfully does an indecent act in a public place in the presence of one or more persons, or in any place with intent to insult or offend any person,

(a) is guilty of an indictable offence and is liable to imprisonment for a term of not more than two years; or
(b) is guilty of an offence punishable on summary conviction and is liable to imprisonment for a term of not more than six months.
If universities are producing graduates who can't advocate for themselves, can we fix that while they're still in university? Or maybe even secondary/primary education?
I mean

When I try something new, usually what I learn is not that my assumptions were correct, but the more interesting part is where my assumptions were wrong. This usually only becomes apparent either when writing the code, or in some of the more interesting cases, when debugging.
That last one seems to be going the other way.
FedEx to End U.S. Express Business with Amazon
Looking at the bigger trend, it feels like recently MS is doing everything it can to engage developers. imo Apple is doing the opposite with bad keyboards and the continued refusal to give developers a reasonably priced, expandable box like the ancient G models or the old cheese grater product line.
As an atty I am sure you are aware folks can sue and typically he with the most money wins, regardless of law (see:OJ)
Review on YouTube: https://youtu.be/7xwFEvJxv40
Author here. The companies listed are by no means meant to be an exhaustive list, just illustrative examples. As long as Experian buys and sells consumer data (and in the Australian market, mosaic segments are often used and widely known) they'll be relevant to the point. I could rattle off a good two dozen names of AdTech companies, or companies making AdTech plays as a minor element of their business (like gosh dang adobe lol) and not even scratch the surface of the industry.
Yes, but HN is a zero-distraction distraction: It's a workplace procrastination tool that doesn't let the user veer too far from their work. You can see this in the anti-procrast settings and the lack of any advertising here (both of which are very nice features I use regularly). If HN had notifications it'd lead on a slippery slope to HN being a social network instead of a news aggregator, and I don't think anybody wants that.
Same reason mail-in rebates used to be a huge thing on physical products.

They're well aware that ~50% won't bother, so that $10 discount per unit effectively becomes a $5 discount.
Activists ask SF Pride to ban Google after homophobic YouTube dust-up
Line numbers might not stay static. Perhaps referring to a particular function or variable might be better, as well as explaining what it might impact? That way, one can jump to the location, then inspect it to see if the potentially-impacting behaviour still exists.

Definitely useful in the case where it's near-to-impossible to DRY up something, though. Sadly, the limitations of an industrial C environment have led my code to contain a lot of annoying 'If you add something here, make sure to add it to X struct and Y function' comments.
Same with mobile app titles. Back when I wrote iOS apps, our marketer/growth hacker advocated changing the app name to a ridiculously long string of keywords. I thought it was the stupidest idea ever but we did it and it had an immediate and sustained positive effect on our app’s AppStore ranking. Turns out I was the stupid one.
This is codified in law and society has adjusted to it.

Example : Driving used to be considered a right, it has since been reduced to a privilege that gets revoked simply by accusation
Exactly. A blockchain that is fully controlled by one entity is just a database.
Do you imply that I should be also mad at the depiction of heroic Soviet firefighters in Chernobyl? I think, to the contrary, they are like the most brave and heroic Soviet characters I've ever seen in a western movie.

My point is that the West was able to make a more humane and relatable movie about USSR than what all modern Russian propaganda tried and failed to do. This series is shattering the "us vs them" mentality the Russian media tries to instill.
As you get older, the thing you unlearn is that there are no absolute truths.
>Corny as hell, and we can just film it on a greenscreen in LA.

Or the "Vomit Comet"
8th week is so early the risk of loosing the embryo naturally is still very high. I know more than one couple that lost embryos at that stage - my mother in fact, multiple times. So that blob of cells is very much still in the “might turn into a human” state.
I feel like you maybe didn't read the post? For example:

>tabulating machines were housed at the concentration camps. Each prisoner had a card that detailed their health, skills and location as prisoners of good health were transported according to labor needs. Finally, the card also indicated the way the prisoner died: by natural causes (which would include being worked or tortured to death), execution, suicide, and special treatment (including gas chamber).

The first part of the post details how the cards and machines had to be coded or prepared by IBM itself (or its subsidiary). It wasn't possible to just add "fields" to a card.

The machines weren't general purpose like the computers of today. Everything had to be setup specifically for the precise problem being solved by the manufacturer.

The post also goes into more detail about how the Nazis wanted to know if a person was even partially Jewish by ethnicity. Regardless of whether or not they were practising Judaism.
Haiti to Be Hit Again with a Man-Made Disaster
Phones are substantially more complicated than desktops. Linux doesn't even work decently enough on Laptops for a lot of developers. It's not going to be a pleasant experience on a phone for a normal user in the foreseeable future.
Kik's problem was they advertised it as an investment and promised large returns, but failed to register the ICO with the SEC.
The question I've always had, is it the substance that causes the behavior, or is it the people prone to the behavior that is more likely to choose the substance?