skysight-inc/HackerNews huggingface dataset:
I've used Finnix[1] for recovery tasks in the past. Having a good Linux distro on a USB stick makes me feel ready for any (most often self inflicted) computer emergency. It's the sysadmin equivalent of a Swiss army knife.

[1] https://www.finnix.org/
Why would you need hundreds of thousands or millions of goroutines for a cell phone app/daemon?

I would expect the number (and corresponding memory usage) to therefore be low.
> They can say that, but it makes them look like assholes. So it's not effective for them to do that

Unfortunately, there a lot of assholes that only act like assholes behind closed doors with other assholes that tolerate them being assholes because they spend money out the asshole.

/s

But actually my point is that public PR team can't say that but Tim Cook giving Ted Cruz a quiet phone call can totally say that (off the record), probably followed up with "this would keep us from affording that new Texas factory/office/thing we were about to build with this money we make"
Ask HN: How do you do threat detection for databases?
Hi,

I'd like to learn more about database threat detection.

How do you detect threats to the database at your company or within your projects?

What products do you use, how do you configure them, and what resources do you recommend reading?

I’m not interested in how to secure a database using privileges/roles, data masking, IP sec, etc.

This thread is purely about threat detection.
Thank you. This is what I come to hacker news for.
I live in Copenhagen and have heard the same story from friends or acquaintances. After the pandemic where a lot of servers and chefs were laid off, the restaurants are having a hard time finding staff. Pretty much every place is looking for staff, and some are closing earlier because they can't find any. People know the conditions are horrific and seek into other industries.
I don’t know when you were in high school, but if it’s very recent, $200 for 3 is way below the average quoted in my linked report. If it’s not very recent, then you didn’t have access to the program being cancelled in TFA in the first place.
Pumpkin seeds do it for me. There's something about the fiber in the shell that irritates the throat after a while. Eat enough and I'll get hiccups for hours.
Expect, Go doesn't do that. It grows stacks as you use them and shrinks them if you stop using so much. So the overhead should be limited. FWIW, heap allocations also come with memory overhead.
I tell people from out of state that I’m from Chicago, because they’ve heard of that but not Geneva, Illinois.
> (It's actually kind of weird that there isn't already anything like this on the books in America; so it was possible for the private sector to e.g. shut down all the 5.25"-floppy-disk factories, despite military missile control systems still actively depending on them. You'd think governments would wield at least contract law — if not legislation — more eagerly, to protect "critical logisticla dependencies" like these.)

1. The government can just say "we'll spend $10,000 per flop-disk reader" and some one will probably find a way to produce that profitably.

2. https://en.wikipedia.org/wiki/Defense_Production_Act_of_1950
Oh, satellite-based internet as well. I forgot an enormous achievement due to the length of the grifter's list.
Or, just try holding your breath for 30-45 seconds. I'm betting you've discovered a round-about way to achieve the same mechanism of action (raising level of CO2 in your blood).
https://www.bbc.com/future/article/20140127-do-hiccup-remedi...
I think you really don't reach the top without massive ego and quite a level of obsession. Some mellow out or see that they have done it all and don't need to show off anymore, but for rest the publicity might be more about continuous validation.
Show HN: Arttime v1.3.0 adds interactive timezone selector, more to come
Nim does not show that at all, as it is not really that interactive.
Sure, but my point is that if you want to run 100k-1m things concurrently, you need to store state for them.

That has a memory cost no matter what.
You’re giving them too much credit. A lot of crypto are just incompetence and failed startups. Not everything is a scam just because it didn’t work. Some were just misguided attempts (in hindsight).
Yes, disabling promotional notifications is an option - except if the app developer applies the dark pattern described in the article. But even when it works, the app developer just goes on their merry way, annoying other people too. I believe it's better to send a signal, and educate developers about what we as users want.
It looks like the snake island was a huge failure for Ukrainians, with videos confirming that
> For those who struggle with sleeping through really intense dreams, strong indica cannabis will suppress dreams for many people, but the side effects are a lot of grogginess the next morning.

For better or worse, there can also be a strong rebound effect with extremely vivid dreams when you stop smoking regularly.
This is particularly important wile working with working with engaging (please read as distracting) apps like Slack.

I am using same rule and my slack is very quiet while colleagues are constantly complaining of distracting messages.
I don't understand this, this is the way every hierarchy work, and how every single job/management role is functioning. It's to solve the problem of communication overhead growing exponentially with larger groups of people. Why does this make you sad? And is it better to have a dysfunctional organisation where people float in and out of poorly defined roles and everyone tries to do everything? Does that really make you more happy? I don't get this emotional take on specialisation.
> Now it’s all SaaS where you have to pay monthly

You have to upgrade eventually, though. In theory, the SaaS product could be priced the same as the shrink-wrapped version, just divided by 60 months. I suspect it's more expensive, though.

All things being equal, if I ran IT, I'd rather have the SaaS model because I'll always have the latest version and not have to deal with the drama of upgrades every 5 years. I'd also prefer it as the vendor because I don't need to support multiple versions of the software long-term.
You’re downplaying the enormous social pressures that are used to make these things happen. I describe it as a cult because that’s what it effectively is; the tech leaders bring in young, impressionable people and throw money at them, and provide an environment that seems welcoming and safe. Then they start manipulating them.

“Don’t you want us to succeed?”

“What do you mean you’re working too hard? Steve is really counting on you to get this done, and Carol has been working late nights for a month. You don’t want to let them down do you?”

“We need this new technology to succeed, you’re so smart that I’m sure you can figure it out over the weekend.”

It’s all bullshit, but there is a method to all of it. I fell victim to it and so did many others that I know. Honestly, if it wasn’t for my family I would probably still be suckered in, but when I no longer had time to be a father anymore it gave me a reality check.
>What you need to do instead, if you remember anything at all (even just part of a dream, some fleeting image) is get out a piece of paper and write it down immediately, in as much detail as possible.

I've had very good luck with a slight variation of this, too -- especially at the start. Rather than immediately waking up and writing down your dream(s), I've found it very helpful to immediately close my eyes and continue to visualize the dreams as I go back over what happened in each. This lets you build up more concise (see: faster-to-write-down) outlines without as much "real world" visual input trying to break those fragile dream memories. This approach might be overkill for writing down a single dream, but IMO helps a lot when you're trying to remember and write down multiple/many dreams.
>with the added benefit of actual inheritance

Has this inheritance actually been experimentally demonstrated? Yes, random assembly of inherently unstable RNA molecules in a nucleotide soup is possible. And agreed, some of these randomly assembled RNA molecules might have limited catalytic properties (nothing like peptides). But - we need a mechanism of genetic continuity - before we get to inheritance.
macro is not like lambda. macros are like special forms.

a lambda evaluates all it's args, a macro not.
Sometimes you're writing code, and you want to be able to express an idea that your language does not elegantly support. But you know how to express the idea, but it takes a lot of boilerplate, or is just a massive nuisance to write.

Metaprogramming allows you to write a function that generates the boilerplate, and transparently use that function as if it's a brand new keyword in your programming language. That function in metaprogramming circles is called a "macro", not to be confused with C macros.

Stated another way: a macro = a function that takes as input the code you want to write, and provides as output code that your programming language can actually execute. (It's like a super miniature compiler.)

For example, let's pretend C is metaprogrammable.

Perhaps I want a new keyword "pfor" which is like "for" but executes the loop in parallel.

int x[20];
pfor(i = 0; i < 10; i++) {
x[2*i] = expensive(2*i);
x[2*i+1] = expensive(2*i+1);
}

Here, we assume "expensive" is some really expensive function that maybe might take several seconds to execute, which is why we want to parallelize it.

This "pfor" is just a sort is pseudo code. In reality, you know how we would actually have to write this: make a loop in which we spawn 10 threads, set i to be a thread local variable in each, call a callback function in each thread

void thread_callback(int i){
x[2*i] = expensive(2*i);
x[2*i+1] = expensive(2*i+1);
}

and join the threads at the end. This would have the equivalent effect as our desired "pfor" keyword.

In a metaprogramming language, we can add this keyword by just telling the compiler what code to generate any time it sees "pfor". We could write something like

macro pfor(var = init, cond, incr, body...) {
symbol callback = generate_random_symbol();
```
void $callback(int $var) {
$...body;
}
vector threads;
for($var = $init; $cond; $incr) {
threads.push(make_thread($callback, $var));
}
for(t in threads)
join_thread(t);
```
}

The triple ``` starts a template, and the $ escapes a template. We have to generate a fresh symbol for the callback name so that they don't collide when we use "pfor" multiple times.

Now every time we use "pfor", the compiler will look at our homemade code generator function and write out the code for us.

So in effect by telling the compiler how "pfor" can be implemented in more basic code, we've added "pfor" to the language.

This isn't a separate tool however! It's not a pre-processor or anything like that. It's built in to the language (hence why it's a programming language paradigm).
> At times I've had pretty interesting dreams, but since I was a teen (decades ago) wondered if perhaps the dream was made on the spot as I "remembered" it.

This is easily disproved by observing that people sometimes mutter in their sleep as they dream. Cats/dogs vocalize and twitch while dreaming too sometimes.
I'd be interested to know regardless - the @0 in the Python 3.9 example has me stumped. Maybe it's a decorator but I don't think so. It doesn't look like matrix multiplication either.
This was in the mid-2000s. And your second point has zero relevance because my state (WA) had a separate program for reduced / free lunches for children in poverty. As a result of that, I believe free school lunches should be universal, per the program being cancelled.

Do you have any more assumptions you'd like to make?
In the latest (few) Macrovoices podcast it's speculated that OPEC is actually out of capacity. It was mentioned that a Saudi minister also said something along those lines recently.
Thanks for the link! I’ll read it shortly.

Update: This seems limited to the idea that some female founders are sexually harassed when fundraising. That’s terrible, but I don’t think this article alone is sufficient to justify saying that “we have all the advantages”. That’s one issue out of potentially many factors of advantage and disadvantage that might each lean in the direction of a different group on average.

> You have to bury your head in the sand to not see how many racists have come out of the shadows in the last 6 years. They were there the whole time, making decisions based on race.

If you’re willing to provide another link, I am unfortunately not aware of this either, not even rumors of it, so I don’t know where to begin to look. Unless you’re talking about anti-majority racism, in which case I’ve seen tons of it firsthand.
I never knew! Thanks for sharing!
Well remember “functional vs imperative” isn’t a real distinction - Lisp is imperative. That showed up elsewhere where the “pure functional” languages like Haskell are the not-imperative ones.

JS has other differences on the “correctness” spectrum, like all numbers are doubles instead of bignums. But even if that’s “incorrect”, just imagine how much more memory your Chrome tabs would use if you let people use bignums everywhere.
I mean, clearly you could do this with a shell script, but I believe that tcl is installed by default on MacOs, so there's that too, both wish and tclsh are available so you could even have UI (as long as you don't care about accessibility)
Bookmarks available to everyone on your network seems valuable.

Personally, I just add a bunch of A records to my DNS server. Pretty easy to remember that the photos are at photos.domain.com.
Same. I'd go back to it in an instant if it had a 4G network connection.
Abusing CT log is unethical.

For practical purposes DKIM signatures in emails would do the trick.

Write an email to yourself, or to someone you trust, its DKIM will include the timestamp and it can be verified publicly.
I can't say that I know any Americans that fear bankruptcy. That doesn't seem like a serious objection.
If only there was some standard for publishing some sort of a feed. Perhaps with the title, or even a snippet of the article, maybe even the whole article!
You could theoretically ingest these feeds and consume them as you like. Dropping into the original content at will.

Maybe some day...
For that method, I have to clench my abs as hard as I physically can, and usually a hiccup will still force its way through.

It does work, but it's not easy and usually take 5+ attempt to stifle the one that forces through.
Is Wi-Fi for ESP32 devices is working yet?

I didn't see anything specific one the supported boards page.
You’re missing the fundamental difference in the power vs distance curve. In the case of sucking water, it flatlines and no amount of additional power can move the water another inch once you’ve exceeded the pulling power of a perfect vacuum.

Without looking up the actual equation, I would guess that this is never true (or at least practically never) when pushing water, because you’re not limited by atmospheric pressure.

When pushing you have to provide enough energy to move all the water in front of you, but if you do provide that energy the water will move. At some point I suppose the pressure will get so high the water will solidify in the pipe though?
It can mean a few different things, in this case it's about programs that manipulate the program source and produce new programs (or program segments). Think of a code generator that can take a DSL and turn it into some valid (for execution) code:

for i in 1 to 10 do printf("%d\n", i)

Becomes (through a preprocessor in this hypothetical system) valid C as:

for(int i = 1; i <= 10; i++) { printf("%d\n", i); }

Now that's not too interesting, but it is a bit (subjective) nicer looping syntax than C's straight syntax. In the Lisp case, macros allow you to take an arbitrary set of values (the parameters to the macro) and produce some other value or values in their place. This could be just executing the code to get a kind of compile time evaluation:

(hypotehtical-expression-evaluator-macro (complex-computation-that-gets-reused-100-times-but-takes-10-minutes-each-time))

Or it could be more transformative, like Lisp's loop macro that lets you write an Algol-ish loop instead of a lisp-y loop (or using recursion or other approaches):

(loop for i from 1 to 10 do (print i))

Which gets transformed into some other valid Lisp code (not on my laptop so not in a position to actually show the result).

David Moon's "Moon's Mark Down" is actually a pretty neat case of Lisp meta programming. He defines a macro defdot which will take a name for a particular directive for his markdown syntax and generate all the necessary functions so that things "just work". And when parsing, when a . is found at the start of a line, the correct handler is calculated and called. To add a new directive, you add a new defdot and that macro will create the relevant functions and register the new handler.

http://users.rcn.com/david-moon/MMD/HTML/index.html

http://users.rcn.com/david-moon/MMD/MMD.lisp
Seems like an interesting problem, but I have zero background knowledge. Could you share who would use this and why?
A lot of cars get totaled. My car would’ve made it to 200k but someone ran into it at 196k. Due to depreciation and mileage - it was a full write off after that crash.

For reference, I could still drive the car after the crash just barely. It would’ve been a lot of work to fix but on a 50k car, it might’ve been worth it. On a 5k car? No.
People can just have higher salaries and save for themselves for their pension, just like any other expense they have in life.

There is no practical need for this to be centrally managed, other than you can't trust people to be responsible and plan for the future.

People already manage a big part of the pension savings by themselves.
I'm figuring short hair must trap carbon less, there is probably a sweet point where longer hair starts to decrease in carbon trapping utility so probably you should grow hair to the optimal length and cut back to optimal trapping length. Same for beards.
Why would you think the best hospitals in the USA outperform any other developed country's best hospitals? Especially when those countries already deliver better average results across the board. Why do you have this belief and what is it based on?

One example of cancer outcomes on a per country basis:
https://worldpopulationreview.com/country-rankings/cancer-su...

Just google medical outcomes for any disease on a per country basis.

Do you really think the best hospitals in France or somehow worse than the best hospitals in the USA? Especially when the best hospitals in the USA still have the same fundamental problems as the rest of the American system?
Thanks, that is informative, although now I’m confused why Google cares about SBCL. That seems like a Yegge-only thing.

I did think of a specification-level security issue - bignums reduce math errors but mean operations are O(N), which puts you at great risk of DoS issues and sidechannel leaks in security-sensitive math.

And of course Lisp’s features like macros tend to be powerful, and security has a “rule of least power” meaning those are harder to verify if you can’t statically analyze them.
Alternatively, use a esp8266 or similar.
Some thoughts that might blow the mind:

A) price of oil/gas was going up well before Russia/Ukraine. Putin’s work is an aggravating factor, but hardly the whole reality of the market challenges.

B) fuel demand is pretty inelastic compared to lumber. The world is still moving into fossil fuels (increasing demand each year), not flatlining, let alone decreasing. When the supply shrinks, we’re all competing for the same limited supply of dino-juice with our fist-full of dollars. [yes, algae and plankton, I know].
I believe California and Maine are starting universal school lunch program since this year.
I have a similar story to the comment you're replying to and remember most, if not all, of my dreams each night -- which are almost entirely vivid nightmares I'd prefer not to remember. Lucid dreaming is a skill that can help (waking up or taking control when you recognize a nightmare is a dream), but IME it's high-effort enough to maintain the skill that I now just try to sleep as little as I can instead.
An entire file is parsed first, before any code in it is run.

If your __init__.py didn’t have any version-specific syntax, then yes you could check the interpreter version before importing the rest of the files.
Personal choice but indeed Trac is very nice and is still used by high profile projects like Django (especially supporting ticket triage) and Twisted Matrix.

Indeed fossil-scm [1], has same interface as Trac (in my view partly inspired by it). Have used Trac for a long time, so can't complain, it works well, its simple and flexible.

[1] https://fossil-scm.org
The DKIM idea will not work: some email servers intentionally publish their expired DKIM keys to avoid people leaking mails (https://blog.cryptographyengineering.com/2020/11/16/ok-googl...)
Qorg’s Experiences with OpenBSD
Minimum wage discussion is always fun to read. How there is always comments popping up about "protecting" small-businesses. So those deserve to exploit their labour, but labour doesn't deserve fair rates for work?
Scratch Console: My Friend Built a JavaScrpt REPL
How is this better than hashing a txt document with a claim which has a timestamp in it?

shasum -a 512 filewithtimestamp.txt
That's not what I'm referring to. Yes, the water system is pressurized (as are all), but the tunnels themselves are ~500 feet below ground [1][2]. Water is pumped to valve chambers which are themselves far (~250 feet) below ground, then again to the surface.

The head pressure on a 500 foot column of water would be over 200psi. This article [3] says that the first leg of water tunnel three runs at over 300 psi, though, so maybe that's the answer. It just seems crazy.

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

[2] https://www.theverge.com/2013/10/19/4853636/underground-with...

[3] https://www.baltimoresun.com/news/bs-xpm-1998-08-21-19982330...
Ask HN: Who are the most influential computer scientists in history?
While this field was built by the efforts of countless brilliant people, who are, in your opinion, the ones who had the most influence? People who worked on the "computer" side of the field, and not just mathematicians.
It is indeed a decorator. It's relying on https://peps.python.org/pep-0614/
I don't know either, but in English one definition/sense of para is "beyond", so it is "beyond language symbols", which shapes up to be something in the sense of a sort of programming paradigm where everything is subject to redefinition, particularly on the fly.
The second point is relevant because smaller scale, more targeted programs existed before and can continue regardless of this sweeping program.
> if your budget isn't balanced you need to borrow.

No.

That is how it works for citizens and households.

That is not how it works for governments and central banks. Their role and their financial apparatus is completely different.

Thinking that it works the same way is a well-known fallacy. The government more closely resembles the _counterparty_ in civilian borrowing.

https://en.wikipedia.org/wiki/Government-Household_analogy

https://www.taxresearch.org.uk/Blog/2019/11/11/the-uk-govern...

https://theconversation.com/why-the-federal-budget-is-not-li...
It predates them. Wait for v6, or maybe they’ll do a v5.1 Beta.