skysight-inc/HackerNews huggingface dataset:
It is impossible to write a safe shell script that does automatic error checking while using the features the language claims are available to you.

Here’s a script that uses real language things like a function and error checking, but which also prints “oh no”:

set -e

f() {
false
echo oh
}

if f
then
echo no
fi

set -e is off when your function is called as a predicate. That’s such a letdown from expected- to actual-behavior that I threw it in the bin as a programming language. The only remedy is for each function to be its own script. Great!

In terms of sh enlightenment, one of the steps before getting to the above is realizing that every time you use “;” you are using a technique to jam a multi-line expression onto a single line. It starts to feel incongruous to mix single line and multi line syntax:

# weird
if foo; then
bar
fi

# ahah
if foo
then
bar
fi

Writing long scripts without semicolons felt refreshing, like I was using the syntax in the way that nature intended.

Shell scripting has its place. Command invocation with sh along with C functions is the de-facto API in Linux. Shell scripts need to fail fast and hard though and leave it up to the caller (either a different language, or another shell script) to figure out how to handle errors.
Get out of my head!
I sometimes use sounds as opposed to print statements when debugging automations or certain UI behavior, e.g. to indicate whether a certain if-condition was triggered or not.

The advantage over normal print debugging is that you get immediate feedback, and do not need to switch to a console. This is also useful when it comes to debugging split second timings (custom window movement scripts).
I thought Patreon was already a “hedge against Youtube”?
I agree but in that case it should be "truck driver causes accident", the military vehicle really doesn't have much to do with it.
Last year, I went to a AI / labor roundtable discussion event at the university where I work. One of the folks attending was a state congressman or something like that, and the topic of autonomous vehicles came up. He said his goal was to ensure that there would NEVER be fully autonomous vehicles in Indiana. I got the impression that the rest of the room agreed.

I was pretty baffled by this, but figured that attitude should be expected at a "labor" event, so I brought the topic up with my IT colleagues, and many agreed that they would never trust a driverless car.

I agree that we will eventually get there, but I think major regulatory setbacks should be expected, and a 5-year timeline is pretty optimistic.
What are you basing this one? The one thing that is very clearly stated up front is that this innovation is based on reinforcement learning. You dok't even have a good idea what the CoT looks like because those little summary snippets that the ChatGPT UI gives you are nothing substantial.
The down side is that: it takes time and money, and nobody will give you a raise because you have an MSCS (though maybe it could help with changing jobs). But the actual knowledge and skills are useful if you can put them to use, and you may also find the courses to be satisfying in themselves.
My hearing is on the border; the doctor told me hearing aids would help, but I don't "need" them. I've been resisting getting them because

- I've always (decades) had issues with distinguishing speech when there's background noise. Even when my hearing was "perfect", my brain just had problems separating the two. This is _especially_ true in a crowded area (mall, restaurant, etc) where the background noise _is_ speech. My father had the same issue, tried many different aids, and _never_ managed to get a pair that worked.

- Cost. I'm not interested in experimenting at thousands of $ per try. With the expectation that I'll wind up at the doctor's office a dozen+ times while they try something new to help me (with the first issue), and a likelihood that they'll never succeed; I'm very hesitant to shell out the money involved.
Some people do have acid flashbacks etc. ... others have described the situation as an “attention pull-up bar,” you try to hold yourself “up” (ie focused), eventually “your arms give” (ie your attention wanders), you “rest” a second (ie acknowledge it), then “pull yourself up” again (ie return to the object of meditation).

I was a lay Tibetan Buddhist for several years, sometimes you do focus on one point, or a statue of a Buddha, or on your breathing... the sort of static/repetitive things where you might trigger the psychedelic effects. You can fast-chant Avalokiteshwara’s mantra[1] and Green Tara’s mantra[2] and Vajrasattva’s short mantra[3], but you would also have more dynamic meditations and longer mantras: Vajrasattva’s full mantra[4] is a whole song; so are the Praises of Tara; a full visualization of Green Tara has multiple colors and seed syllables and signs and stages until you visualize her blossoming out of a Lotus and shining green light through you, blasting all your your darknesses away.

That last one is not so typical, but like tonglen practice, where you breathe in the darkness of the world and breathe out pureness and goodness, is more active and very common.

[1] the familiar Om mani padme hum, which fast-chanted sounds like “hummo-mani-pemde” over and over

[2] there are different skin colors of Tara, Green Tara is invoked with Om Tare tuttare ture svaha and fast chanted it sounds like “zohm-tare-t'tare-ture” repeated.

[3] his short mantra is just his name, Om Vajrasattva hum. There's also a Japanese tradition of some monk dancing down the street sing-chanting an Amitabha mantra like that, Namu Amita butsu, Namu Amita Butsu.

[4] It's known as the 100-syllable mantra, I think? I occasionally look back on my time and say “well was I really a Tibetan Buddhist if I wasn't a monk and didn't keep with it?” and then the Vajrasattva mantra will come back to mind and it's like “Yeah if that's one of the things I have memorized then I definitely count.”
No, I think it's pretty fair. One could argue about these, but except for "slow" these are more quality qualifiers, rather than quantity. So you either agree it's "bug-ridden" or not (i.e. the number and seriousness of bugs in it is negligible by whatever standards). And I think even "slow" can be discussed in the same manner, the actual speed is quantitative, of course, but in the end one either argues that this speed is "slow" or isn't. So, given some rhetoric skills of your opponent it's at least possible for that statement to be proven false, if he convinces you the implementation actually isn't slow nor bug-ridden, or at least if there's no Lisp-implementation indeed.

But what is "sufficiently" complicated? Now it's a silly statement that just doesn't pass Popper criterion: even if nobody dares to deny your program is complicated, one can always say it isn't sufficiently complicated, hence the fact it doesn't contain Lisp-interpreter disproves nothing. A man of culture wouldn't use such definitions.
I agree, I don't have a solution for that, I wish I did.

I know when somebody is passionate, they will get focused practice "naturally", but that doesn't really solve it.
The triad of Pratyahara, Dharana, Dhyana is what you need for "Concentration". See Patanjala Ashtanga Yoga at https://en.wikipedia.org/wiki/Ashtanga_(eight_limbs_of_yoga)

One simple but effective technique is to practice the above three stages by focusing at a point where the eyebrows meet the bridge of the nose. Do this completely relaxed with eyes closed and adjusting the focal point slightly forwards/backwards until you feel a sudden relaxation/jolt (slight but distinct) within the body. Its like a physiological trick but once experienced you will know it and can then use it to calm down and concentrate whenever and wherever as needed.
Really a non article as it feels like an edge case for usage.

It's not on 24/7.

No mention of I/O metrics or data stored.

For all we know, OP is storing their photos and videos and never actually need to have 80% of the drives actually on and connected.
I remember that too, it's when I started following the space (shout out computerphile/robert miles) and iirc the reason they gave was not "it's too dangerous cause it's so badass" they basically were correct in that it can produce sufficiently "human" output as to break typical bot detectors on social media which is a legitimate problem - whether the repercussions of that failure to detect botting is meaningful enough to be considered "dangerous" is up to the reader to decide

also worth noting I don't agree with the comment you're replying to - but did want to add context to the situation of gpt-2
That would be an application for VR goggles, and it seems Adobe has Medium for that. https://www.adobe.com/products/medium.html
How do they accomplish this when the other/background noise is speech, like in a crowded area; where you only want the person near you amplified?
Ah yes, the economy.

Sod people. Won't somebody think of the LLCs!!!

The sheer impudence of workers demanding money for their work and whining about rent.

There are shareholders over here who don't even have a megayacht to sit around on all day.
What they said is they decided to hide it:

> after weighing multiple factors including user experience, competitive advantage, and the option to pursue the chain of thought monitoring
Anthropic currently does much less hype stuff comparing to openai. It's remarkable that openai was like this until the GPT-4 release, and completly changed since Sam Altman started touring countries.
More like a triple lock steel core reinforced door laying on its side in an open field?

Good start, might need a little more work around the edges.
Putting a dataloader in front of batch APIs usually works okay. You end up with round trips but they're 1+1 and inside the data centre. I've used AST traversal to compute joins a couple of fields ahead + custom resolvers that only load their data if it wasn't loaded by the parent, but I don't think that's necessary to get decent performance and I wouldn't do it again unless there was a real business need.

I agree that genericity is often the opposite of specialisation. I disagree that it's a heavy price. REST is pretty general. To my mind specialist APIs are things like streaming video, file uploads, anything that relies on caching in an intermediate layer, etc. and these are all examples of where you'd follow the established standards and add some RESTful routes/services. I don't think it's sacrilege to upload files in a different way to how you load your user dashboard or your interface for editing project permissions.
Google is preparing to borrow a feature from Apple's Stolen Device Protection
There are 19 humans in space
By being valued as a tech company instead of as an automaker.
I guess they want the capacity to make planes indefinitely, if a really big war happens?
Not a fan of where this is going. Just use Rust instead. All this is doing is making c++ even more unmanageable. When developers are pressed for time they will revert to what they are used to and know. What you get in the end is a mess of code with different ideas at different parts of the system because they are developed at different times by different people. Or you are going to put down very strict guidelines and redevelop everything according to these guidelines. Then you are back to rather use Rust instead. The guidelines is built in the Rust language.
>We will deploy it significantly and liberally internally as both a knowledge worker aid and as a development aid.

Really vague. I wonder what their flavor of enterprise-search is here. Have to imagine there are use-cases much higher value than RAG over internal docs. Or maybe I'm underestimating how useful that is to their particular org.
this is my vision of the future, given the current rapid pace of development of ai.

just ask yourself: are you ready to pay $300k (65k tuition+20k living costs per year) for each of your kid to go to college, party, get drunk and study data structures & algorithms and Java?

do you want to spend 300k so your kid understands Cormen Leiserson algorithms book and do you think it is a good value ?

and I am talking about CS - arguably one of the highest ROI degrees out there.

meanwhile a kid from India/Eastern Europe who got same CS degree for $10k out of pocket will get the same knowledge and can get the same faang job
Nah, you and the parent comment to you are not quite there.

It really isn’t exciting because the technological shifts have already happened. The “Industrial Revolution” has ended.

There’s no remaining industry that isn’t served by plenty of software and hardware solutions.

The Internet is done, it exists. Smartphones are done, computers are done, cloud computing is done, and that’s about as good as it gets.

AI is just the next tech industry house of cards that followed previous farces that were meant to stir up investment. When gathering data wasn’t profitable enough, big data came along. When big data didn’t lead to enough profitable insights, AI came along. Each new technology promises the moon but they really onmy prodiundly benefit the companies making digital pickaxes.

Now you have every company under sun releasing AI products where they have so little clue what problem they’re supposed to solve that they just call it “[Company Name] AI.”

That’s because the problems are solved. There’s a CRUD app for everything. It’s the end.

This video sums it up pretty well if you ask me: https://youtu.be/pOuBCk8XMC8
Does it also monitor the contents of your copy/paste buffer? It would scoop up a ton of privileged data if so.
> Archaea lipids behave differently than those found in bacteria and eukaryotes

That's a hell of a thing to drop with no further explanation. I thought eukaryotes were supposed to have evolved from basically archaea, or at least very archaea-like ancestors. How do eukaryotes end up sharing chemistry with bacteria but not archaea?
As far as query languages go, you may want to look into prql, kusto or google's alternative (i forgot its name). They are composable, and more natural.
> Killing copyright because you dont like Microsoft would equally kill things like Free Software (because it would invalidate the freedoms enforced by the GPL.)

Without copyright, the GPL wouldn't need to exist because the freedoms it protects would be impossible to suppress.
Everyone is supposed to be cheering for how "fun" it is, but every time I see anything like that I cannot help but think, that I hate the fact it can be implemented in Rust. It never truly was a simple language, but I think it started as something way more manageable than what it has become.
>Try running a 6 month old Python project that you haven't touched and see if it still runs.

My experience has been 6 month of python works fine. In fact, python is my go to these days for anything longer than a 5 line shell script (mostly because argparse is builtin now). On the other hand, running a newly written python script with a 6 month old version of python, that's likely to get you into trouble.
~1k lines of bash with recutils for data persistency and dc for simple math. Was not quick to solve for me, custom invoices .fodt to .pdf to email, but I got it done. Shell is the only other scripting language I am familiar with other than Ruby. And I am worse at Ruby.

Sometimes options are limited to what you know already.
I saw Iohan fly past me walking on the KVR once, although I didn't realize it until I watched one of his videos and recognized the bike and flare on it. His suicide was so tragic. It's amazing how so many people from different walks of life can feel a kindred connection to him through his videos. RIP.
I think that's it! Thanks. I remember the subtitle.
The sorry state of IOT security combined with V2V/V2X really worries me.
Yes and even better for faster speed and greater shell compatibility for basic colors, you can use this POSIX code:

if [ -t 1 ] && [ -z "${NO_COLOR:-}" ]; then
COLOR_RESET='[0m'
COLOR_RED='[31m'
COLOR_GREEN='[32m'
COLOR_BLUE='[34m'
else
COLOR_RESET=''
COLOR_RED=''
COLOR_GREEN=''
COLOR_BLUE=''
fi

For more about this see Unix Shell Script Tactics: https://github.com/SixArm/unix-shell-script-tactics/tree/mai...

Be aware there's an escape character at the start of each of color string, which is the POSIX equivalent of $'\e'; Hacker News seems to cut out that escape character.
Earlier in the letter, he writes:

> Two of the fifty companies I backed are now among the 30 largest software companies in the world. And my IRR from inception has been consistently above 50% per year…for fifteen years.

But then he also writes:

> Right now I have enough money to do what I want. I don’t have enough money that other people do what I want.

I don't know Jerry Neumann's financial situation better than he does, but the man's been doing VC early-stage investing since the 2000s so I find it hard to believe he doesn't have enough money to get other people to do what he wants. Maybe not self-fund a competitor to OpenAI in this environment, but that seems like a failure of his imagination on all the possible companies he could fund. $50k would be enough to get the right someone to do what he wants for a couple of months.
I don't object to anything Docker does to discourage people from using it.
Like everything, cheap, quick or good rule applies (pick 2).

Software is pretty much always made cheaply and quickly. Even NASA will have b software blunders and have rockets explode mid flight.
> the idea that companies ruthlessly avoid paying bounties, which is, on information and belief, flatly false

Eh, it's likely usually true, but I've worked for a company which was attracted to the bounty program idea mainly for the optics and very much did push back on/was very reluctant to pay out on bounties.

And when I say "for the optics" I mean not only for the company being able to boast about having a bounty program but also the executive in question having something for his quarterly report. Having it not be too expensive was definitely part of the deal.

Needless to say this was a terrible company with terrible leadership, but it's a data point...
argparse? docopt or google-python-fire
Tesla is amazingly good at software development practices. It’s the new Fords that are bricking themselves via updates, not Teslas.
Russia Covering Aircraft with Tires to Confuse Image-Matching Missile Seekers
I'm not sure I see how that's true. The GPL puts a legal onus on modifiers to publish their modifications to the source with distributions of the software. Without copyright, any other party might be legally entitled to use and redistribute said modifications, but the modifier wouldn't be compelled to publish them.
PopTranslate: Open-source Chrome extension for translations without extra clicks
His wealthy parents, probably
It's not a problem, because the point at which we are in the logarithmic curve is the only thing that matters. No one in their right mind ever expected anything linear, because that would imply that creating a perfect oracle is possible.

More compute hasn't been the driving factor of the last developments, the driving factor has been distillation and synthetic data. Since we've seen massive success with that, I really struggle to understand why people continue to doomsay the transformer. I hear these same arguments year after year and people never learn.
Just no. AI being racist is still a popular meme. "Because the programmers are white males blah blah".
Agents don't just read env vars and send them to SIEM.

There's a triggering action that caused the env vars to be used by another ... ehem... Process ... that any EDR software in this beautiful planet would have tracked.
ULID or CUID2?
What should I use for a startup going after B2B sales?

ULIDs or CUID2s for primary keys?

I remember seeing Hussein Nasser's Shopify video:
https://www.youtube.com/watch?v=f53-Iw_5ucA

And it made me switch to using ULIDs instead.

I know this may fall into the "premature optimization is the root of all evils" category. But since it's straightforward, what should I do?

I've been using ULIDs in distributed systems with no problems so far.
Why is it so hard to imagine worlds other than the ones that you currently live in? as though there’s no possible way to resolve this concept, ergo something like syndicalist anarchism *gasp* who would’ve ever thought something so well understood long described could be implemented someplace imagine that. *faints*

As they say, it’s easier for most people to picture the end of the world than the end of capitalism

Maybe do more drugs or something

Read about Mondragon etc… and explore the idea of living completely differently
I can go 3 days without a charge on my Ultra. I'd say that's pretty incredible!
What is difficult is having Apple, Google, IBM, Microsoft, Intel, NVidia, AMD,.... compiler teams budget.
Reminds me of the HN outage where two SSDs both failed after 40k hours: https://news.ycombinator.com/item?id=32031243
There are secrets like passwords, but there are also secrets like "these are the parameters for running a server for our assembly line for X big corp".
how is this even news? people getting outraged that data put in the public domain gets used buy someone... what world am I living in here?
Crap. I messed up. Please disregard this post.
It's not racism, but from today, here's TechCrunch with: Hacker tricks ChatGPT into giving out detailed instructions for making homemade bombs

https://techcrunch.com/2024/09/12/hacker-tricks-chatgpt-into...
Here's a script that left an impression on me the first time I saw it:

https://github.com/containerd/nerdctl/blob/main/extras/rootl...

I have since copied this pattern for many scripts: logging functions, grouping all global vars and constants at the top and creating subcommands using shift.
They're not airtight in the true sense (besides the helium filled ones nowadays), but every drive made in the past... 30? 40 years is airtight in the sense that no dust can ever get into the drive. There's a breather hole somewhere (with a big warning to not cover it!) to equalize pressure, and a filter that doesn't allow essentially any particles in.
> And no lab where the new code was actually installed and run prior to global rawdogging.

I thought the new code was actually installed, the running part depends on the script input...?
Except for the helium-filled ones, they aren't sealed; there is a very fine filter that equalises atmospheric pressure. (This is also why they have a maximum operating altitude --- the head needs a certain amount of atmospheric pressure to float.)
Ask HN: ULID or CUID2 for B2B Startup?
I saw this after installing the Temporal.io client:
https://github.com/paralleldrive/cuid2

What should I use for a startup going after B2B sales?

ULIDs or CUID2s for primary keys?

I remember seeing Hussein Nasser's Shopify video: https://www.youtube.com/watch?v=f53-Iw_5ucA

And it made me switch to using ULIDs instead.

I know this may fall into the "premature optimization is the root of all evils" category. But since it's straightforward, what should I do?

I've been using ULIDs in distributed systems with no problems so far.
Making a rickroll laser: A parametric speaker
This kind of information seems like it should have a CVE and a responsible disclosure process.

Kidding, mostly, but wow that's a hell of a vulnerability.
Basically yes, but there's a very wide range of how explicit the feedback could be. Here's an example where I tell gpt-4 exactly what the rule is and it still fails:

https://chatgpt.com/share/66e514d3-ca0c-8011-8d1e-43234391a0...

and an example using gpt-4o:

https://chatgpt.com/share/66e515da-a848-8011-987f-71dab56446...

I'd share similar examples using claude-3.5-sonnet but I can't figure out how to do it from the claud.ai ui.

To be clear, my point is not at all that o1 is so incredibly smart. IMO the ARC-AGI puzzles show very clearly how dumb even the most advanced models are. My point is just that o1 does seem to be noticeably better at solving these problems than previous models.
Does this also mean X complied with the order to ban those accounts?