skysight-inc/HackerNews huggingface dataset:
> "The library mustn’t call malloc() internally. It’s up to the caller to allocate memory for the library. What’s nice about this is that it’s completely up to the application exactly how memory is allocated. Maybe it’s using a custom allocator, or it’s not linked against the standard library."

OP's approach will indeed work for most "minimalist"/single-header libraries, but, I personally feel it pollutes the API you're exposing to your users.

Depending on the specific situation, I may sometimes choose to expose a MODULE_CreateObject() and a MODULE_CreateObjectEx(custom_allocator, custom_deallocator).

Internally, MODULE_CreateObject() calls MODULE_CreateObjectEx(), passing the module's default allocators and deallocators (ie. HeapAlloc and HeapFree). This strikes me as a more balanced approach.

One caveat here, is that you must enforce consistency across usage - you don't want some API calls to use malloc() for allocation, whilst others use HeapFree() for deallocation, that would be a recipe for disaster.

To ensure that, I would often set the allocators and deallocators once, when the object is first created. They may be set through the object's initialization function, and they persist as part of the object itself.
>protection agains't direct Chinese theft.

Man........... A detailed patent with blueprints is like a call for action for an average broke and desperate factory owner
In a blow to e-voting critics, Brazil suspends use of all paper ballots
Saved, I'm planning on making a higher-level assembler that targets 6502, this would be massive help.
XCharge – Embracing the exciting EV era
The new Kubernetes Local Persistent Volumes feature is a perfect match for Kafka
> So what? Nothing about software development is 'natural'. I don't even know what definition of 'natural' you're using here.

I'm quite sure they're referring to artificial scarcity. Making copies is very easy, making games is very hard. Therefore it makes much more sense to charge for the development of the game rather than the copies. Making abundant resources artificially scarce is either frowned upon or flat-out illegal in pretty much every other industry.

> there are many games that would not exist without such a model

How do you know?
So wings could be as much as 14,000 kg (7 times the weight of the fuselage) and all those other bits total 14,000 together? I'm on a plane now and it's still hard to believe that each wing (without the engine) could be 3 times the weight of the body of the plane. But I guess it must be true. Thanks for the colour.
Retire before burnout.

After meeting many successful tech startup founders I realized, they retired before having their first serious burnout.
> GP gets 2% in management fees.

Only at the most senior level. Most GPs only get carry, and then maybe 40 - 60k a year of salary if they get any salary at all.

And for the ones that do get management fees, they pay normal taxes on that.
Some states are opt-in, California is not. The state is required to inform new parents that they can make a request to have it destroyed, but there is some contention that most new parents aren't told and/or don't understand. So, the state collects this DNA data in to a large database and then makes it available for law enforcement and also sells it to "outside researchers" -- whatever that means [0]. There's no consent here and not much awareness or knowledge of the fact that this goes on.

[0]: https://www.cbsnews.com/news/california-biobank-dna-babies-w...
See the lameduck section of this chapter of the Google SRE book. They do frequent health checks on all running jobs. If a health check fails they stop sending that job traffic. The concept of lameduck is you report yourself as unhealthy but are still available to serve traffic, you wait before all of your clients that were loaded balanced to you before you stop a sending traffic.

https://landing.google.com/sre/book/chapters/load-balancing-...

Health checks are part of GCPs load balancer. https://cloud.google.com/compute/docs/load-balancing/health-...
Hi I’m interested, I work for USDA I can work at any of the agencies possibly remote, I’m fully bilingual I have a MPA. My email ariettearana@yahoo.com
- number of times questions from a certain time span (e.g. from a given day) were tagged as a favourite,

- number of comments for questions from a certain life span,

- number of views of questions from a certain life span,

- number of replies for questions from a certain life span.

Perhaps it's me, but questions (on SO) could be indicative of poor documentation, or a lack of answers elsewhere. The latter, obviously, somewhat counter to popularity.
As a general point, please put a license on your contributions if you put them on github. Don't much care what it is, and I don't mind paying, but don't make me do a song and dance to see what your price is.

Especially if you are already giving it away to open source projects -- my bet is most people who see "call me" as a clause will move on, even people you are actually trilled to help.

AGPLv3 would be a decent suggestion, but even your own license wouldn't be bad either.
8 Key Learning Insights to Thrive in a Changing World
Dual-Pane File Manager for Mac, Windows and Linux
I’m interested I Have an MPA, work with federal government. Let me know 787-517-6858
I agree with this. That's why I avoid most web and SAAS platforms for things nowadays. I make an exception for things where I can get my data off their platform in a format I want pretty easily (i.e. I will use Google Docs because I can easily download the files as DOCX or PDF files) or the data I'm storing with them is mainly settings or preferences (I.e. Youtube knowing I'm subscribed to X publishers).

I've been burned a few times and lost data just because a company goes out of business, or I decided I wanted to use a different platform and all my data from before was locked in to this other proprietary system.

So yeah, if you're coming up with this hot new productivity/task software and I can't either download the data in an open format or at least use the software on the desktop, 100% offline? No thanks.

And in general I hate subscriptions unless I'm getting access to libraries of content, i.e. Spotify, Netflix, or it's just for updates. By that I mean I get the software and a year's worth of updates when I paid for the license, and it's mine, you can't take access away from me, I have it for as long as I want, and I only pay again when I decide I use the software enough and the updates are compelling enough that I really want to update.

Which is another reason why SAAS and Web apps don't really work for me, because they almost invariably charge a monthly fee and there's nothing to download so I just lose access the moment I stop paying. There are exceptions, but those are rare (mainly web hosting and cloud storage).

It's for this reason why I refuse to pay for Adobe Suite, because you only have access for as long as you pay the monthly subscription. Screw that, my copy of Adobe Illustrator pre-subscription still gets the job done fine thanks. I might have upgraded by now if they hadn't switched to a subscription model, but now I'm going to keep using that as long as humanly possible, then search for an alternative.
My school was extremely poor and underfunded. I was using Apple IIs in the late 90s. If my school had them I’m sure 99% of all schools in the US have at least early 80s computers available.

> I think the suggestion that the choice is between "learning to program" or "watching sports" is extremely reductive and not accurate to a lot of people's experiences.

I strongly disagree. That’s exactly what other people were doing while I was learning to master technology. We were all very poor. I’m not anymore, the vast majority of people I knew who didn’t use their time wisely still are.
A career decision influenced by Nassim Taleb
You could begin with 500 lines or less: http://www.aosabook.org/en/500L/a-python-interpreter-written...

It implements a naive, simplified Python VM in Python. Of course, that is only a very high-level overview. By necessity it handwaves a ton by just relying on the underlying Python (like GC). For a more in-depth look, you can check out PyPy's dev docs (http://doc.pypy.org/en/latest/). PyPy is an alternative to CPython, so it does many things very differently (some in a way that have never been done in prog lang implementation before), but the docs do make comparisons to CPython.
That was discussed on HN almost a year ago, with me being slapped either for my use of colourful rhetorics, ... or possibly divulging on their correspondence.

Basically things were like that: Google's side said something to the effect of "you are free to sue us, if you can" and a colourful comment on his income level. And after leaving a mail address of their attorney, they went incommunicado.
Solar Powered Vehicles-is it possible?
That's for the overall invasion that spanned more than a month ( AKA germans defending half of france ). I'm talking about D-Day ( 1 day ) incident where hardly any fighting took place.

It was impossible for 50K german soldiers to defend the beaches because germany had no air force and no navy to protect them. The allied navy and air force pretty much cleared out the beaches and the germans had moved most of their forces to the east. Only a skeletal force of a few thousand were left to defend the beaches.
International Commercial Experiments Service – ICE Cubes
I didn't say that "toxic = he'll produce bad code".

I said that the claim of those saying he's language is toxic is that his language poisons the Linux kernel community development.

And yet, I counter-argue, I see it doing just fine, and going from strength to strength, over the last 25 years. If there's any toxicity effect, I wont see it affecting much, if anything.

I could accept that it might have led some people who could have otherwise contributed away. But I don't see this having any substantial effect on Linux's development.

Perhaps it's even beneficial (since the outcome and results from Linux's development team is better than from any other Unix-like OSS OS, with their supposedly not toxic leaders).

If that freedom of language is all it takes to keep Linus happy, and stewarding the project as well as he has done all these decades, then so be it...
I didn't even notice it was a derivation of the Konami code until you mentioned it.
Maybe you don't need everything.
The headline for this article is quite misleading, clearly chosen by the editor as clickbait.

This is mostly an interesting article about the history of Canadian-American trade, with Freeland using a quote about Hitler's political strategy regarding presenting a black and white picture at the end.
I tend to agree with you, however google isn’t as straightforward as it used to be. Every developer and their mom has a blog these days, or a brand, whatever. Sometimes just cross referencing fundamentals and bonafides is a time sink.

That said, this question probably works better somewhere like Reddit programming or some IIRC where Elasticsearch hangs out. After going that route, it’s probably fine to poll here based on that research.
>"2) While certainly not an easy language it is a simple language."

I was curious about this comment, could you elaborate? How can it simultaneously be both "not an easy language" and "a simple language"?
Checking this out now. I've been looking for this in Windows for years now.
Fossil fuel coming to an end
Really? Last I saw, Tesla was blaming the driver. Their ostensible position (as well as other companies selling assistive systems) is that the driver has to remain alert and in control. They're a bit hypocritical about this but they certainly don't seem to be accepting liability.

It will be an interesting question once systems are on the road that claim to be fully autonomous--and no one's sure how this will work yet. If I'm sitting in a car that's sold (and regulated) as completely hands off I'm certainly not going to accept liability if it does something dumb and kills someone.
though surely recognising that some of his policies are heading in the same direction and that his followers espouse much of the same views are worth noting.

The historical directions are striking. while he's not yet another Hitler, the risk may well be there...
In viewing the page titled 'The Criminal is Disproportionately Likely to be a Foreigner', I am reminded of the "New Yorker's View of the World": http://i.imgur.com/A3JwoFr.jpg
Licensing is not that simple. From the Creative Commons CC0 page.

"Dedicating works to the public domain is difficult if not impossible for those wanting to contribute their works for public use before applicable copyright or database protection terms expire. Few if any jurisdictions have a process for doing so easily and reliably. Laws vary from jurisdiction to jurisdiction as to what rights are automatically granted and how and when they expire or may be voluntarily relinquished. More challenging yet, many legal systems effectively prohibit any attempt by these owners to surrender rights automatically conferred by law, particularly moral rights, even when the author wishing to do so is well informed and resolute about doing so and contributing their work to the public domain."[1]

As an aside, I have no sympathy for companies that would refuse to use software licensed under MIT because they need to provide attribution.

[1] https://creativecommons.org/share-your-work/public-domain/cc...
You mentioned Rust, but it wasn't included in your analysis. Would you be able to regenerate the analysis easily to include it? I'd be super interested in seeing trends around Rust.
> This is the brutal truth of how crappy our current patent mechanisms are.

Being granted a patent by the USPTO doesn't guarantee that the patent is actually valid. It's technically possible for them to grant identical patents to two separate people by mistake, and then the courts have to determine which one is valid.
>saying they would be ordered to clamp down on vile attacks against women on their platforms.

Oh that is easy to stop: women are now banned from our platforms.

Every government action or law will have unintended results.
Will you consider candidates from outside the UK?
The article doesn't go into much detail nor even explore all the possible etymologies. My copy of the Oxford English Dictionary suggests that the meaning of 'quiz' may be associated with the word 'inquisitive'.

Another theory is that 'quiz' derived from Latin "qui es?" meaning "who are you", the first question in oral exams in Latin in old grammar schools (https://www.etymonline.com/word/quiz)

It's quite interesting how many equally plausible theories can be made to explain certain words.
Disruptive 3D Printing Forces Companies to Reconsider Manufacturing
Seems like a wealth transfer from municipalities that don't borrow heavily to those that do.
In a "free service" the service company often makes money by selling ad space to third parties for displaying to users or by selling user information to third parties. In each of these models, the user of the service, who isn't paying money, is actually the product not the customer. Yet, many users believe that these free services are being run for their benefit free-of-charge, which is clearly a bad assumption to make.
Basic Natural Gradient Descent in Tensorflow
How to build your projects with JDK 10, 11, and early access on Travis CI
From what I understand it was not maintained anymore, and it was also hard to keep up to date lists of allowed or forbidden system calls for the binaries that had to be run under systrace. [1] [2]

Linux provide seccomp-bpf for system call restrictions. [3]

[1] https://marc.info/?l=openbsd-misc&m=146170224108205&w=2

[2] http://www.openbsd.org/papers/hackfest2015-pledge/mgp00009.h...

[3] https://lwn.net/Articles/656307/
It used to be that we had shortage of capital for large projects. So capital accumulation was incentivized over consumption. This is probably no longer true with some companies sitting on hundreds of billions of dollars, but the system persists.
Nice. Back in earlier versions of pledge(2), there was another argument that took paths to allow fs access on, as unveil(2) is doing, but it was never supported/implemented. (see http://man.openbsd.org/OpenBSD-6.0/pledge.2 for the old syntax)
>I just want to understand that given the mostly negative reaction that's here at HN to the npm ecosystem which is based on the same "minimalist libraries" idea, how is this different?

It's different in that in C you don't pull in 200 dependencies which in-turn bring in another 10+ dependencies each.

You just use 2-3 libs you need (and that they, in turn, don't require anything, or at best the POSIX standard libs), and that's it.
did we switch from prior art to first to patent a few years back?
Ah, it does it with 32bit operands but not 8bit. That must be why I missed it.
Modern statistical theory has adopted techniques of causal inference from statisical data. There are some questions about the theoretical foundations but the stats folk by and large have run with it and feel perfectly comfortable talking about causality in certain situations.

http://www.michaelnielsen.org/ddi/if-correlation-doesnt-impl...
Voters give clear thumbs up for reform of Swiss gambling law
Senior Mobile Software Engineer
At Dimagi, your work can take you literally anywhere. We're looking for talented, adventurous coders to dive in to one of our core mobile health platforms already affecting hundreds of the world's poor and underserved. Our team of top-notch coders has on-site experience in over 50 countries covering East Africa, Central Asia, South America, and the Indian subcontinent, and travel is an important part of every developer's experience. Dimagi's prioritization of global impact and employee growth and satisfaction over the bottom line makes Dimagi a continuously fresh, exciting, and genuine place to work, and keeps us all honest about what we're in it for.
If interested, please apply at https://grnh.se/5d995e671 the role can be based at Delhi, India or Cape Town, South Africa or Cambridge, MA-USA
> "Your conclusion doesn't make sense to me. Success is a matter of probability. Someone with a recognizable degree has a higher probability of capturing more of their earning potential."

Yes and no. Perhaps the degree is simply correlation? That is, to get a degree you need at least a certain amount of focus, ambition, the ability to start / finish something, etc.

The point is, using the degree here is a false flag. And it can be, as the OP notes, deceptive. Just because so many fall for it doesn't mean it's right.

Just the same, success is possible without a degree. How? All / most of the positive traits listed above.
Most OO languages discriminate between identity and equality (e.g. == vs .equals() in Java, or id() vs == in Python). The relational model nails it even more explicitly.
There are more English speakers globally than there are Mandarin speakers. The number of people that can comprehend some reasonable amount of English is even higher. The Mandarin number is going to contract as China's population declines, the English speaking population will continue to expand perpetually. By comparison, half of the EU can speak English, and that figure is climbing. Less than 1% of the EU can speak Mandarin. The same premise holds for Africa and Latin America. In Latin America, Mandarin is such a rarely known language it's difficult to even measure its use against Spanish, Portuguese and English.

Few people in the rest of the world are attempting to learn Mandarin, because it's a very difficult language to learn and it has a limited cultural projection. The use case to learn Mandarin is primarily restricted to a subset of a subset of business. More people speak English in Asia outside of China, than speak Mandarin.
>
Additionally, in case of two technologies (JQuery and Tensorflow) the variables regarding data from SO were pointed out as potential results of variables from Hacker News. The idea of Hacker News influencing popularity of technology on Stack Overflow is not so easy to accept (at least for me) as the opposite one, nevertheless, it shouldn’t be entirely disregarded.

What is so unplausible about this hypothesis?
An Ethernet cable doesn't break when it's bend or when it's accidentally rolled over with chair wheels.
What can you add to this discussion? 0 context is provided. It's not even a properly formed question. As someone who's familiar with Lucene, Solr and ElasticSearch even if I wanted to help I can't.

Sometimes posts are shit, and it's OK to call it out to hopefully improve this site collectively.
This is probably true in many more ways than I am aware of. Do you have any other good examples or resources to suggest?
Yasmin Green: How technology can fight extremism and online harassment
That sounds backwards if I'm reading you right. An idea can't be patented (well... in theory), but a new invention based on an idea can. Google apparently thinks they've got a new, non-obvious invention based on Duda's public domain work, which may itself have been patentable but wasn't.

That's one reason why companies rich enough to spam the patent office tend to do so. Company A invents X. If they don't patent it, then Company B can invent X+1, a minor improvement on X, and patent X+1 themselves. Now Invention X can't compete with X+1, so Company A invents X+2, an improvement on X+1, but now they have to pay license fees to Company B even though they invented the original thing! Solution: just try to patent every stupid thing.
Object-Oriented Design Principles Programmers Should Know
I made a blog post a couple years ago about doing this for a mud in Go using the FD passing approach.

http://austinhanson.com/slinging-mud-graceful-reboots
Maybe we should stop complaining about privilege and call it opportunity?

If you happen to have rich parents who pay for the best college, that's an awesome opportunity. Nobody should have to feel bad about taking it!

If you are poor, but happen to have a lot of spare time, that's also an opportunity.

Complaining about privilege is not actionable. Focussing on opportunities is a lot more constructive: We can look for ways to give someone an opportunity!
I still don't think you get it. Nobody is saying their books don't balance. We're saying the money they lend to you is conjured out of thin air.

I wouldn't be able to give you £5 that I don't have just because I also write myself a note saying you owe me £5. For me to lend it to you, it would have to come from somewhere. With banks that's not the case.
Nonsense?

#1 You’ve just discouraged capital investment.

#2 you’ve just agreed with my initial statement that there is a reason carried interest is taxed the way it is. If you tax capital more than labor, then by definition, carried interest is fine, because the people who pay it ARE THE PEOPLE DOING THE LABOR!!

Seriously, I realize that this is an emotional topic for many people, but you have to think through the second order effects. The first effect is pretty simple, but in this case the second order impacts have all sorts of ramifications.

I’m fine with people having their opinion and feeling that something is right or wrong - that’s healthy. What’s not healthy is having an opinion that is either self-contradicting, or made out of frustration.

Think through the scond order effects. Harry’s gave a great exam-let that showed just one simple version. There are tons more.
To expand slightly. Take one of the name and address sets. If the company has a valid EORI number, one should _only_ fill in the EORI number in the organization number field (filling in name etc would lead to error). Otherwise one should supply name, address, country etc. Depending on the value of another field, the name of a contact person is required, otherwise it's optional.