skysight-inc/HackerNews huggingface dataset:
This article / idea really refactors two things out of some IO code

- the event loop

- the state machine of data states that occur

But async rust is already a state machine, so the stun binding could be expressed as a 3 line async function that is fairly close to sans-io (if you don't consider relying on abstractions like Stream and Sink to be IO).

async fn stun(
server: SocketAddr,
mut socket: impl Sink<(BindingRequest, SocketAddr), Error = color_eyre::Report>
+ Stream<Item = Result<(BindingResponse, SocketAddr), color_eyre::Report>>
+ Unpin
+ Send
+ 'static,
) -> Result<SocketAddr> {
socket.send((BindingRequest, server)).await?;
let (message, _server) = socket.next().await.ok_or_eyre("No response")??;
Ok(message.address)
}

If you look at how the underlying async primitives are implemented, they look pretty similar to what you;ve implemented. sink.send is just a future for Option<SomeMessage>, a future is just something that can be polled at some later point, which is exactly equivalent to your event loop constructing the StunBinding and then calling poll_transmit to get the next message. And the same goes with the stream.next call, it's the same as setting up a state machine that only proceeds when there is a next item that is being fed to it. The Tokio runtime is your event loop, but just generalized.

Restated simply: stun function above returns a future that that combines the same methods you have with a contract about how that interacts with a standard async event loop.

The above is testable without hitting the network. Just construct the test Stream / Sink yourself. It also easily composes to add timeouts etc. To make it work with the network instead pass in a UdpFramed (and implement codecs to convert the messages to / from bytes).

Adding timeout can be either composed from the outside caller if it's a timeout imposed by the application, or inside the function if it's a timeout you want to configure on the call. This can be tested using tokio test-utils and pausing / advancing the time in your tests.

---

The problem with the approach suggested in the article is that it splits the flow (event loop) and logic (statemachine) from places where the flow is the logic (send a stun binding request, get an answer).

Yes, there's arguments to be made about not wanting to use async await, but when you effectively create your own custom copy of async await, just without the syntactic sugar, and without the various benefits (threading, composability, ...), it's worth considering whether you could use async instead.
Well, phishing attacks are still prevelent and it's still at the top for compromising credentials. And phishing attacks have evolved. Most of them will hijack your session, which will make TOTP useless (FIDO will protect you tho)
?

Politics cause physical issues. Like things getting bombed. And physical things like distance impact politics - it’s easy to blame a country on the other side of the world vs a neighbor (that people know), or ourselves, for instance.

And why it’s a fantasy is the large capex needs to be spent - while the period of least trust and apparent need exists. And a lot of distance needs to be built before it produces any potential value. And the physical issues. And the politics. And since the benefit comes from the long distances, this isn’t something that is ignorable.

If such a thing already existed, for instance, and countries were using it without abusing it, then being able to justify the cost - and not feel a need for lots of storage - is likely easy. And it’s easy to trust someone when you can see the actual economic incentives for them to behave, and have a track record of it happening. And if everyone is (actually) using it, then it is hard to pick one party (you) off without the whole group ganging up on the offender.

But without such a thing existing, everyone needs to worry about whoever is funding it (if a large country) abusing it to control them, or if everyone is funding it, some random country they don’t like throwing up roadblocks to stop the project actually working for them - and bankrupting them. And since it wouldn’t benefit all countries simultaneously (due to the physical difficulty in constructing such a thing), and it won’t even be actually useful until it is very long already, there is a larger risk of hard feelings and sabotage.

And since they would be dependent on it reaching so far, and countries being so far away playing nicely, the risk on that front is huge.

And the only meaningful way to mitigate that risk is to build lots of storage at a national level.

Which also removes the primary advantages of the project in the first place.
>> saving physical visits to read the meters

Why can't users read the meters themselves and send to the electric company once a month?
I’m currently working with tamagui. I interact with their discord a lot, helping people troubleshoot or asking questions. I’ve gotten a few offers to consult through that alone.

Pick a framework or library, get involved.
I own a voyager and you are correct, the switches are too close so I frequently press things by accident.
I do not think he means "weird conspiracy" but elite knowing where the money (and control) is.
No one has gone back for real spreadsheet work tho
So it's sort of like saying "techniques developed for nuclear weapons design" when all you mean is Monte Carlo methods?
M1 here. I used to have those "actual problem" questions for my interviewee, but my parent company's HR said we'd have to stick to questions that would yield better "yes/no" on a candidate than "how they think". In the end we were forced to use LC as a source for questions.
> and there aren't any "ui/ux designers" specialising in cursor-addressing uis.

Depends where you look.

https://davideellis.wordpress.com/2012/08/31/ibm-tivoli-moni...
Why does it have a swivelling head? I would have just mounted a 360 camera there. Then the operator can turn their head in any direction as fast as they want without the latency of waiting for a mechanical head to catch up.
OMG have you forgotten why we got up to our asses in computers in the first place??
The Stun protocol is surprisingly easy to implement, but see my comment at https://news.ycombinator.com/item?id=40879547 about why I'd just use async instead of making my own event loop system.

https://gist.github.com/joshka/af299be87dbd1f64060e47227b577...
I wonder if they meant "tool for open source" as opposed to "tool that is open source".
Apple will never cannibalize themselves like this. There isn't event multi user support on iPad which would be something trivial to do and everyone know ipad is a family device yet here we are.
https://news.ycombinator.com/item?id=40879547

async fn stun(
server: SocketAddr,
mut socket: impl Sink<(BindingRequest, SocketAddr), Error = color_eyre::Report>
+ Stream<Item = Result<(BindingResponse, SocketAddr), color_eyre::Report>>
+ Unpin
+ Send
+ 'static,
) -> Result<SocketAddr> {
socket.send((BindingRequest, server)).await?;
let (message, _server) = socket.next().await.ok_or_eyre("No response")??;
Ok(message.address)
}

Fully working code at https://gist.github.com/joshka/af299be87dbd1f64060e47227b577...
It’s still not a straight answer. I clicked both links and did not get a figure so there’s another few minutes research
It seems like a fun way to make a little mark that represents yourself.
So, you just need to set up a scheduled task to download the leap seconds file from the IERS once every six months?
cool. didn't know that.

in that case, I bet there is some implementation called scam, because a French person might pronounce scheme as scam, like femme is pronounced in the famous phrase "cherchez la femme".

https://en.m.wikipedia.org/wiki/Cherchez_la_femme
I filled it out. Today, my main use of optical media is that I still buy music CD's, typically from indie artists at their performances. On numerous occasions I've asked them how to buy their stuff, so that the money actually goes to them, and not to a middleman. The answer is always the same: "Buy the CD." Some of these artists are not super sophisticated about online distribution.

Then I take the CD home and rip it onto my NAS using a USB optical drive.
Yes, and literally everyone thinks they're the good guys.
> they can't fit an exponential and extrapolate correctly.

Anyone fitting an exponential isn't extrapolating correctly pretty much by definition. As you note:

> Exponential growth always has to stop somewhere, but that's not in and of itself a reason to think this year is the year that it will.

This is a god of the gaps argument. There's no reason it should stop this year, there's also no reason it shouldn't. Fitting the curve is only useful if you're actually presenting an argument as to why for the relevant interval it should continue.
There's also gaps in the labels on the database chart.
> thief breaking into your house, stealing all. . .

This is where your analogy is flawed. You are pre-supposing the "defendant" is indeed the thief that stole your property. Whereas that is entirely a legal determination which is the outcome of a trial AND at the heart of this discovery request. More aptly if you thought steve stole your red Ryder bb gun, and Steve was indeed found to be in possession of a red Ryder bb gun, it would still be the prosecution's burden to prove that Steve stole it from you (instead of purchased it from a store).

Similarly here, if NYTimes is claiming that openai's gpt4 illegally reproduces "to be or not to be. . ." (Or whatevs) from issue #8628 page 76, it's still their burden to prove that is actually a thing that is both copyrightable and that they own the copyright to vs. openai just reproducing Hamlet instead of a nytime's reporter's particular review of a production of hamlet in that issue. Etc. etc.

More germanely, if you point an llm at a pile of source documents and ask it to write a newspaper article, it'll happily do so in 2024. Understanding if/how this is fundamentally different from what a reporter does when synthesizing that same article goes to the very heart of this case (i.e. which transformative works are indeed copyrightable)
I increasingly favor OAuth when I encounter the option, even though I resisted at first ("too many eggs in the google basket").

I am sick and tired of needing to conjure a unique 12-character password with 4 different keyset features in order to gain access to a coupon-clipping site, someone's blog about bundt cakes, or a forum discussing solar panels.

The exception is where loss of the credentials can do me real and meaningful financial harm. I have no problem managing unique, complex, and rotated passwords for these. I also expect 2FA for these at a minimum.

Everyone is doing this so terribly that I wish they'd all just farm it out. correct battery horse staple indeed. :)
Synchronous Core, Asynchronous Shell
Well the other issue though is that people looking for predictions want conservative predictions because they're investing. Over-estimate and you lose money, under-estimate and you leave money on the table but don't trade away future possible gains.
C sequence points are arbitrarily imposed by imperial decree in the standard; they are not linked to any evaluation causality.

Dependency-driven de facto evaluation orders have always existed in C though: things that you can figure out must be ordered even though there isn't a sequence point.

The standard spells out that expressions like i = i + i are okay, but actually it's not necessary to do so. The assignment cannot take place until the assigned value is known. The assigned value is not known until the + is evaluated and the + cannot be evaluated until the operand values are retrieved. Therefore, the retrieval of the prior value of i necessarily precedes the movement of the new value into i.

This, rather than sequence points, is rather a bit like monadic sequencing.
I’m not looking for too much challenge in my leisure time. Having read both the Harry Potter series and Infinite Jest, I think I prefer the former.
Ah bummer. They do have a web version though if I’m not mistaken.
The post you were replying to was specifically about cells, and if you’re going for economy, building your own packs are substantially cheaper than buying packs domestically. Also less fraught when you’ve DIYed to diagnose and fix when things go wrong
What's missing here is a comparative reference.

(I read the source article relatively fast, not thoroughly but closer than 'skimmed')

Much is made of "measurable" and MDL (method detection limit) using a "using a PerkinElmer NexION 350S Inductively Coupled Plasma Mass Spectrometry with dynamic reaction cell (ICP-DRC-MS)".

Such equipment can almost count atoms.

Even before man idustrialised there were trace metals, toxic metals, to be found at measurable (with modern equipment) levels in the purest clear mountain streams (as water leached lead and other solubles from rocks, etc).

I'm not diminishing the problem here, there is a real danger from industrial by product landing on cotton fields and making its way to human skin .. but what's the baseline?

Do we have a study on raw cotton from various fields?

Australian cotton from Kimberley fields would likely have the least industrial addition of metals, how do such samples compare to cotton from fields adjacent to smelters, etc.
The Expense of Unprotected Free Software
The Problem of Sustainable AI
Jeez just buy a real computer. Optiplexes are dirt cheap
> It seems like the high ancient world was so close to industrializing.

There are many factors at play. Serious industrialization requires several components to build on. There is a reason for example that "All roads lead to Rome". That's because no roads lead to Athens.

The machines to do the work, were the animals. Horses to carry merchandise around, bulls to plow land were used all over the place, by Romans, Greeks, Sumerians, Persians, everyone.

Metal constructions used for heavy work like iron, were too brittle, and bronze was too weak to withstand significant forces. It is only the last two hundred years that strong alloys were developed for industrial applications.
I have 7" touch screen waiting me to attach a pi4 to make a proper portable Linux device I can travel with. Laptops too big and the GPD tiny ones too expensive for me. I can't use anything smaller than 7" and don't want bigger than 10" for convenience.
Less than $200 can have "ideal" setup.
Isn't it less expensive and more ecofriendly to turn on the AC when you are actually there? Dumber would be smarter.

Not to mention, you can be late, or early, or not arrive for the whole night.
Well, those two statements pretty much sum up how things work. What can I say? Just like all others in the world, we don’t want other people spying on us.

(And just like all others, we want to spy on everyone else.)
The cost of your sanity also adds up quickly :)
Or maybe telecommunications in general need disruption. Instead of having a number that anyone in the world can call, I should provide an abstract identity to a contact. When I approve that entity to contact me, and they get a unique identifier that only their identity can use to contact me, I decide how important their calls are to me:

1. Phone rings no matter what (doctors and other high profile contacts that I do not want to miss a call from)

2. Phone rings unless sleep mode active (family/friends). A second call within 3 minutes rings through in case of emergency.

3. Call goes straight to pre-recorded message (generic or unique to that identity) that tells them to text me their message/request (or when AI gets good enough, and it doesn't seem like it there yet for all accents, it transcribes their voicemail message).

4. Caller can leave a message but it is completely ignored by me and I don't know they left a message unless I go and check my spam folder.

I can change the call handling of any identity at any time, and there should also be an email and text message layer on top of this system so the same rules apply and I choose who can contact me with those methods as well.
Gosling also invented a structural macro processor for C, in 1989.

Ace: a syntax-driven C preprocessor: https://swtch.com/gosling89ace.pdf

In 1981, Gosling Emacs: https://en.wikipedia.org/wiki/Gosling_Emacs

Richard Stallman used Gosling Emacs as the starting code for GNU Emacs.
in the context of a train line, you may not want it any taller, since there are things like overhead wires to deal with if it gets any taller.
Ah! Excellent. So you fully admit Huawei is using its infra to steal corporate and state secrets worldwide, giving that info to domestic Chinese firms which are not bound by worldwide IP legalities? And using that info to subvert and destroy Western democratic principles?

Thanks for the confirm on that.
Part of the crew. Part of the ship.
Nim Version 2.0.8 Released
For a moment I thought this was about Manzikert, Tonsure, Shriek and Finch...of Jeff Vandermeer's Ambergris trilogy.
WebGPU is supposed to be properly sandboxed.

The bigger issue is that WebGPU is basically dead on arrival for the same reasons WebGL is - it is impossible to get enough data to the client for it to actually matter, Awwwards-style design tricks notwithstanding.

I suppose browser vendors understand this and don't really care for either.
Huh, is this what it looks like when taxes are used appropriately?
It was the liberals that boosted immigration to high levels.
> However, I don't know how much consumers can do about this apart from buying batteries

If one has a water boiler or a heat pump with a buffer, they can run it at full load during cheaper periods. If they have an EV they can also charge that.

The load curve is also changing with renewables.

https://www.enerdynamics.com/Energy-Currents_Blog/The-Electr...
Saks buys Neiman Marcus, and Amazon gets a stake
Here you go.
https://gist.github.com/tidwall/332fc3791a23b038c6b3e73aba02...
Apple | https://apple.com | AIML – Sr Full-stack Software Engineer, Data Operations | FULLTIME | ONSITE / HYBRID (3 days in office, 2 at home) | Seattle, WA, USA

https://jobs.apple.com/en-us/details/200551324/aiml-sr-full-...

Our team builds software to collect and annotate high-quality data used to train LLMs and other AI and ML models for products across Apple. We're looking for a senior software engineer who can design and build mission-critical, large scale, cloud-based distributed systems, web-based APIs and web apps, and can be the technical lead for projects within our team and across teams. The ideal person would have strong technical skills, strong collaboration skills, and strong people skills. See the job description above for details.

I'm the hiring manager, if you apply your application will come directly to me.
Now I'm just confused. I found an article that might be trustworthy, [0], but even they seem to equivocate.

[0] https://content.next.westlaw.com/practical-law/document/Ibb0...
That is an impressive number of requests to “burn-in” the new code. It seems odd to me that TCP is used between layers (implied by “connections”) — I’d reach for UDP first and deal with loss directly.
I use a $8 programmable plug timer switch off Aliexpress to do exactly that. But it's only useful when I live alone. When a girlfriend is living in, messing with hot water supply is an absolute no-no!
Where have you been all my life. This fills such a hole in the market -- a Vim-like terminal spreadsheet tool.

The terminal tools have gotten so much better in the last few years. There's a real Renaissance happening.
Not me. But I do get it, sometimes hearing the grandiose expectations gets to be too much. These days I just tune it out mostly and keep my head down working (on an AI project…)
You probably used wrong detergent. The one for dishwashers doesn’t foam.
This is asking the wrong question. The question is what is the cost per kWh of electricity delivered from that battery, which is not the cost per kWh of capacity installed (though it is related).

You have to charge the battery with electricity (which you could sell or have to buy), and then when you discharge it you are either offsetting electricity you would buy, or selling it. Throughout the process you're losing some of it (~8%), and the battery is degrading in capacity towards eventual replacement.

You also have black swan events - i.e. an early battery death due to manufacturing defects.

i.e. my rooftop solar array sells power at 7c / kWh. When I run the numbers on various offset scenarios, the cost per kWh delivered after all expenses and life time costs that I can find tends to be about 7 - 8 c / kWh. Which honestly makes perfect sense to me: the electricity company, at much more massive scale, can install and run batteries more cheaply then I can.
Who introduces this reviled junk NOW, after years of mockery, and on a media player? Anyone who actually wants this (or doesn't care) already has it on his TV, making its addition to individual sources stupid and redundant.
Show HN: AWS S3 Connector with DuckDB – Query AI/ML Batch Results Directly in S3
[ https://github.com/Multiwoven/multiwoven ]

Multiwoven, our Open Source alternative to Hightouch, Census and RudderStack, has always been about making data available where it's needed.

We've added a new AWS S3 connector as a data source to Multiwoven, This data source connector has been a highly requested feature from the community.

We believe we've not only added AWS S3 as a data source, but also optimized the performance of querying data stored in S3 buckets.

We've integrated DuckDB, an in-memory analytical database, to provide fast and efficient SQL query execution on large datasets directly in S3.

-> Features:

1. IAM and Role-based Access - Securely connect to AWS S3 buckets using IAM or role-based permissions.

2. File Format Support - Native support for CSV and Parquet file formats.

3. DuckDB Powered Performance - Utilizes hashtag#DuckDB, an in-memory analytical database, for fast and efficient SQL query execution on large datasets directly in S3.

4. Native SQL Interface - Execute SQL queries directly on data stored in S3 buckets, eliminating the need for intermediate scripting steps or data movement to a separate database.

-> Use Cases:

* Query and Transform - Convert ML model batch results stored in S3 buckets into actionable insights.

* Sync Data - Sync log data or event streams from S3 to business applications like Salesforce, Google Sheets, or other destinations for real-time analytics.

[ https://github.com/Multiwoven/multiwoven ]

Refer to our GitHub repository for more information & hit the star button to show your support :)
General Electric HTRE-3 Nuclear Jet Engine
Saito Network now supports free, instant ETH transactions
I just don’t buy the argument that because most sophisticated attacks exist, then 2FA isn’t useful.

2FA protects you from someone getting access to a leaked password. They still can’t connect even with user and password, without doing a very elaborate hack. That’s a huge benefit.
The phone network we once knew is useless in terms of answering or bothering with any calls or text from those not in your contacts. If you do .. you do so at your own risk!
The Dark Tower series by Stephen King. Totally changed how I view literature and life. Made me believe in magic again.
> doubt that it's a straight factual account of what happened.

Maybe I'm misremembering but I don't remember this "documentary" having any narrative or facts. It's not trying to teach you anything reality, it just seems to be about 2 people perspectives about living in nature amongst bears. Again, it was a while ago since I watched it so maybe I'm not remembering accurately.
there is a name for this "hypothesis" and other people have worked on the idea. it's called the "energy theory of value"
This was fascinating. Do you have to be the same user or group to send the signal?

I'm absolutely positive the JVM is not the only thing using this trick, seems like it could be an attack vector.
What do you think could fix this? Access to genuinely permanent storage?
What are some of the SendGrid problems you're thinking about?