skysight-inc/HackerNews huggingface dataset:
This is a great writeup on what's possible with undefined behavior https://devblogs.microsoft.com/oldnewthing/20140627-00/?p=63...
Kinda depends on project. Accepting features willy nilly can make a mess both ou of codebase and project direction.
No, not everyone sane. Rather everyone sane who has been bitten enough by these issues to use such rules. Everyone starts out at -O2, because understanding all the other flags and their implications is super difficult. As long as the insane setting is default, a large percentage of programmers will be using the insane setting. Arguing that they should have flagged their compilations otherwise is about as useful as pointing out that people shouldn't write UB in the first place.
Foxconn offers staff US$1,400 to leave after iPhone city violence
There's zero chance they are living alone anywhere in London for £600, let alone zone 2.
Or, more likely in my opinion, they're having issues keeping people under control with the economic downturn, and covid lockdowns are the tool they're using to quash dissent. Seems like an irrational strategy, but totalitarian regimes often become victims to their own lies.

The USSR showed us that enforcing lies on your own people eventually leads to bizarre, irrational behavior from the government when it tries to operate within a fake framework of lies.
There are multiple examples from different Tweet authors confirming that crowds aren't being shown. Can you post anything (other than unfunded claims) to refute these?

Edit: my comment can come of as aggressive, but I'm genuinely curious, didn't mean to attack you
Are you saying this is false and crowd shots are still shown? Are you in China right now?
They were always nice about it but it was also always a stark reminder that my gf was not really a full member of "the group"

We're married with kids now and that group has all gone off in their own directions, so no real harm done.
Yes. Southeast Asian here. Things used to be very bad - money was power, money bought money, corruption was rampant. Technology has actually evened things - chainsaws, bread, tractors, up until the fintech, e-commerce, and so on today. Violent race conflicts have gone down. Corruption and abuse is significantly more difficult; no longer does one political party own all the media, the CCP.

I think the Western world has gone through a bit of a bubble though. Throughout history, full time jobs are not the norm. Corruption-free politics are not normal. War, pestilence, famine, death are normal cycles of life. One does not simply have 30 year plans; houses get bombed, companies die, low risk investments are an outlier. Black swan events should be expected. MAD is a Nash equilibrium, but it's not stable - eventually an irrational person will lead a nuclear country.

I think we're going through a correction, not a decline. Nuclear policy is likely the scariest thing now.

Climate change will affect all of us and be the main source of black swan events. SE Asia actually takes it very seriously - all three major political parties in Malaysia proposed it within top 5 priorities. That may be because rising sea levels affect us severely. But if some developing countries can take it seriously, I expect the whole world will be on board with it as well.
Fresh environment – Docker container with various developer tools pre-installed
As a manager I typically let the employee lead the 1:1 discussion and we are agile so status of work isn't really useful since that's done at standup. What would your ideal frequency and topics be for a 1:1? Do you expect productivity or performance for software engineering to have measurements?
You can confidently bet that James Patterson's team is already using GPT3. For better or worse, he has been the Henry Ford of novel production and modern technology like GPT3 is exactly the force multiplier the team would want to adopt.
Now look at a large code base, with lots of checks for inputs. With O0 it's usually straight-forward to read, but with heavy optimizations applied it can become a real nightmare. And in that scenario all it takes is some reordering of the UB before the DCE pass can prove the code to be unreachable (which might not happen on the first DCE pass, because the value analysis/constant propagation didn't work its magic, yet). Also static program analyses can be both forward and backward.

I'm afraid it's not nonsense, that's why it's a common misunderstanding ;)
Yeah, surely in some hypothetical future it's not that much work to simply go back to plain JS from TS if they're worried about some sort of lock-in. Seems like you might as well just write it in TS then if it's relatively trivial to eject if needed.
Can anyone comment on the reliability of a setup like that? I've used OpenMediaVault for a few years and I've had terrible network reliability. I believe that it's basically just a GUI on top of those packages, eh?
Still no warnings when the compiler does something unexpected on an UB. Major compiler bug in most implementations.
I agree that it is completely possible to write slow code in Rust, but the idea is still that, in general with a relatively skilled developer, a compiled langage will usually result in a faster program than with a interpreted or jit-ed langage. So, assuming you are competent in said langage, you might as well write it in your compiled langage of choice, assuming performance is one of your major priority.
Maybe it’s similar to the west. The majority of people were happy with the restrictions whilst a vocal minority was against them.

Over time more and more people join the vocal minority.

Having been a part of the vocal minority myself, I feel deeply sorry for the Chinese people who see through it and want it to end. I literally could not continue living like that for 3 years.
Dreamcast keyboard and mouse helped. You could actually host your own PC Q3 server on same version as DC and play against PC players if on same Q3 version.
Court rejects San Diego school district's Covid vaccine mandate
So you saw one comment about the situation in China, spoke to a Japanese man about an unrelated topic, and now have an opinion on East Asians?
Ya I am also perplexed about how people keep suggesting using jsdoc instead of TypeScript. Is it just to avoid the tooling?
yeah, no shit, I defer to someone who has spent their career studying the area.

That this even has to be defended says more about your mindset than any damnation of the person in question.

And as I've said already, I don't recall, nor do I think it's worth the time or the effort to figure it out, certainly not for you.
Any discussion on why this was an inhouse training? Why not just buy a couple of udemy courses for everyone? For that matter they can just give you a youtube playlist and then have doubt solving sessions. Would have been cheaper than paying an engineer for half a year.
Very inspirational.

“Massively increase your productivity on personal projects with comprehensive documentation and automated tests”.

Is the possibly more enticing subtitle, for people who don't automatically click when they see the simonwillison.net doman, but frankly it goes beyond that to something more like "Getting Things Done for open source side projects"
How close is this eruption to settlements and/or telescopes?
Exactly, and BigInt fits this role perfectly.
^ link or it didn't happen.
This is really cool, I think there is a huge opportunity for analysis like this to allow drugs that are currently off market because some small percentage have bad side effects but it works for others. If we can start knowing who drugs will work for and who they won't it could be a game changer for our existing drugs, let alone what we can create in the future
Sounds like you were primarily having trouble balancing focus with the content side of making notes. With many people, the challenge is actual mark making. We need to intellectualize writing words the way I've heard some people with autism need to intellectualize ingesting and responding to social queues. That muscle memory just doesn't connect the way it does for most people... it's like I'm using the mental process for drawing and don't have some parallel, more automatic mental process for writing. For me, typing is an instant cure for that.
This was demonstrated as a feature of the AppleTV … on stage no less… however I’ve never been able to get it to work so I’m not entirely sure what’s up with it beyond the original demo that I can’t find a video link and time stamp for. Pretty sure it was the days before apple put the keynotes onto YouTube but I’m sure someone with better memory may know the exact presentation and which part to skip to.
For this specific kind of UB yes. I thought parent meant all UB in general.
Filtering takes two clicks with potential scrolling in between actually, not that it makes a big difference. You probably have multiple kinds of issues you care about, and multiple kinds you don't care about, which takes significantly more work. But this whole discussion about how many clicks it takes to do what is really off topic, the issue is with the lack of a clear separation, and the fact that all the issues are bunched together by default -- that filtering out the issues you don't care about takes any clicks at all -- contributes to that.
I've always regretted not getting skies. Now prices are crazy.
Beyond Meat is struggling, and the plant-based meat industry worries
The Apple TV does this (reversing and turning on subtitles temporarily) if you ask Siri something along the lines of „What did they say?“.
The paragraph directly following reinforces the statement, doesn't discuss it, and implicitly widens it to all women. The rest of the text repeats the "x cents to the dollar" meme. I don't think that was bad faith.
Ambitious!

I've always been curious about the trade-off between "second-system syndrome" and "learning from experience". Do people have examples of rewrites that went well and those that didn't?

I can think of several that didn't go well (and in fact ultimately decided as tech lead at my last place not to do one for a big chunk of our code that I was on the fence about, just because of that), but can't think of many that did go well.

Maybe Go is kind of an example where the authors used all their experience to build something new, rather than just a straight up rewrite. BurntSushi's ripgrep is an example of someone else doing a rewrite that worked out pretty well. Others?
I didn't get that impression at all, I think this comment is revealing more about you than the person you're responding to
> This is a lose-lose situation for the compiler: it can warn, but people will find the unnecessary warnings annoying and turn them off, while if it doesn't warn people will complain about perceivedly bad optimizations.

This could still be greatly alleaviated with the use of asserts: A compiler could default to the most conservative set of assumptions for an input value - e.g. that a parameter of a global function assumes the full value range of its type - unless the programmer provides more assumptions through an assert statement.

In debug builds, you could compile those asserts to actual runtime checks, so the program can be appropriately tested. Then, in production builds, the asserts would simply be skipped.

The second improvement would be warnings about "nonensical" statements (from the compiler's POV) that will be optimised away. E.g., many of the most egregious examples of UB are from code where the programmer inserted a bounds check to protect against UB at another location - and then the compiler optimized away that same bounds check as a "nasal demon" action, caused by the UB it was supposed to protect against. In those cases, it would be useful to warn "hey, this bounds check can never fail because that other statement implies that either we're in bounds or there is UB. You might want to check for UB here."
I’m not a Rust developer and I’ve been waiting for it to bake a few more years before playing with it.

However, I do appreciate the desire for developers to use languages that allow for more performance and fewer bugs, catching more bugs at compile time.

Even small improvements are important.

Ideally, poorly written, but correct, code in such a language could be refactored more easily in such a language.
Everything get's blamed on the west. I was just reading on facebook about the lockdowns and even the replies are blaming the US for covid and so its the US fault that China has lockdowns.
The companies I have worked at did nothing to train people to become better. It was all about being lucky to have a manager or lead who mentored people. A lot of people have these programs on paper but I haven’t seen them implemented effectively.

I strongly believe if you want to make it in this industry you have be self motivated to educate yourself and develop relationships with potential mentors. Nothing will come from your employer.
To use the term "10x" and have it actually mean something requires recognizing that's it's an exceedingly rare phenomena.

It's one of those things that is so rare that there is little in common across actual 10xers. To cherry pick any aspects of "common" 10xer backgrounds and try to apply these to "grow" a 10xer makes about as much sense, in the business domain, as finding out what Warren Buffet eats for breakfast and then doing the same expecting some kind of results-- or maybe wearing turtlenecks like Steve Jobs (people have tried).

It it far more realistic, I think, to simply strive-for and train-for valuable skills/capabilities, to seek out effective people around you and learn from them at a "ground-level" and solve problems collaboratively and thus learn their approaches, developing an intuition of how to proceed against challenges.
This works best if you don’t care about security and aren’t planning to stick around at the same job. If that’s not the case, there is a real cost to a regular stream of updates required for features you don’t use - especially when there’s some kind of major upgrade like Node has had a couple of times which forces everything to update, and you get some period where not all of those dependencies have shipped updates or backwards-incompatible changes are required, and you might have to help get changes made upstream or fork something.

Better hope no security exploits are found when you’re in the middle of that process…
Every web site for a new programming language should include a snippet of code on the front page. Failure to do this should be punished by exile.
Twitter data leak exposes over 5.4M accounts
Maintainers obviously have to go through and re-label or move issues as appropriate. The situation is the same now; if someone creates an issue labelled "bug" where they ask for a new feature, you have to go in there and change the label to "feature request". I'm not sure I understand why you think that matters in this discussion
That was a gem of an article. I wish I had read something like that years ago.

Last year I started to break up Common Lisp code monoliths for personal projects into small libraries that are installable with Quicklisp, with applications also Quicklisp installable that are smaller by reusing libraries. I have started doing this to a lessor degree with my Python side projects and in the last week I set up a personal library system for my occasional Chez Scheme projects.

I bookmarked the author’s two templates for new Python library and command line tool projects.
While I agree with all you said, I hold the belief that intelligence is mostly determined by birth (probably genes).

So that may be a limiting factor even when your work ethic is high.
And environment. If you have to attend meetings or don't have an office with a door you can close when you need to, it's a lot more difficult to do deep work.
The word "reward" here is doing some heavy lifting, especially since the above comment don't include it.

Who is doing the rewarding and what is the reward? Is getting higher wages for doing longer hours at work a reward? Are vacation days rewards? Is it a reward to get higher paid if you do a night shift compared to a day shift?
And if each of those outcomes had a percentage associated with them, I suspect that most undefined behavior would cluster around less than 5 outcomes matching the expectations of even the most junior C programmer.

The bunch of amateur bards trying to mythicize undefined behavior really need to find something better to do with their and our time…
We're re-litigating that other thread... but the function in the other thread had a conditional (trying to check for overflow after the fact) which would never be true, regardless of x. And it could statically prove this.

And that proof, the compiler then decided to use to remove the code, ignoring the red flag that the programmer undoubtedly had tried (and failed!) to achieve something with it. I would have preferred a warning here. I don't turn off "condition is always true"-type checks.
I think project managers might freak out at `PROJ-3eff1a` but maybe you work with more technical managers than I do. How do we link to these issues, I suppose you could build a read only ui for them or maybe each issue is a folder with a README.md in it? It’s a lot of work to make something useful at work.
Compilers use reasoning based on UB to optimize and simplify code. But that's not a complete argument why it's highly likely that a given code exhibits UB at run time.
It can work but you have to have a vision on how to integrate extra features, not just shove them into the codebase.

Consistent plugin API allowing to plug-in code in various parts of the app takes a bunch of effort but now you're magically separated by a wall of code from the contributors, as you're never a blocker for someone's else effort to add features, and the stuff you don't want to maintain can land in contrib repo
Docker Mac m1 is my daily driver. Painless performance.

But... watch out for software compatibility: m1/m2 requires recompiling from source which is painless... when it works. I recently needed syslinux and had to move to x86 cloud instance. Fortunately, docker made that easy.
because of the attractiveness of a waitress.

There is lots of research showing that the more attractive the customers find waitress the more they get tipped. Even straight women seem to tip attractive waitresses more.
> To me, it's pretty much the same thing if there are multiple top-level tabs (bugs / requests) or sub-tabs (issues -> bugs / requests). The difference seems mainly cosmetic.

The difference is that they're all under the label "issues" implying it's something that needs to be fixed. Sure, you could label it, but that's a workaround and it's still in a category called "issues".
That's probably bad example because if you decided that node is a security problem you're fucked as you'd have to change the language you use...
Yup. For almost anything, modeling behavior is far more effective than training. Hiring well and having complex problems to solve is what makes engineers better.
That’s a different matter.

Firstly, your VST situation will be that the plugin, the host or both are not implementing things correctly: one or the other has claimed DPI-awareness inappropriately. That’s on them.

Secondly, you misunderstand the relative situations of macOS and Windows. The difference is not to do with their approach to scaling, but rather their approach to supporting old software, and the diversity of hardware. Social factors, not technical. Apple could absolutely have done fractional scaling, and it’d have worked just fine for them; the present situation in how well high-DPI stuff works across platforms would be indistinguishable: macOS would still have basically nothing broken, and Windows would still have quite a few widely-used pieces of software getting it wrong. Here’s why:

Apple developers are very probably using a high-DPI screen, so they’ll immediately notice if anything is off. Apple is controlling, and anything published through their store will have any obviously-bad scaling noticed and rejected. Apple doesn’t care about long-term compatibility, so earlier software that didn’t implement scaling properly largely just doesn’t run at all any more.

Windows developers are probably using a low-DPI screen, and are publishing to a largely unmoderated platform that still has software from decades ago run just fine.

Functionally there’s no difference between fractional and integral scaling in how well software will support them. If you try to implement things completely from scratch, fractional will be a little harder because you have more rounding decisions, but in practice you always use a library that takes care of that for you (normally a full widget toolkit, but VST plugins will often use something somewhat lower-level but still above the physical-pixels layer except when you deliberately opt for fine control), so there is literally no difference at all. The difference in how well things work on these different platforms is purely other factors.
How about Google Voice?
Can you just check, I don't think the line *p=1 will even compile given the definition of p
Right! The decisions and complexity are all hidden. Billing has to look simple otherwise people wouldn’t pay for stuff.

Take anniversary billing, it seems so simple, just store the billing day-of-month in the database and run the billing using the sql:

select do_billing(customer_id) from customer where billing_day=extract(date from current_date)

And this works great in December and January, but if you don’t have good financial controls you might miss the fact that you’ve dropped an entire week’s worth of billing by the end of the following year.
That would make the whole learning process way slower.

I remember a few old lecturers saying they learnt programming on punch card computers, which you have to wait a few hours just to get a simple code running. Usually, you are not lucky enough to get it right on first time. Fix some errors and compile... repeat until it runs. More waiting time.
Also the GP is just a misunderstanding of what it means for the wage gap to close. It should be equally as likely that a woman makes more than a man in a given position than the reverse.

Finding cases where women out earn men is promising because if all things were equal that’s to be expected sometimes. If across location, time, and field about half the time women make more and vice versa then we’re doing great.

Closing the wage gap doesn’t mean “when you control for a bunch of stuff women make the same as men” that’s closing the unexplained gap. It means women as a as a whole make the same as men as a whole.
Network Locations on macOS Ventura
You can also uncheck the "Window controls" that don't add anything of value to the snippet.
Major projects like this are somewhat rare in the open, and often interesting. It sounds high-risk, but if done well could make a big positive difference in the world of js-related software development.
And, importantly, the double-length intermediate result prevents the rapid loss of precision, compared to the naive alternatives of

: */ * 65536 / :

and

: */ 65536 / * ;
Here's a recent commentary from a WeChat group (translated via deepl):

> The current situation is that Western water forces, through insidious and poisonous means such as the Internet, have created a very dangerous atmosphere of public opinion and incited the people to rebellion. If we are deceived and held hostage by these rumors, what China will end up with will only be a disaster. We have to believe that the country, more than anyone else, wants an early end to the epidemic, and more than anyone else, wants an early end to this costly and socially expensive epidemic prevention activity, so that society can return to normal and the economy can recover as soon as possible. We believe that the Party and the government will be able to lead the people of China to work together to overcome the epidemic! China will win! [fist][fist][fist]

> 当前形势是西方水军通过网络等阴险毒辣的方式，已经营造了一个非常危险的舆论氛围，煽动民众叛乱，如果我们被这些流言所蒙骗和裹挟，最后中国迎来的只会是灾难。我们要相信，国家比任何人都希望疫情早日结束，也比任何人都希望早日结束这种耗资巨大、社会成本巨大的防疫活动，让社会恢复正常，经济早日复苏。相信党和政府，定能领导全国人民，同心协力，战胜疫情！中国必胜！[拳头][拳头][拳头]