skysight-inc/HackerNews huggingface dataset:
> 1. printf may malloc so don't use it in an out of memory situation. Though I think this problem is vanishingly unlikely these days.

I'd like to point out that FreeBSD's printf only does this if:

1. you use a lot of arguments (i.e. a compile-time decision, and quite rare)

2. use wchar_t support (also a compile-time decision and quite rare)

3. the output is to something that buffers/mallocs (i.e. stdio)

4. locale support does it for some reason (I simply haven't checked this)

Which makes it great to use in e.g. crash handlers. It's actually Async-Signal-Safe if you cut out the stdio bits. And it's available under BSD license... and actually a nice read (more on that in a separate post.)
Is there a point to this? I've long been wanting to implement hand-drawn styles for our interactive graph editing component, but one part that kept me from doing it was that I had no idea how to keep the strokes stable enough to not induce seizures when editing. At least I don't want everything wobbling around when I draw lines or move a node. And I couldn't find a good way to incrementally just roughen up subsequent parts of a stroke.
The Rocky Start for Apple TV Plus Doesn’t Mean What You Think It Means
That’s not entirely true - I think the official term is creative reconstruction -and basically once they have evidence then they go back and document all of the things that, with perfect hindsight, would have caused reasonable suspicion so that obtaining the evidence then becomes justified. So John Doe has been caught transporting narcotics, and with perfect hindsight we know that John drives a much more expensive car then his his income allows, so that raised suspicion and justified searching the vehicle where the narcotics were found. That’s how it seems to work more or less.
I don't feel this article has a very strong point or that it offers strong arguments towards why this non-retro future is unavoidable and / or better.

> "The status anxieties of Basil Fawlty types who either can’t or won’t adapt to a world that has little use for their prejudices are not a serious public concern."

This is exactly what Urban Planning is concerned with. If Urban Planning ignores a subset of people as they are not a serious public concern (hint: they are), is it really building a future for people? Or a future designed to optimize moving cargo (people?) around...
Suggested that certain statements from the current president and his cohort may, on occasion, lack credibility, presumably.
Either one is actually serious about security across the whole stack, or not.
There is a big difference between modifying the stack control registers directly and modifying general purpose registers directly.
Yes - on a personal level, I tend to avoid travelling to the US. For the same reasons that I avoid travelling to most of the Middle East or China.
But you realize that ordinary people don't have a large choice in this right? We can vote and vote and vote, but until the majority wins, and helps facilitate change, we are stuck with how people perceive our country as well as some of the harsh realities of living here.

I feel like you insulted me for the actions of my country. Isn't this how racism and hate is spread? I'm now not worth knowing and should be shyed away from because of my country...

Edit: I think the downvotes are a bit uncalled for. The OP said people should avoid the US because of its practices. The OP didn't say ANY country with these practices, China, Middle East, North Korea, Russia. It was a very general statement that has is heavily opinion driven.
Because for many years libco has supported all C89 compilers. I didn't want a dependency on GNU as on Windows, nor did I want to write an MSVC variant. There is no technical reason it cannot be inline now, especially now that we have Clang with a compatible asm syntax.
Wire Business Update
Can you show anything regarding the actual output of Snopes that suggests its editorial output has been compromised?
I strongly advise against using either since both are not only non-portable, but also break any compiler support for getting you warnings when you're using it wrong.

The Linux kernel style suffix extensions (cf. https://www.kernel.org/doc/Documentation/printk-formats.txt) are much better on the latter front.
Physical safety trumps most other things in our culture, rightly so.

So political activists realised they can brainwash or pressure idiots by claiming that any opinion, person or class of people they don't like creates "lack of safety". It's a kneejerk reaction: safety first.

The worst case I saw of this so far was an event organised by my workplace, for teaching programming. But straight white men were banned. If you were a white man you had to show photos from Facebook to prove you were gay. The justification for sexism and racism was stated as creating a "safe" and "collaborative" environment. Implication: straight white men are unsafe. Except when they're teaching, of course. Then they're needed, so stop being unsafe.

There's nothing new about this sort of abuse. Orwell focused on the way leftists constantly manipulate language in 1984 with the idea of Newspeak. Consider the contradictory term "dictatorship of the proletariat" or how every communist country calls itself a People's Republic despite not being a republic, nor run by/for the people.
I'd say it has definitely decreased significantly.

There's way more marketing posts and "tech news" which are nothing but barely informative opinion pieces around something. Quite a lack of quality content compared to years before.
I'm pretty sure there's an XKCD what-if on this. Or ought to be.
Sun...
Funny thing is, that although Google boasts about its racial and gender diversity, there is preciously little ideological diversity. And once people stray, they must be purged.
Numerous, repeated stories over the years. They keep claiming they've improved, and it's possible they have, but stories keep surfacing.

https://riskandinsurance.com/5-takeaways-from-teslas-safety-...
Elon Musk’s Solar Deal Has Become the Top Threat to Tesla’s Future
I found my time in China rather pleasant. However, I am aware of other less positive stories about traveling in China.
Striving for concise syntax for mathematical operations is a noble intention, but it's hardly a good idea achieve that by shoehorning changes into an existing language.

A language framework designed for extensibility has to be the basis allowing for the implementation of concepts such as differential or probabilistic programming, and it's not Haskell, i.e. we're not there yet.
I bought a good quality moissanite stone for an engagement ring for 2% of the price of an equivalent diamond and not a single person who has seen it has ever thought it was anything but a diamond. My wife gets compliments on it all the time. "What a beautiful diamond!" Every jeweler who has cleaned it has thought it was a diamond. The only one who could distinguish it had to use a thermal conductivity gun to do so. Buying diamonds for jewelry is honestly really dumb at this point. I effectively saved $20,000 USD going this route and no one is the wiser, execpt my wife of course :)
I know of FPGA based implementation of whole Amigas [1] and I do not htink they are particularly expensive. It is very likely that SNES reimplementations also exist already.

Edit: this [2] is a full system for 220 euros and in addition to Amiga it emulates a bunch of 8 bit consoles.

[1]: https://en.wikipedia.org/wiki/Minimig

[2]: https://amigastore.eu/en/358-mist-midi-fpga-computer-with-mi...
Kubernetes Production Best Practices
If public-sector work actually cared about reducing risks, then SRE would be huge in the public sector. SRE is literally about making rational decisions about engineering reliability in the context of risk-tolerance levels (i.e. availability/error and financial budgets). But it's not.

The kind of risk-avoidance that pervades the public sector (really, all sufficiently large organizations) is actually one of political risk avoidance. It's perfectly OK for systems to fail for reasons that were forewarned, because management's ass is covered. If something is working, then don't fix it, because all change is political risk.

This happens because ultimately, at the end of the day, public sector organizations are led by politicians. The "deep state" is not genuinely independent from politics - the attitudes of leadership trickle down the chain. No matter which policies are currently favored by the politician serving at the head, the process of advancing your interests is largely identical.
Instagram is testing a new video editing tool that copies TikTok’s best features
Why Diet Research Is So Spectacularly Thin
More training data required, I think, or else HNers like 4chan memes from yesteryear:

>frosted butts

>Bad: 0.1214 - Good: 0.8659
I work as an external examiner as a side gig, and while this is anecdotal, I see most educational institutions around here switch from java to python.

It makes sense too. Python is much more representative of what students will run into in the real world as long as JavaScript retains it current role, and python just might be the best general purpose language you can teach. I can’t think of a problem students can branch off into where python can’t be a good choice, maybe not an excellent choice in all cases but that’s really not the point.
I believe that was sarcasm ^^;
Very cool, thanks for the detailed reply - your JS tutorial looks great :)

Yeah automatic re-execution sounds like a weird design choice. Think I'll stick with Jupyter notebooks for now...
Not sure who downvoted you. But I agree 100% with this, he is a high value target.
Like those cookie banners where you CAN opt out, but you get a spinner for about 30 seconds while the website pretends it’s soooooo difficult to save your preferences...
I guess also employees are more likely to use 'feeling unsafe' as an excuse to get more control within the company.

So for example, if you want to get someone fired in order to take their position, and that person is already in a difficult position for whatever reason, you can just say "That person makes me feel unsafe" as a way to break the camel's back and finally get your promotion.
To your point about 2 I would say that the latter half probably applies to the majority of the working population.
Yup, that's a big one. A topic where it is very noticeable is when it concerns monopolies.
Negative post or comment about monopolies when Americans are the online majority? Expect to get downvoted into oblivion.
Posted when Europeans are the online majority? Up you go.

To be clear: this isn't a complaint about downvoting, I'm just pointing out the phenomenon. For example, its possible to go to bed with +7 and wake up to -4 (a rather stark difference) because a certain comment was posted during the European evening, and thus was 'exposed' to American HNers longer than it was to European ones.
I wonder if the rent freeze in Berlin will have any effect on Tesla attracting top talent.
I think the best way to support this kind of effort is to have more people know what FPGA is and what they can do with it ... So they can use the tools and tinker with this stuff. So if you're into this space just write more content : articles, how-to's, videos, tutorials etc.
Pleas file an issue at https://github.com/jgraph/drawio/issues. Can't recreate currently, but need more details.
Something about it does seem a little odd - and it's tricky to read between the lines to figure out what caused this (exactly as you say, because they've phrased it entirely within positive messaging rather than just stating the problem).

My guess would be that they feel (or some employees feel) that they've over-rewarded some early employees who are now motivated to stay at the company largely for the purposes of vesting stock options rather than to engage fully.

That said, there are a whole slew of really tricky things around options and compensation here. What's the comparative stock/option holding granted to executive/C-level staff, and are they under the same scrutiny to measure their performance and output?

Generally I think it's typical for there to be an order of magnitude difference between stock holdings for investors & high-level executives relative to even the first few full-time hires.

To play devil's advocate, it's 'understandable' that if you want to run the fastest, cheapest ship that you would simply want to get an employee in a seat, have them build/ship/market/sell the product for a few years and then have the employee move on if & when their productivity drops.

Continuing that idea (and I'd hope that Monzo nor many other tech startups are culturally this cynical) - it reduces the need for career growth planning, management expertise, and reduces the risk of pesky situations like the employee remembering bad company decisions or gaining too much access or influence within the organization, etc.

There are more successful ways to handle those cases (although they require effort from the company, and their results should be scrutinized by staff), and employers that want to retain knowledge workers will find ways to incentivize them to keep their staff on-board and effective.

There are few better incentives than continued business success (particularly where the employee can engage in force-multiplying their own success via building the company/product) and challenging technical or business problems.
Learn How to Locate Outlook Files?
I feel like it's an issue we will never have on the project I'm currently working on, all requests have a noticeable delay. I guess there's too many layers on the back-end. And maybe some requests are totally not optimised (like doing 20 select 1 elt instead of select 20 elts). And maybe there's no enough caching. Or maybe the thing we're caching are not those that matter… But first we still have to migrate off Internet Explorer (or at least support another browser).
The problem for the diamond mining industry is that they're getting cheaper.
Interesting, tired with:

I made cheese sandwiches for a week, here's what happened

And got: Bad: 0.0001 - Good: 0.9999

Not sure what to make of that.
As did 4G. Nothing new.
> Expecting to have the same rights as if using your own devices when using someone else’s device that they are paying you to perform work on qualifies as an indignity to me.

Every single second that you are working, you know that your employer might be looking over your shoulder. It's like living under a microscope. For me, this is an indignity. Having to work in such circumstances would probably drive me to deep depression.

> Do people in EU countries expect to use any other of their employer’s equipment for personal reasons?

Within reason, sure. I would say that the main value that underlies all EU countries (not that we realize it perfectly, or even get close to it, of course!) is that human beings are the most important thing.

I find mainstream American values increasingly inhumane.
The practice of psychiatry is filled with disasters, and has been more of a reflection of our culture than a science for much of its history. It is good of you to point out how there's been steady improvement-- we should remember that the field's utility can be improved.

I still would hesitate to recommend a psychiatrist's services to anyone without an extensive disclaimer, though. [In a way that I wouldn't with a general practitioner, or even a talk therapist.] It would be great if that changed one day.
I sign into chrome at work and home and my extensions are synced, so was this extension installed on personal devices?
Also Elon recently said he has started managing by rhymes. He said

"If the schedule is long it's wrong, if it's tight it's right. The best part is no part, the best process is no process."

All the hacking away of parts and processes pays off with speed.
My wife is a very pragmatic, smart and pragmatic person. But even then she couldn't be convinced not to get a diamond. She was happy skipping the honeymoon and reducing wedding expenses, but the diamond was a no go.

The marketing is too strong.
My fear is that when this is production ready already >80% of all iOS users will be on iOS 13
It was the unusual case of a competent son of the founder.

https://en.wikipedia.org/wiki/Thomas_Watson_Jr.

>Although the initiative, and as such much of the credit for the birth of the information revolution, must go to Tom Jr., considerable courage was also displayed by his then aging father who, despite his long commitment to internal funding, backed his son to the hilt; reportedly with the words "It is harder to keep a business great than it is to build it."
GP = General partner;

LP = Limited partner

GPs are the VCs, the ones wearing Patagonia puffer jackets. LPs are the actual investors, including pensions, endowments, sovereign wealth funds, high net worth individuals, and on occasion, larger institutionals like hedge funds and publicly traded corporations.
If management fees are 2/3 of the fund's income then the management is twice the performance fee. Given value of fund at start (f_0) and value of fund after a time period (f_1) then the value is:

0.02f_1 = 2( 0.2 ( f_1 - f_0))
f_1 = 20 (f_1 - f_0)
20 f_0 = 19 f_1
f_0 = 0.95 f_1
f_1 = 1.053 f_0

So management fee is 2/3 of the income if the performance is 5.3%. SPY performance is all over the place[0] but you can see years with 10% or 20% growth.

But check my math because I'm a moron.

[0] https://finance.yahoo.com/quote/SPY/performance/
You are always within three feet of a spider: Fact or Fiction? (2012)
Does that now include the ability to create and edit, or still just run? Having to rely on a third party to create and edit could be problematic for some purposes.

A comment from May last year [1] says "But that won’t include the editable notebook interface or the rest of observablehq.com - unlike Jupyter, we’re really aiming to create a community and cross-pollination of concepts and code rather than individual installations. We might eventually launch something that enables offline editing, but that’s a bit further out in the future."

[1] https://talk.observablehq.com/t/noob-can-you-run-your-own-ob...
[citation needed]

I've never seen this, or heard of it happening. (Except chocolate or strawberry milk.)
I'm not convinced that 'problem' is the right word for this. If nothing else it's going to mean less market for blood diamonds.
Here in India, when I was young, the milkman would bring his cow with him and milk it right in front of you. Just to prove to his customers that the milk was unadulterated.

Maybe its childhood nostalgia, but milk has never tasted as good again.
Flooding in Venice – In Pictures
Any particular thoughts on how to improve education with interactive technology? I am a teacher and hence curious on how it can be improved.
> I found my time in China rather pleasant.

Yes. As are some places in the Middle East. And so so many places in the US are great too, of course. It's just that the attitude of those states (and the most extreme parts of the population) towards foreigners make most trips not worth the risk.
wait, what happened? i need to know.
Ask HN: Security Strategy Buildung Blocks
An IT security strategy aims to ensure confidentiality, integrity, and availability of IT systems and information. This has to be traded off against economic and practical realities. What building blocks do you consider for a security strategy?

Examples are

- Deep defense. Consider everything hostile. No unencrypted traffic over the network. Spectre attacks matter a lot because you cannot trust other users on the host.

- Tough on the outside, soft on the inside (also M&M security). Try hard to keep bad guys of your intranet but trust your internal users. Spectre attacks don't matter because you trust the other users on the host.
Google gives you a phone I think...
Yubikey as a second factor for macOS login is still not possible, right?
Wondering what the disclaimer would be? And why wouldn't it apply to a talk therapist?
> democrat, when confronted with the article, would be forced to admit they are dirty rotten liars.

And there you have it. I think your objectivity might be a little questionable.

Reality has as known liberal bias.
I wouldn't even agree that it's not for beginners. The spirit behind openbsd and it's wonderful man pages makes it simply one of the best platform to learn about anything I'd like to do on a computer, it's correct and consistant. Be it sys admin or other. My main problem is that docker is not easily available on it : /
Data avoidance. Data that is not collected does not have to be protected and is automatically confidential.
How do dating app algorithms work?
Video Testimonies from Uyghurs
I'm also trying to understand racism in the USA. I'm very liberal and have been very involved with policy, politics, campaigns. The people I know and respect working on facets of racism refer to our current "racism without racists" as "systemic racism".

Sorry, but other than inequity and bias, I have barely have a finger nail grasp of what that even means. But I am working on it.
Or perhaps you and your wife are shallow losers?
Thinkpads are almost the System76 equivalent for OpenBSD? As long as you stay away from nvidia graphics, that is...
The reviewer shows lack of critical thinking and lack of understanding of how genes work when he goes on a political rant at the end of the first section. Armchair scientists have got to go.
Can a neural net predict Google's stocks if it goes up or down?

t. Google employee knowing what do with my stocks
The Brexiteers scoffing at "Project Fear" and crowing about the uppity Europeans begging us for our (UK) car business have been strangely quiet on this one.
Yep seen the same phenomenon. There really is too much meaning packed into that one number.
She was happy skipping travelling but not an indistinguishable rock on a ring? The marketing is too strong indeed.
Damore didn't condemn anyone, that's just a smear attack.
Great point. We also had a map, which ended up being crucial.

Contrast my experience with those of younger friends I have traveled with who will spent an hour on TripAdvisor prior to walking inside a restaurant :(
Trump’s Contempt for True Professionals
Let's price one of your engineers at $200k/year (ball park). 250 working days a year. So if your engineer spends 1 day cobbling something together, you could've paid for 16 months using this product.

That's not something your average person is going to pay $50/month for, but that price is just nothing to a decent sized company whose core competency isn't this exact product and it shouldn't be for a professional trying to run a business with actual revenue.
Ok this has been bugging me for a while. How does speculative execution roll back side effect like write to disk or send a packet on the network, when the speculation is wrong. At a guess there are safe instructions that can be run when doing branch prediction?
As far as the formatting part is concerned, if you just want to look at an implementation, FreeBSD's is extremely nice and readable:

https://github.com/lattera/freebsd/blob/master/lib/libc/stdi...

For FRRouting, we decided we want to use Linux kernel style extensions (like "%pI4"), so to get this in a portable way we imported FreeBSD's printf into our code. Since printf() isn't exactly "hot" code getting changed a lot, we considered the maintenance / duplication cost acceptable.

You can see the result here:

https://github.com/FRRouting/frr/tree/master/lib/printf

http://docs.frrouting.org/projects/dev-guide/en/latest/loggi...

stdio support is completely gone in our copy, WCHAR_SUPPORT is disabled at compile time, locale support is stubbed out/hardcoded to C locale. None of these matter to us. As a result, we can use this printf even in the SEGV handler. (That's only a bonus though, the main reason was extensibility on the format specifiers.)
GDP measures value added (final output). If you want to measure total value of new goods and services you should look at Gross Output (GO). GO includes sales to other industries (intermediate inputs).

For example, US GDP is $21 trillion, US GO is $37 trillion.