skysight-inc/HackerNews huggingface dataset:
No, if it was defined somewhere, it'd have a consistent behavior and it wouldn't "time-travel" the way UB can. The word for this in the standards is unspecified behavior. Undefined behavior doesn't need to have any requirements. Different parts of the toolchain and runtime environment (or even different compiler passes) may assume different behaviors for the construct. Even different calls to the same function with the same arguments may produce different behaviors.

Let's walk through a simple example to make this clear. Let's assume you have a macro function foo() that triggers some trivial UB, perhaps integer overflow. Let's also say that this macro function is called the same way in two different translation units. Because there are no requirements on UB by definition, there's no guarantee that those calls will do the same thing, even on the same runtime, using the same compiler, with the same flags. Even the same line of code calling the same arguments may see different things every time, because again there are no required behaviors.

Even code that does not itself trigger UB, but is on an execution path with UB does not have a defined behavior and will commonly be omitted by optimizing compilers like GCC. This has resulted in Linux vulnerabilities where null pointer checks were omitted from the actual binary because other code was "proven" by the compiler to dereference the pointer first.
Aah, he took down Chesterton's fence and found the reason of its existance!

(https://en.wiktionary.org/wiki/Chesterton%27s_fence)
I read (listened to) a book on soft skills for developers[1] years ago. It was a pretty quick and easy read (listen). It might be helpful to call out some areas where you might be lacking, to make you aware, and then give you some ideas how to tackle them.

For me, I ended up in the business school when I went to college. That probably did more for my soft skills than anything else. It forced me to learn out to write things that were more than 2 sentences long… not through a class or direct teaching, but by necessity. I always try to think about my audience when I do anything. Who is a presentation for, who is an email to, what am I trying to convey? In sprint demos to those who will consume things I make, I don’t get technical at all, I focus on the value it will provide to them. How will it save them time and toil? How can they consume it? That’s what they care about. It doesn’t matter how technically impressive something is if people can’t consume it, don’t know how to use it, and it doesn’t help them in some way. Some of my team members didn’t like when I tried to sweep their tech talks under the rug, but our stakeholders said we had some of the best presentations in the company as a result. We didn’t bog them down and lose them in jargon, and instead we focused on what mattered to them. We saved the tech talks for internal presentations with people who would get value from them.

The same goes for your boss. Your job is to make your bosses life easier. Do that and you’re golden. Make their life harder and it will probably be reflected in reviews. Always try to put yourself in the other person’s shoes.

If I need to prep something for a future meeting, I try to do it right when I hear about it and it’s fresh in my mind, before I get distracted and it becomes an item on my backlog. Then I stick it somewhere I know I can find it when it’s time for the meeting (or send it out before the meeting so people have a chance to review it). In terms of image within the company, I think this stuff matters a lot, so I raise it high up on my priority list. Plus, if I’m not prepared for the meeting, it means I’m wasting other people’s time, which isn’t good. Even worse if it means we have to have yet another meeting.

[1] https://www.amazon.com/Soft-Skills-software-developers-manua...
Also these brands are just using off the shelf batteries anyway (eg: a Cyberpower model using two 12v/8Ah SLA batteries connected together[1], with various OEM brands seen on the labels). Searching online discussions one finds which OEMs make better quality batteries.

[1] One such example, replacing with a generic kind: https://www.youtube.com/watch?v=R6qcon76i4s
That means they're not using SAML/SSO which sounds absolutely crazy to me, unless you only have like a dozen users. The implication is that your IT team doesn't take security seriously. Not because you can change names, but because they aren't implementing identity policies.
It's wild to me that tech workers will still downvote stuff like this after the season of layoffs we just had. Google is "trimming the fat" while making 18 billion a quarter. To what end? How about preserving the middle class and ending the monopoly power of these firms?
Ub is a bug. We can define what happens, but your code is still wrong if it gets there. Leaving it undefined mean the optimizer can make useful optimizations sith no harm as your code should be useful anyway.
#gasp

Seriously, this is like the “open office” obsession despite literally every study showing it is bad for employee health, morale, and productivity.

This is purely executives wanting to have and demonstrate power over employees, and maybe get some people to quit rather than having to have layoffs.
yeah, imagine what this will do for lawyers
So why would any utility take that offer? Do you have an example of such a contract between state and private company that you find these terms? I'd like to take a look at the bidding process.

If the government is corrupt or corruptible (and which aren't?) then "service everyone" isn't as objective as it seems.

Meanwhile you can just force all the collective carriers to post their prices and their profits publicly or threaten them with complete loss of license to operate. This has been effective in the past and allows for a more open system with many competitors rather than a state selected contractor.
Sure? But what definition of "popular" does "large amount of people" meet? "Of or relating to the general public"? The general public is using Windows 10 and 11. "Suitable to the majority"? Again, the vast majority is 10 and 11. Same for "frequently encountered or accepted" and "commonly liked or approved": the most frequently encountered is Windows 10. So too is the most "commonly liked". 3% is still 3% and far and away a minority and definitely not in any way "popular", by any definition I can find.
Also the museum in Alameda CA, which does a good job of walking you through the history of the ban.
[dupe]

More discussion: https://news.ycombinator.com/item?id=39473592
This is partially a joke, but maybe use a STIG hardened image?
[dupe]

https://news.ycombinator.com/item?id=39473592
I don't disagree, and I think the quote above follows that idea. Undefined behaviour means that anything _could_ happen, but compiler writers should ensure something sensible happens in those cases. At least, that's what I took from it.
More discussion: https://news.ycombinator.com/item?id=39473592
"Not outside the capabilities" isn't a strong argument, we want amazing, ten times better than the current tools, e.g., to use the language typical when describing what it takes to beat an incumbent tool.

The point is to look at the patterns in how creative work is performed, it's generally about fine-grained control. E.g., the commonality across a musician, film editor, animator, music producer, photographer, painter, etc... if you're making the claim that suddenly AI is going to replace this need for fine-grained control then I'd put the burden of proof on the supporter of the AI tool to describe why the fine-grained control suddenly won't be important.
You seem to be using coded language, why is that?
There are also those times when I write something that technically works in 45 minutes, but it’s 40 lines, but spending another hour or two on it gets it down to 4 lines. The shorter my code, the longer it takes to write. But it’s easier to read and maintain, while also running faster.

This is one reason why lines of code is a poor measure.
On a related note, VexFlow is a project for rendering music notation in the browser.

https://github.com/vexflow/vexflow/

OpenSheetMusicDisplay is a higher-level library that uses VexFlow to render entire MusicXML documents.

https://github.com/opensheetmusicdisplay/opensheetmusicdispl...
Ignoring the rest of your ridiculous comment,

>That's why so many TV programs are made about work and the office environment. People enjoy the social aspect of it.

Attempting to equate the appeal of some TV entertainment with the reality of travelling to and spending 40 hours a week in an office environment is laughable. That's like saying people enjoy war movies cause they like war. Plain idiotic.
you linked a paper about vision transformers...
Just delete the tests, problem solved. Your CI dashboard even gives you the green checkmark.
A lot of older classical scores have poor scans, low res, or are hand written. If I enjoy a piece, I'll redo the notation and upload it (generally to IMSLP).

I have a MIDI piano so I end up using the keys to input, which can be fairly quick, depending on the piece.
Chronic stress spreads cancer
The fact remains that GFCI/AFCI aren't really doing anything to address the UPS battery fire risk you're describing, while increasing the chance of problems that knock the power out.

Also the NEC has gotten ever more outlandish with those requirements. Like last time I looked there was no exception for sump pumps, yet you'd be foolish to actually use a GFCI there. Actually a quick search says it's now even explicitly required. rolls eyes. I mean sorry, I'd love to but I'm just too busy restraightening all the prongs on my plugs due to these wonderful "tamper resistant" receptacles.
>Chronic stress increases metastasis via neutrophil-mediated changes to the microenvironment

https://www.sciencedirect.com/science/article/abs/pii/S15356...

Summary

Chronic stress is associated with increased risk of metastasis and poor survival in cancer patients, yet the reasons are unclear. We show that chronic stress increases lung metastasis from disseminated cancer cells 2- to 4-fold in mice. Chronic stress significantly alters the lung microenvironment, with fibronectin accumulation, reduced T cell infiltration, and increased neutrophil infiltration. Depleting neutrophils abolishes stress-induced metastasis. Chronic stress shifts normal circadian rhythm of neutrophils and causes increased neutrophil extracellular trap (NET) formation via glucocorticoid release. In mice with neutrophil-specific glucocorticoid receptor deletion, chronic stress fails to increase NETs and metastasis. Furthermore, digesting NETs with DNase I prevents chronic stress-induced metastasis. Together, our data show that glucocorticoids released during chronic stress cause NET formation and establish a metastasis-promoting microenvironment. Therefore, NETs could be targets for preventing metastatic recurrence in cancer patients, many of whom will experience chronic stress due to their disease.
I just explained how implementing the Redis protocol will inherit inefficiencies of Redis in IKV - so I don't understand how the comparison will be fair or honest.

Hope this addresses your original question about why we wrote a custom benchmarking client.

https://github.com/inlinedio/ikv-java-client/blob/master/src...

It is quite simple and is available here. There is nothing malicious in there to make IKV appear faster. Although ff you do see a bug, I am happy to fix and republish results.
Ecoflow switching time is listed at “<30ms” and the new Anker power stations are listed at “<20ms” so not the speed you’re looking for. APC’s tend to be listed at less than 12ms.
A teammate of my had been very vocal about this as the company pushes Copilot on everyone. The politics and process are the bottleneck, it’s never the code.

Spend 20 minutes writing a function to do something, and 3 months of meetings discussing what the value of X should be in that function… but Copilot is the answer…
About 20 years ago there was a company in Tucson making lithium ion batteries that could withstand an incredible amount of abuse. Wonder what happened to them? Too soon to the market?
as long as you have process to dismantle the tests and move fully over to a new system, if you are indeed migrating/upgrading. leaving a legacy thing dangling and tightly coupled tests lingering for years happens easily when going from 95% to 100% can cost too much for management and stakeholders in various ways relative to other pressing needs
Doom x Husqvarna Automower [video]
I recall reading somewhere that it was created by someone who lived offline and had to take a boat to get connectivity, so that's why the thing has this "sync to local device" structure. Can anyone corroborate?
<div style="display:flex;justify-content:center;align-items:center;">

<div>I'm centered</div>

</div>

* I wrote the original without testing but it is justify-content, not justify-items... oops
You haven't changed but compilers have changed, unfortunately. Unless you stick on -O0 or -fno-strict-aliasing all the time, the chance is that your UB-ridden code can break in the future with more powerful compilers exploiting more UBs. So that's why you have to care now if you didn't so far. (Or you can argue that optimizations should be turned off, which is indeed another valid, though uncommon, answer preferred by djb for example.)
Who Is Portugal For?
oh yeah i should've added share to my list! when i moved to nyc i was so poor i was subleasing a room from a carribean dude in prospect park, and would bike to lafayette with a hand me down ibook g3 :>

i really don't know how to contextualize that experience. i'm glad i was part of it, but like a lot of things immediately pre-pervasive digitalization, i feel like it will be lost in time, like tears in rain.
ChatGPT is wrong. The F stands for Fucking, Freaking, or (more politely) Fine. There’s RTFA like RTFM.

Amusingly, https://www.google.de/search?q=what+does+tfa+mean shows https://news.ycombinator.com/item?id=19781756 as the first hit for me.
https://codepen.io/backnotprop/pen/qBvzpvr
I think the iron fish thing was a bust.
Did you put this together? It looks great. The site our village uses to host its village code is an atrocity so I’ve been considering rolling my own unofficial version.
It does. Don’t believe everything ChatGTP says.
Robots like this will have a small market until they can handle obstacles. The cat toy that the cat left in the middle of the floor, the papers that an open window blew off the table, the toys the kids left scattered about, the pencil that rolled off the desk while you were away, the dirty laundry you left laying on the floor, the ridge between carpet and hardwood floors, doors left open or closed, and more. That means there may be several tasks that intervene before a primary task can accomplished (move the toys, pick up the papers, pick up the laundry, open the door). Some obstacles will semi-permanently block a wheeled robot, such as cables, things stacked that you don't want moved, furniture, a sleeping pet, stacked unopened packages from the mail, etc. I believe this means general purpose home robots can not have wheels, they must have legs, perhaps more than two legs for stability. It may sound weird but I think the ideal design might be somewhere between a large friendly spider and a dog. It's odd how robotics has mostly fallen into this idea that the world is two dimensional and flat. They've idealized away the really difficult problems of dealing with mobility in a 3D world. Note that everything this robot does involves only planar horizontal surfaces. Basically it looks like a person had to go through the rooms and clean them up for the robot to function. Roomba's have the same problem.
I love reading this stuff. 2010 is when i found out about bitcoin and wanting to learn about it was what took me from someone who played around on linux to someone who could write software and then ended up finishing a CS degree after.

Reading this reminds me of what I originally loved so much about the tech scene at the time. I haven’t been able to find that spark for a long time now unfortunately. Maybe im just looking in the wrong place but i feel it is hard to find another community like the early bitcoin one.
My pup knows that when I say “thank you” in a certain tone of voice that it’s nearing the end of a meeting. She’ll wait patiently the whole time until I say it, then perk up. And she gets annoyed when anything prolongs the meeting after that signal, and start getting restless because she knows the meeting should be over.
Abusive user got an abusive bill. Sorry I don't feel bad they didn't read and understand the terms of service. The simple fact that this user believed it was free and that it was okay for them to process 2.5 petabytes of data because it was free, and why the hell not just abused the shit out of it because they think its it's free and it never dawned on them that it might not be, especially when they decide to process 2.5 petabytes of data.

Well I say good, send them the bill and make them pay. This is exactly why we can't have nice things 99% of the users can play in the sandbox of its 100% free because you're not really abusing the system and doing these super power queries. This guy is going to complain about the bill for processing 2.5 petabytes of data on somebody else's dime and then expect sympathy from me. I got enough hands in my wallet thank you very much.
I'm not sure why you are being down voted but this is the same problem I immediately encounter as soon as I try to do anything serious.

In the time it takes to devise, usually through trial and error, a prompt that elicits the response I need, I could've just done the work myself in nearly every scenario I've come across. Sometimes there are quick wins, sure, but it's mostly quick wrongs.
I'd rather we had a few bad calls on eminent domain cases and 25,000 miles of modern high speed rail, rather than 100% correct calls and the nearly zero miles of high speed rail we have now.
Ehm no, reflogs are notoriously local...

To be 100% sure that something hasn't changed recently I tried and, nope, your revision command only looks at the local reflog, after a forced push you get different answers from the original repository (that has the full reflog) and a new clone.
so they cross strapped a payload laser sensor to use for attitude/ranging control because the laser range finders didn't remove its hardware interlock?

I’m amazed they had performance data of the LIDAR package useful for calibrating into attitude and range finding processing? And they updated the software in a few hours to use that new data into the navigation models? That is crackerjack software programming; I would guess it’s a higher level language onboard than ada to allow such rapid prototyping and deployment?
A quarter of an acre of trees is a "forest"? Whoa. As someone who grew up amidst a thousand miles of trees, I shall be laughing for a week to myself over such an idea.
Right. Also it’s a manufactured scarcity. The too brass of this capitalist system we working class suffer under could clearly fix house scarcity.
Absolutely NOBODY will stop YOU from working in the office, and none of us WFH proponents care about that. We only care when you are bored in the office and want to force US into it. You are welcome to work there, live there, etc, we do not care...
Text entry. I find Musescore terrible (even revisited it after their huge upgrade). Being able to freely enter text means I don't have to care about timing and just get the notes on the page, which most other notation apps are strict about.
A lot of responses in the thread say that deleted files should be counted in the quota. (And then stored until the user purges.)

I'm general, I think this is a good approach.

The consequence is that there is a certain class of user that won't understand this and will get confused when their account hits quota, but they don't see those files on their computer.

Another consequence is that we don't sync recycle bins, so it wouldn't be straightforward for users to purge it.

I personally think that moving deleted files to something like Glacier, (slow and cheap, think tape in the cloud,) and then having a separate recycle bin quota, is the best approach. (https://aws.amazon.com/pm/s3-glacier/?trk=75fef084-bf49-48b4...)
I currently have halibut baking in the oven with garlic butter, and butternut squash soup.

I love a good dumb butt joke, but not everything with the substring butt in it is automatically funny or reminiscent of butts.
> Secularism is a policy platform. You can be a secular populist or a sectarian populist.

Except, in practice, secularism is a policy originating with and being championed mainly by western-educated elites like Nehru.
In what sense? C and C++ aren’t memory safe, so the specification has to say something about what happens if you’re dereferencing an invalid pointer (random value, out of bounds, frees pointer, etc).

That’s what UB exists for: there’s no behaviour we can actually define for some operations.
Thanks nudge economics and Smith-Mundt Modernization Act of 2012, https://en.wikipedia.org/wiki/Smith–Mundt_Act & https://en.wikipedia.org/wiki/National_Defense_Authorization....
C++ Package Managers: The Ultimate Roundup
bool overflowed = (x+1)<x;

I was convinced that some warning, probably -Wtautological-compare, already handled this and I plugged it into godbolt to see which one, but got no warnings with either gcc or clang. Frankly, I'm stunned and even a bit annoyed. Clearly this code deserves a warning, unless there's some good reason I'm just blind to right now.

Nevertheless, I don't know what to do about the suggestion "it may or may not do what you want on any given architecture, but it shouldn’t just be assumed false." The compiler needs to know what it can and can't do. The common advice of "just do what the CPU does" doesn't work, we need to know what to do when cross-compiling, when constant folding, and we need to know which instructions are valid to select. If I selected PADDSW for this add (a saturating addition operation) but then later when you use x+1 I select a non-saturating addition, would you be happy with that? Probably not. The compiler needs actual rules to follow.

I don't know how to apply the suggestion about warnings when we end up deleting dead code. The compiler deletes dead code all the time, consider a case like "vector<t> v; v.push_back(a); v.push_back(b);", each push_back begins with an if-statement on whether reallocation is required, and that becomes constant with inlining. Tracking "this code became dead because", well, because which situations exactly?
The butt is more noticeable because it's at the end of the word as a standalone syllable.

With your examples the butt sounds are mixed in so they don't stand out as much.
What Palestine? I am not familiar with such country
Here's some more on gcc optimization from 2010, discusses how GCC optimization started eliminating null pointer checks in Linux kernel code necessiting compiling at a lower optimization level (towards the bottom). On the 'good' side, it also mentions tight loops can speed up 30-50% if the compiler can ignore signed integer overflow. Also has 'best practices' list:

https://blog.regehr.org/archives/213
GPT3.5 and GPT4 are not the only options though, right? I don't follow that closely but there must be other models with longer context length that are roughly GPT3.5 quality by now, and they even probably use the same API.
My 60 Favorite Nonesuch Albums (Part 2 of 3)