skysight-inc/HackerNews huggingface dataset:
A couple of ways: Function parameters with a "state" structure, processes (and function parameters).

A common pattern is something like this:

loop(N) ->
Next = do_stuff(N,...),
loop(Next).

That would be the first pattern. So you could have a state variable (or set of variables) which are changed on the next iteration. Since Erlang does tail call elimination, this is the same as a while/for loop in other languages but does not have explicit mutation. You can also return the new state and thread it through various function calls.

With processes, you can do something similar:

counter(N) ->
receive
Pid -> Pid ! N,
end,
counter(N+1).
user(Count_PID) ->
Counter_PID ! self(),
receive
N -> io:format("~p times~n", [N])
end,
user(Counter_PID).

(probably typos above, haven't done Erlang in a while)

Between these two, and more advanced use of language modules, you can provide mutable state (of a sort).

EDIT: Also worth noting that, before getting to anything beyond the basic syntax, both records and maps permit updates rather cleanly. For instance, with a map you might have:

Map = #{a => 10}
Updated = Map#{a := 42}

So if you have a register map and do something like (again, been a while so forgive syntax errors):

update_register(Rs, Register, Value) ->
Rs#{ Register := Value }.

The rest of the map is left unaltered, only the bit that needs to be updated gets changed. And Erlang/BEAM is careful about not making more copies than needed so in theory (at one point I studied these details, I've forgotten the specifics) this should result in very little new memory being allocated for the updated map.
Any random Linux distro or Free/OpenBSD install doesn't need an account of any kind. Unless you need an awkward modem which is hard/costly to get (e.g. cable internet, VDSL2+), almost everything can be a decent router. Commercial routers often have some kind of hardware offloading for routing built into their SoCs, but you don't really need that per se at residential internet speeds (<=1 GBit/s).

I'd recommend to separate router and wifi AP because this lets you pick the optimal place for the wifi AP regardless of where the internet cable is. Somewhat more costly but likely worth it for anything bigger than a three-room flat.
I guess a decade of sofa surfing would just about cover that!
The data that is at risk of being changed with malicious intent is certainly not insignificant, but still just a fraction of all data. Changing to this adds a new and complicated system, replacing whatever you're currently using, which will have seen far better testing and is known by the people working with it.
Indeed, deadly misinformation about a disease with a 99.8% survival rate. The shame, the horror...
Great, thanks for the info! I used Tgif for exactly that, designing SNMP monitoring with network maps/dashboard like pages. Forgot exactly which combinations I implemented, but it envolved Tgif, Tkined [0], Scotty [1], Big Brother [2] and later Netsaint [3] (now known as Nagios).

[0] https://www.ibr.cs.tu-bs.de/projects/nm/tkined/welcome.html....
[1] https://www.ibr.cs.tu-bs.de/projects/nm/scotty/tcl+snmp.html
[2] https://www.linuxjournal.com/article/2225
[3] http://netsaint.sourceforge.net/
Ask HN: A way to analyze search results for software gaps in the market?
Is there a way to analyze search results, click-through rates, and maybe even bounce rates to find gaps in the market for software solutions?

For example, I’m searching for a tool that does X, but the first page of search results are tools for Y and Z. After paginating a bit, I find a tool that does X but it’s full of terrible ads and the UI is clunky and unintuitive. This is where the opportunity reveals itself. As a software developer myself, I know I can build a better tool for X and eventually out rank the ugly tool I just used.

It’s easy enough to do this based on my own search experiences, but it would be really cool if there was a way to get these insights from a large collection of user search data.

Is there a way to do this? What tools do you use for this type of market gap analysis?
Pruning is on the roadmap.
> Aliasing does not exist in Fortran

Ha, I have some disgusting use of COMMON blocks from the 80's to show you. But that doesn't affect the optimizer's ability to assume that there's no aliasing, so you're totally correct about that.
> 21 infections is classified as a 'super spreading event'? What is 100 or 1000 infections, a super duper spreading event?

Wikipedia defines a super spreading event as an event where an infectious disease spreads much more than usual.

https://en.wikipedia.org/wiki/Superspreading_event

The study refers to a private social event attended by 33 participants comprised of triple-vaccinated healthcare workers, where 21 triple-vaccinated attendees contracted COVID.
Nicaragua seizes former Taiwan embassy to give it to China
As the article points out, super high carb diets make them very sick, but what about the effects of lower or normal (pre 1900) carb diets when they're not feeling sick?

Given that its pretty well known that high levels of sugar in the gut cause gut bacteria to go wild, a very reasonable research hypothesis would be to figure out why their gut microbiome is naturally deficient, such that turbocharging it up with a dose of raw sugar beings their gut microbiome activity up to normal healthy levels.

Sure dumping 2 liters of pepsi soda in their gut might cause all kinds of IBS like symptoms when their guts explode. But in the old days they just ate a couple berries once in a while, or at least the article claimed that.

This could be something as trivial as lots of fat intake means lots of bile production means some probiotic bacteria that's sensitive to bile suffers, until they eat a tiny amount of sugar that lets them grow to normal levels.

Could look at what gut bacteria do in stereotypical average humans. Gut bacteria under normal conditions do churn out some thiamine, folate, biotin, riboflavin, vit K, and probably stuff I'm not able to find from a quick search at pubmed central.

I think a really good research paper would combine the article results with a hypothesis that greenlanders as a group suffer (or, archeologically suffered, or occasionally suffered, or their kids suffered, etc) from deficiencies in folate, biotin, vit K, etc, basically the list above, and turbo charging their gut bacteria with a dose of raw sugar makes the bacteria more active which brings their vit K level or whatever up to normal human levels such that they're healthier on average and/or their kids die less often etc.

I didn't google up much immediately for deficiencies in Greenlanders. Maybe folate. Small amounts of sugar in small intestine would superficially seem to help with that. Folate deficiency really screws up pregnant women. As a hypothesis for a future research paper, it all kinda adds up, almost too neatly (conspiracy theory like). So their diet is not exactly folate rich, their pregnant women get all messed up, someone gets a mutation where their gut bacteria which produce folate get turbocharged by a couple berries, thus producing more folate in their gut, which optimistically is absorbed by their pregnant women, so women with that mutation have like three times as many living children as folate-deficient women without the mutatuon, it all kinda adds up.
If the mutation makes it so kids have diarrhea every time they eat sugar - it might be possible that they learn not to eat sugar and are healthier as a result. Some of the bad consequences of sweet diet are very delayed.

I wonder how they controlled for that effect.
Are you asking specifically about what I had to do to fix the faster, but previously incorrect implementation? It is on HN somewhere. Other than that, there is no problem. Perhaps people who took the site too seriously may have gotten the wrong idea about the language's performance.
Correct. And the article doesn't say so either. It just says that using it in pointless, negative-value ways is bad - and there's all too much of that. If you need a link, use <A ...>, for example, not a custom JS handler.
> you have to know the type of the variable to know which is which.

That's not correct. The error version differs from optional by the capture on the else branch. The optional version can't have it, and all error versions must have both captures. You can always tell which case it is just by looking at the code, without having to know the types involved.
About 30 minutes level flight for the FES systems now.

Launch limits you to about 15 mins and an hour in cruise says this very short review article https://www.aviationconsumer.com/industry-news/editorial/fri...
This doctor's claims made on that podcast have been largely debunked.[0] And his association with a serious-sounding medical group is rather revealing.[1]

JRE as Entertainment? Yes. Accurate guidance on important science issues? Not so much.[2]

[0]https://www.independent.co.uk/news/world/americas/joe-rogan-...

[1]https://www.reddit.com/r/JoeRogan/comments/rgzvr3/something_...

[2]https://www.mcgill.ca/oss/article/covid-19-health-and-nutrit...
Unless you sell/distribute pirated materials, yes. If you download pirated material from a random https mirror, then all they can come for you for is the lost revenue. If you use torrents it gets more difficult since you're seeding the material
LOL Actually one my hopeful future additions is to maintain (or use discovery) a list of name-to-repo mappings.

ie. I would love for users to be able to just do:

$ bingo install hugo
... installing github.com/gohugoio/hugo

I don't really want the concept of any project _owning_ a name, so in the cases where multiple projects were mapped/discovered for a given name, we'd want to ask the user which one they wanted to install.
Strong atheism of the sort you profess is religious in my opinion. It may or may not be spiritual, depending on its flavour. You don't sound like a God hating atheist (which is definitely spiritual).
I've got a C7 and it doesn't even need a cloud account to set up
Literally stepping off the shoulders of giants and wondering why you're less capable.
Personal anecdote. I tried (smoking) heroin once, out of curiosity, and I beg to disagree. It was really nice and calming. Then 30 minutes laters I got the urge and wanted more. Then felt nice again. Then 20 minutes later I wanted more. Then 10 minutes later. Then 5. Then the bag was empty and I felt like crap. Then the car wouldn't start and we had to push it to jump start - felt like one of the most physically demanding things I've ever done.

If you were to shoot it in the vein those effects would be exacerbated to a point I can't even imagine what the cravings and after-effects would be like.

Granted I might not have been in the best state of mind back then, but still. It's by far the most addictive (short-term) substance I've ever tried. I still use others irregularly but that one I'll never touch again.
Doesn’t the linked article explain the answer to your questions? I’m not sure I understand the snarky skepticism. Is it surprising that a scientific article with prestigious names attached has greater plausibility and weight than your example of “random” studies? Harvard backed studies as a rule seem to enjoy more support and media mentions than, say, University of Phoenix, no? There are examples of journal papers that are weighed more heavily than most, especially when the writing resonates with people emotionally. I can think of well known papers people talk about here on HN all the time as if they’re true, but aren’t.

Are you sure there thousands of primary-source coffee studies that make conclusions and judgements about whether it’s good or bad for you? Are you perhaps conflating blog spam and articles for scientific papers? There are lots and lots of articles, but not as many primary sources.
The details of the technology are not very clear. One possibility to understand it is that they are using some quantum device to detect magnetic fields, and the quantum part makes it less noisy. This is possible, but a transistor already has a lot of quantum mechanics effect. It's like saying "a plane can fly because it has metals", it is true, but a locomotive also has a lot of metals.

From the article:

> China has also famously made breakthroughs in using quantum entanglement for encrypted communications by teleporting molecules over long distances. This could conceivably have application to communications with submerged submarines, a technically challenging task—with implications particularly for transmission of orders from a national command authority to launch nuclear weapons.

The quantum entanglement is useful to agree about a "one time pad" securely, but you need a somewhat direct communication for this and you also need a conventional communication channel to send the encrypted info, so it does not solve the problem of the submarine under water.

From another article by the same author, linked in this post https://nationalinterest.org/blog/the-buzz/quantum-radars-co...

> A quantum radar functions by using a crystal to split a photon into two entangled photons. (Reportedly, finding a “fast, on-demand source of entangled photons” is the technical hurdle Canadian researchers are focusing on.) Then the radar beams one half of the entangled pair outwards, and monitors the corresponding effects on their entangled partners. If the beamed particles bump into, say, a stealth fighter, the effect on the beamed photon would be visible on the un-beamed partner photon as well. Then the photons which register a ‘ping’ are sorted out from the unaffected photons to form a sort of radar image.

It's impossible to measure any effect in the unbeamed photon https://en.wikipedia.org/wiki/No-communication_theorem , so I'd take any other article about quantum mechanic applications by this author with a grain of salt.
We’re saying the same thing. The web’s current tools requires devs to reimplement all that functionality from scratch, which isn’t gonna happen, when the ideal solution would be to start with the battle tested native control and then tweak from there to fit the design.
yes, and no.

You could have used the same argument with flash. It looked and ran the same everywhere, offered features totally unavailable with HTML/CSS and Js.

The point being is that it might work fine on your machine, but its not fine for the rest of us. I am lucky that I have a 2013 retina with a GPU, but even still, there are more and more websites that are slow as shit, for no real reason.

when I'm out and about, small website mean faster loading. this means that more people can use them without tearing their hair out.
LH2 tanks hardly weigh anything.

You must be talking about compressed gas, which of course would be obviously useless for aviation. So when anyone mentions hydrogen in connection with aviation, they do not mean compressed gas.
I have experience with physical eurorack modular synths, visual sound programming tools (VCV rack, Max, audioweaver), and DSP programming (Supercollider, Matlab). I think the simulated wires paradigm IS the best one...for someone who doesn't want to learn at least programming and probably also matrix algebra. In my experience, sound code is generally a LOT of ugly boilerplate code surrounding a few really brilliant lines of code that require years of education to understand. But in a code-based version of VCV rack, the brilliant code would all be inside some object.

You're essentially dealing with connected one-directional graphs of arbitrary complexity. Feedback loops are required for the eurorack experience. That's pretty easy to lay out visually, but I haven't seen good ways of laying it out in code. There's room for innovation here; Someone in the programming world has a more intuitive, more informative way of visualizing data in a graph that could be adapted into DAW paradigms.
Who said I'm looking for advice? I came here to discuss the findings of the study, which are relevant to me as an under-40 male.
I guess this is a new/regional thing?

Only if there's no Amazon in your region.

Amazon eeros require an account.

Apple's Airports did, too, when those were still being made. Not directly, but you needed an App Store account to download the setup utility.
In some countries such copyright assignments are in fact invalid.

Germany had to amend the law back in the day to make Open Source legal.

Before that it wasn't possible to forgoe payment and even now it's not possible in many cases.
Not a downvoter but...

> Pontificating about how they should just change their notion of right misses it completely.

The ask isn't to change their notion of right, but to understand that (yes, sadly) there is a tradeoff between "usable but ugly system components" and "pretty but janky" bespoke components, and they're making the wrong choice.
Yes, I meant if you're looking at the if() part - you either have to know if that's an optional or an error, or go looking for the else to see if that captures an error.

> because it looks exactly like the optional syntax until the else
Errors and suspicious code fragments in .NET 6 sources
Thanks everyone for making recommendations. I never expected so many answers :D Happy holiday!
Nearly all usecases for a power transformer are now better served by a switched mode power supply.

They tend to be much smaller, lighter, more efficient, cooler and cheaper. They also have features like adjustable output voltage, current limits, and overheat protection. Some can input and output AC or DC, at a configurable frequency and sometimes waveform. Some offer the same galvanic isolation that a transformer offers too.

The core of a switched mode supply usually is a transformer, or at least an inductor, but the key difference is that it operates at far higher frequencies than classic uses of transformers, which allows them to be far far smaller, and therefore cheaper for the same power output.
Now that it's 2021, most of the concessions the author makes are possible with CSS. You can change the styling of an element using hyperlinks with the `target` pseudo selector:

<style>
#dropdown {
display: none;
}

#dropdown:target {
display: block;
}
</style>
<a href="#dropdown">Show dropdown</a>
<div id="dropdown">
Dropped down!
<a href="#">Close</a>
</div>

This works for dropdowns, tooltips, modals, even navigation if you're navigating to known places (or if you use JS to pre-insert the destination into the DOM). And of course, you can animate the changes with pure CSS.
It probably depends on the type of innovation. If you are trying to do things differently, metrics are invaluable — most modern internal innovation teams use metrics to build and manage an idea funnel.

However, if your innovation strategy is to do different things, you will likely be focused on market differentiation, customer development etc. Common practice is to refer to AARRR metrics for this, but it’s not like metrics themselves are the main focus.
I don't mean to start a "religion versus atheism" comment battle, but just wanted to discuss the idea of moral responsibility. For context, I grew up in a Christian (Eastern Orthodox) household and attended church for some twenty-five years of my life - that is to say, the perspective of a believer is not lost on me, even though I am now agnostic.

For me, responsibility is irrevocably linked to the idea of care - caring for those other than myself makes me responsible for my actions, inasmuch as they impact those around me. That ranges from those I love (my partner, family, friends) to strangers on the street that I nonetheless "care" for, by recognizing our shared humanity. Care itself comes from the idea of finitude - specifically, the idea of fragility of life in the face of our mortal existence. If I'm being poetic, "living rightly" means a life that is spent caring for others, strengthening the bonds that link us in face of death. The consequences of our actions are felt precisely because of the finitude of our lives - all we've got is each other, and our responsibility is towards one another.

Religious morality of the other hand is best expressed in the story of Abraham being asked to sacrifice his son (it's no wonder the three major religions are called "Abrahamic"). For a deeper dive into the idea, I recommend reading Kierkegaard's retelling of this story in Fear and Trembling - to recap however, God asks Abraham to sacrifice Isaac, they travel to mountain where Abraham binds Isaac and lifts up the knife to kill him. At the last moment, God interrupts Abraham, and a ram is offered as sacrifice instead. This story, perhaps one of the most well-known stories from the Old Testament of the Christian Bible, goes directly against the idea of responsibility in moral judgments - Abraham does not falter, for he fully trusts his Lord, giving up his son in devotion to God's command. The idea of care or responsibility for ones actions is superseded by the belief that the will of God is, in fact, more important than caring for those around you. A true belief in an everlasting life presupposes a detachment from the world (as any cursory reading of writers such as Saint Augustine shows), in a way protecting and insulating the believer from truly coming to terms with the consequence of their actions (in this case, murdering their only son).

To sum it up, I just can't get behind the idea that a final judge is somehow required for having responsibility in moral judgments. In fact, the opposite is true - only through the secular faith that there is no better everlasting world can we form meaningful relationships and take full responsibility for our actions.
Great timing on this article. I have a rpi4 and a pi cam v2 which I want to have some fun with and was in need of inspiration. I am currently using it as a security camera while I am away on holiday but wish to have a play both with slow motion video and perhaps some object detection using opencv.
The latter I have already tried but all the articles I found seem out of date so I will need to spend some more time on.
In Zig zero initialization is not idiomatic. Unless you have an active reason to do so (and during AoC you need zero init a lot more than normal IME), you should just set the array to undefined like so:

var foo: [64]usize = undefined;
Agreed. This was my first AOC, and I did every day in rust (except for one that I did by hand).

Multiple times I'd go look at the source of a data structure and it reads very easily. I'd even share my code with friends and coworkers who weren't familiar with Rust (so we could compare..they were most familiar with Python). Not only could they easily grok my code, I showed them how docs.rs let's you easily see source. All of those that looked, could read it easily with some explanation from me on traits, pattern matching and generics.

I think it's obviously a subjective thing...but I very much disagree with the author that idiomatic Rust is difficult to read or comprehend.

In fact, I find Rust easier to grok, because I need to keep less in my head at any given time. Function bodies become almost self contained, without me having to think about lots of details like errors and return validity etc...
There is Blue Coat. The technology to MITM TLS connections is widespread, but I'd recommend against it. You would create a single point of failure for your whole infrastructure and a prime attack target. Also, if the proxy fails to correctly validate the TLS connection, every service will end up talking to the wrong endpoints.

Possible alternative: a dedicated API facade that forwards to the real APIs, and blocking of all other connections. There might be a tool that generates one from Swagger specifications. Also, require a client certificate or a password for each service. This way, you get centralized logging and access control without breaking TLS.