skysight-inc/HackerNews huggingface dataset:
> Undefined behaviour being weird and having bizarre implications is not a feature of C.

How so? It is behavior left undefined in the C standard.

> It is a feature introduced by compiler writers who prize esoteric optimisations more than simplicity.

It's not the compiler writers who left the behaviour undefined, but the standard writers. If it was so clear what should be done (so all compiler writers should do it in one way) then why did they not define it?

> And it is not forbidden by the standard, though discouraged.

What do you mean it's not forbidden in the standard, it's undefined in the standard hence the name. Because of this you really should not rely on it, because the behavior could change.
> The gist is Go ignores all research in programming languages.

This is an assumption and it's IMHO false. Go creators watched all the research, probably closely, lived with its results and were not happy with what they get. Their experience reminded them that less features in a PL make it arguably less expressive, sure, but in the same time it makes it faster to learn and master, easier to read and debug. Writing tools is simpler if a parser for your language can be hacked over the weekend from scratch, etc.

At the end of the day its a matter of personal preferences, but it has, IMO, nothing to do with "ignoring all research in programming languages", quite the opposite.
FYI ChatGPT is banned and that'll definitely get removed at some point: https://meta.stackoverflow.com/questions/421831/temporary-po...
I am in the exact same place. Feel ya.
Thank you for pointing this out! I apologise for the inconvenience and oversight; it is a setting I forgot to update when we launched which has now been fixed.
The article implicitly suggests that the goal was indeed to sabotage both pipelines fully.

It doesn't say it outright, but if the hastily re-programmed explosives were triggered by a sonar buoy after three months in sea water as the article says, then it would not be surprising at all if some of them failed to go off.

Precisely that the article implicitly gives very plausible answers to good questions like yours, is why I think it's credible.
> Play out the game theory here. Russia has nothing to gain and lots of leverage to lose by destroying the pipelines. They can just keep the gas flows off FFS!

Keeping the gas flows off has manifestly not given the leverage they are seeking over Ukraine policy, Considering that there is every reason to believe (whether or not this was initially the case, but note that is one of the explicit Russian justificafions foe the war) that Putin sees Western assistance to Ukraine as both an imminenr ans existential threat to Russia, or at least the present regime, scarificing leverage that had already been exhausted without effect on that issue foe something that has a chance, even remote, Of budging that can be worthwhile.
Goddamn. Sorry, I had to laugh that the ~/Sites folder icon lives inside apache2.

Here's how unevolved I am. I strip every new Mac I buy down to nothing, remove all Apple apps, install Homebrew mysql, apache, nginx, node and php, and then point all my fucking local build shit at...wait for it... the ~/Sites folder because that used to be the place you'd automatically drop things to have built-in apache pick them up and treat them as localhost in 2008, and I just don't want to change where I store shit in my grand 25-year-old file hierarchy. And that icon's still there.
Ah! Cool! Thanks for sharing.
Didn't know this exists meantime...
Check out the new features, changes and fixes of Corteza 2022.9.5!
15-Minute-City Conspiracy Theories Insane Says 15-Minute-City Creator
I was wondering if this was the hall of mirrors from John Wick 2 ... there was no hall of mirrors.
There’s a Ring Around This Dwarf Planet. It Shouldn’t Be There
I did run the math for our last extended bike tour and even that doesn’t really work out. We carried two pairs of 650Wh batteries for our cargo bikes and made around 60-90km per day. This used on average half a battery charge, so ~600Wh. Foldable panels of reasonable size and weight top out at 300W. So best case, ideal conditions, no charging loss you’d need 2 hours to top off each bike. Add non-ideal conditions and charging losses and you’re easily looking at 6-8 hours, a significant chunk of your day. And you’ll likely need to carry an inverter, since DC chargers for e-bike batteries don’t seem to be a thing. We ended up carrying an extension cord.

Things may work out if you plan on having a stationary camp somewhere remote.
> or what exactly can you do?

Crash. Crashing is a million times better than undefined behaviour, which can and often does include carrying on computing with incorrect data.
Manticore Search v6 Released
I am writing some comparisons to other tech incl. Nebula, its not publicly published yet, but I can give a few bullets. WRT to performance, better to compare OpenZiti to Nebula rather than zrok, we did some last year - https://netfoundry.io/benchmark/benchmarking%20open%20source....

A few points of comparison:

- Nebula is focused on connecting machines, OpenZiti is on securing services. This is due to Ziti implementing zero trust networking principles – e.g., you can authorize only a single port without needing to set up ACLs or firewall rules.

- While Nebula requires open inbound ports or UDP hole punching, OpenZiti allows you to have all inbound and most outbound ports completely closed while providing truly private, zero trust DNS entries with unique naming – if you wanted to call your service "my.secret.service" you can do that, it does not force you to have a valid Top Level Domain.

- OpenZiti also goes a layer deeper to bring zero trust principles directly into your application. If you're a developer, you can embed all those ideas into your app and not rely on the network or side-loaded agents. This is both client and server-side and doesn't require the app to "listen" on an IP address (the underlay). Instead, you can choose to "listen" on the overlay.
Please stop describing something I remember experiencing like yesterday the same way they talk about ox ploughs at a pioneer village museum.
The release notes say, "The remote control GUIs (transmission-qt and transmission-web) now use the RPC API "table" mode, resulting in smaller payloads / less bandwidth use.", but the GUI hasn't been updated in 3+ years, so what is this referring to?
They know your age. They just want your creditcard and a confirmation that it exactly you ( else they need to trigger the profiling algorithm for a new person).
this isn’t the place for insults.
What is expected security margin? Chacha20 is many orders of magnitude more than impossibly strong, cf. AES which is as safe as needed and not safer.
that question now has an answer. I'm not using Java but I did learn why I don't: java treats a switch either as a statement or as an expression.
What can you do with it? Do you have a parser generator or grammar validator?

Is the & really necessary? It seems to me like they could be removed without losing anything (but it is late at night here so I may be missing something).

Related to the previous question, if & is necessary are there typos in "byte(type) byte(bind(length, ~)) & byte(~){length};" and "'(' & TOKEN_SEP item TOKEN_SEP & ')';", which are missing some?
It's a cool idea. I do see the use-cases for it. What you said about BGP is also interesting.
Maybe "Where do you live?" should be one of those questions employers shouldn't be allowed to ask? Like what's your religion or what's your sexual orientation?
So what? As long as it doesn’t spew the content unprompted.

It’s like saying “you can write terrible things on MacOS”
If folks were using just their eyes, they'd be calling users in to watch them interact with the software, calling users up to perform user surveys, doing all sorts of live-user testing.

But, that costs money: folks don't generally like to do surveys for free, don't like to come to your site (or have you come to theirs) for free, don't like to participate in tests for free... and the caliber of person who can design and orchestrate all that is _notably_ expensive.

So, companies have discovered that it's far, far cheaper to shove remote eyes into their products. No need to schedule user observation sessions, pay for transportation and participation, have to bother with hiring people who are capable of coming up with a good set of questions and scenarios to walk through.
There’s also The Next 700 Data Description Languages https://www.cs.princeton.edu/~dpw/papers/700popl06.pdf
That Python example is broken in all kinds of ways, and is overly verbose. I would go with something like the following, which does spark some joy in me:

matches = {l for l in open("beef.txt") if "lasagna" in l}
print(*sorted(matches, reverse=True), sep="")

On And on the same note, the shell command is weird too, and should probably be:

grep "lasagna" beef.txt | sort -nur

So the shell command is still definitely simpler for this case, but for anything more complex, I'd go with Python.

EDIT: I put back the `n` flag, in case the lines start with numbers.
Down Rounds 101
- coalescing multi-line logs into a single entry (eg. stack traces)

- footprint / complexity (setup and operating those solutions can be more complex than your project)

- retention (logs become too big, eg when you forget to delete them or when you're being DDoS'd)

- data privacy: you have to think about what you log. Blanket log-what-you-can approach is probably illegal and will get you in trouble if you're ever being hacked and those logs leak. Which means you have to think about anonymisation and aggregation early on.
Why is this be a plugin?

(And, while I wouldn't ever install this, good to see that FF is still on the charts)
he asked for advice though, "insults" are a kind of advice
What other things? Water, food and fuel seem pretty basic. Is suffering some sort of prerequisite goal? Can a person not be comfortable at the South Pole in order to go about their business?
This is right up my alley, for me.

I have been suffering from a staph infection on the scalp for the last decade. I am colonized, and every time I do a cycle on Doxycycline I am clean for 4-5 days and it's back...
The symptoms are puss filled boils on the head, sometimes bloody. Sometimes known as folliculitis.

I believe I am colonized, but I also believe my cat is also infected and we mutually retransmit it to each other as we share pillows.

It all started in the nose 10 years ago, unlocked all sorts of issues and permanently damaged it. Then it spread to the scalp. It seriously reduced my QoL and made visits to a barber a challenge. It increased my hair shedding aka more prone to balding.
It's also not performing the numeric sort ('-n'), which is arguably the hardest part because it's not a Python built-in. A bad example all around.

Here's my attempt[1]:

import re

lines = list(set(line for line in open('beef.txt') if 'lasagna' in line))
lines.sort(key=lambda line: int(re.match('\d*', line)[0] or 0))
for line in lines: print(line, end='')

Python is especially bad at this task for a number of reasons:

- Iterating over the lines yields strings ending with newlines. If you naively loop and print the sorted lines, `print` will add a second newline, resulting in every other line being empty. Hence the `end=''`.

- Python's str has many helper functions, but none for numeric sort, so you need an import, a regex, and a fallback value.

- It's very imperative with a big mutation in the middle. Using `sorted(lines, key=...)` and `print(''.join(lines))` would be simpler and safer, but each would double the memory usage for large inputs.

- Filters using list comprehensions ('x for x in y if z in x') are idiomatic and readable but very verbose.

- The concepts are a lot more complicated. Here we have file handles, magic iterators, first-class-functions, sets, generators, lists, keyword arguments, regexes, overloaded indexes, etc. A beginner would blindly copy and run, and have no chance to fix any issues that appear.

- Because Python has almost no static analysis (undefined names are runtime errors!), you'll have to find most errors by running your code. For a quick shell script this usually mean running over the real inputs, giving a horribly slow edit-compile-run loop and be potentially dangerous.

[1]: https://gist.github.com/boppreh/3cf5489da92d85f11e152739320d...
There's russh[1][2]

[1] https://docs.rs/russh/latest/russh/

[2] https://github.com/warp-tech/russh
PP phrases it badly, but there is an aspect of scientific truth in there.

Your chances of getting PTSD from a traumatic experience is less if you feel as if you are in control.

I cannot find the paper I read at the time, I feel I'm missing the right phrase, but here's a more recent one: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6161595/

---

I have had three memorable traumatic events in a fairly long life, each about ten years apart.

I was in an explosion where my girlfriend and I were the closest people to survive; I was in a physically abusive relationship; and I was in an abusive work situation.

I had no effects from the explosion. It took me over a year to recover from the abusive relationship and separately, from the abusive job.

A counselor explained to me the reason was that after the explosion, I was in control and immediately made the right decisions to survive basically unscratched, so I experienced no trauma. In the other two cases, I was trapped and felt powerless.
Now is a good time for newcomers.

At least I hope so.
i might probably never buy one. but i am glad it exists and what it has done for many otherwise "niche" areas of gaming (low-spec gaming, gaming on the go and linux gaming).

besides all the tech it has promoted, i really hope it also encourages devs to build "low-spec" installs of their games, with reduced disk space by only bundling hd textures.

anti-cheat still remains a big hurdle for some games (looking at you, fifa), but i hope it eventually gets ironed out.
> Even if everyone works from home, there are advantages to drawing from local talent pools (people know people and can vouch for their work, cultural norms make it easier to work together, there are less labour law difficulties, there is less geopolitical risk of parts of your team being sanctioned because you hired Chinese or Russian programmers, etc, etc)

You could reframe these points so that they look like advantages of global businesses... you'll have someone to vouch for and evaluate people across multiple talent pools (increasing talent supply), the majority of your team will never be sanctioned simultaneously (diversifying that risk), and as for cultural norms, don't we all know that diversity is strength.

Saying there are no advantages to global remote first besides cost is underselling it; there are important advantages, for one

> It starts to make sense when you realise salaries are driven by the cost to replace an employee

asynchronous remote makes documentation and written communication central, which at the end of the day makes it easier to replace employees.

Cost is important too, if you can literally hire 50% more workforce that's one hell of a deal.
And yet compare to one of the oldest questions on SO: https://stackoverflow.com/questions/746/format-string-to-tit...

Today that question would be downvoted as a bad question, and so would many of the answers.

It's kicking out the ladder after you've climbed it and is hostile to anyone learning to program today.

All those questions you deride as "useless" is someone who is struggling to do something, who takes the time to ask for help and gets downvoted and hostility in return.
Rust SSH client and server library
Vice should ask ChatGPT to write their articles, maybe it's journalism will be decent.
There are more important things like:

You get consistent ecosystem with top tooling, strong standard base class libs and good UX.
productivity on the CLR and JVM is light years ahead of that in Rust. Rust has its niche, but it isn’t superior to broad surface that the managed runtimes provide leverage for.
So long as there are governments involved in the employee-employer relationship, this can’t happen. I don’t actually care where you live, but I do care that I can legally employ you, pay you, pay taxes/social charges, and that I understand the obligations of the arrangement we’re contemplating entering.
It might make tradeoffs that make it unacceptable in other situations, particularly ones that are focused on being resource constrained in some way.

For example it could have low RAM usage, but become exponentially slower with message size, so it's fine for encrypting short messages only.

Or it could have a constant overhead somewhere that's fine for an IoT device that sends a report once a day, but not if you wanted to make thousands of connections per second.

Stuff like that, is my naive understanding.
Sounds about right. Pissed away millions chasing stupid moonshots, instead of you know, actual moonshots like getting into the space industry.
Simple answer is no. They will lose the domain very fast.
Ok, that is more understandable. If there were some more examples in the page then this emergent behaviour could be seen faster.

Nothing to add then
I used to use Disco, the website is still alive: https://discoapp.com

When a CD was burning, smoke would emanate from the app, and if you blew on your microphone the smoke would disperse.
The whole is mounted in a trespa box in such a way that there is a few millimeters of shock mount in all three directions (very high density foam) and all empty spaces are completely filled up. That box in turn is then mounted to the frame again in a similar way, I tested the whole using dummy weight and the accelerometer in a phone to see what happened when jumping a pothole at speed (which is about the worst that you could do to this bike) and it came in well under the limits and also tested it on a very rough path to see what it would do when subjected to vibration. The front fork is a very nice 'Fox' unit with adjustable springs which have been set to be in the middle of their travel range when the bike is fully loaded and so that it never bottoms out even under the worst conditions.

On the whole it isn't perfect but good enough for many years, I've run this setup for a year now and have once (at 5K km) inspected the wiring and the battery welds and everything seems to be holding up quite well. Things to be careful with: overpressuring the tires would reduce the amount of shock absorbing capacity quite a bit (and is definitely not recommended with tires this wide anyway), the rolling resistance of these is fairly high but that is just how they are designed. Then, obviously there is bumping in to things and falling at speed, which fortunately hasn't happened. But if it did I would immediately consider the battery pack a write-off in spite of being super well protected. I've done about 10K on it now and when it hits 20 I'll take the whole thing apart to see if there is any wear that is hidden from view. I'm mostly concerned with the battery welds and the wiring, those are the weak points, even with all of the wiring contained within the enclosure, routed carefully to never cross over any other wires and with the welds checked using a FLIR during a pretty rapid discharge (twice as fast as the motor could ever do).

The OP has mounted the charge controller and the motor controller to a piece of wood (which will flex a bit but not much) which in turn appears to be protected in only one axis (side-to-side) and is either free to move or rigid in the other two. The wiring runs 'cold' without any kind of extra protection through the wood that it is mounted on. The frame is unsprung as far as I can tell, which especially for the front is not a luxury on a bike this heavy, which makes bike+battery the unsprung weight (I think I see a saddle pin with a rubber mount so there is some flex there). That battery box may have some foam in it or some other suspension for the battery which is good.

As long as he's on good asphalt this setup will work, but as soon as you go on less perfect roads I think that it will give trouble over time. DIY stuff like this looks great on the day you build it if you don't build it for abuse, but exposed wiring is dangerous and vibration as well as the weather are going to be rough on this. I'm curious what it will look like a year from now if used intensively, and also how the wire runs are on the other side of that board.
I am more or less in the same situation (s/FAANGs/startups) with a shift in interests (though still interested in CS somehow...), would be great to chat if you are up to.
Climate change isn't an existential threat if all governments and international corporations follow a carbon (more precisely GHG) pricing scheme.

The crisis is that its politically hard to coordinate that agreement and transition and we've not made as much use of the last four decades as we could have. Potentially passing irreversible tipping points.
The purpose of the government is to legislate in order to align those kinds of goals with profit. Ex. taxes on emissions, fines for human rights abuses etc. This is what Adam Smith meant when he wrote about the invisible hand.
Ok I thought the idea was to avoid Google's espionage. Once you start monetizing you will get all that right back.

What's the point of self hosting if you still need Google?
The slice by slice approach talked in there for whether to push the nuclear bomb is a good strategy for Russian. They have got 1 and 3 and … if they kept on doing that where is Ukraine to defend against.

Great for Ukraine Russia did not learn the lesson of how they take a bit and German can still build stream II and we still have Olympic etc.

Luckily for us all. Better of course if they do not invade. Tell chinese about Taiwan. They cannot help themselves.
People go hungry and homeless. This is visible today.

This is literally why one function of the state is to act as a non-market-participant so it can provide a safety net. There are some things markets can't and shouldn't try to do.
I don't know what were the issues Yelp was facing, I have upgraded several times my past Kafka clusters and really never experienced any issues. Normally the upgrade instructions are documented (e.g. https://kafka.apache.org/31/documentation.html#upgrade) and the regular rolling upgrade comes with no downtimes.

Besides this, operating Kafka never required much effort a part when we needed to re-balance partitions across brokers. Earlier versions of Kafka required to handle it with some external tools to avoid network congestions, but I think this is part of the past now.

On the other hand, Kafka still needs to be used carefully, especially you need to plan topics/partitions/replications/retention but that really depends by the application needs.
> Someone recently got in the news for getting Bing's ChatGPT-based chat robot to recite its instructions.

Can you provide a link? I can’t find this.
It's a rather contrived demo, seeing as LSB-tagging makes pointer and fixnum aritmetic work already, with fixnums requiring no heap allocation, and the implementation of the symbol table [0] is very much O(live values) when creating an object. (Do see "Hash-consing garbage collection" [1] for a non-strawman implementation of coalescing heap objects though.)

But putting metadata in the MSBs of pointers is a nice trick for concurrent garbage collection like Pauseless, ZGC, C4 and such [2]...though I'm not sure how much you win, as collections aren't _that_ frequent, so if you map the same physical memory multiple times (like ZGC, probably C4 too) your TLB should pick up whichever replica in virtual memory you're currently accessing quickly.

[0] https://gitlab.com/Linaro/tcwg/tbi_lisp/-/blob/main/SymbolTa...

[1] https://www.cs.princeton.edu/research/techreps/TR-412-93

[2] https://www.usenix.org/legacy/events/vee05/full_papers/p46-c... - the Azul hardware seemingly only stole one bit still.