skysight-inc/HackerNews huggingface dataset:
A mixture of culture and technology.

Technologically, Rust's only built-in string type, &str, is a reference to a string slice - that is, you can't change it (the reference isn't mutable) and it is both a pointer to the start of some UTF-8 and the length of the UTF-8.

What encoding? Always UTF-8. Only UTF-8. Not "Well, it's kinda UTF-8 but..." it's just always UTF-8. This moves the burden to a single place, your text decoding code, to do things correctly, and great news - the entire world is moving to UTF-8, so you're on a downhill gradient where every week this works better without you lifting a finger.

That reference knowing the length is brilliant. Trimming whitespace off a string? You can just make another immutable reference to the smaller trimmed string. Zero copies. Slicing a URL up into components? You can do that too, zero copies. And yet it's all memory safe.

Now, Chromium is not some raw firmware for a $1 micro-controller, so it has library types like Rust's alloc::string::String (you can just name it "String" in normal Rust code but that is its full name) which, as its presence in alloc suggests, is an allocating String type, you can concatenate them, you can make them by formatting a bunch of other variables, the default ones are empty, the data goes on your heap and so on. But, String is AsRef<str> which means if what you've got is a String, and what you're doing is calling a function that wants &str Rust is OK with that and it costs nothing at runtime. Why? Because that &str is just two of the elements of the String type you had, the pointer into the heap and the length, it's easy.

Rust has lots of other types for stuff like Foreign Interfaces, like CStr and CString (for the C-style NUL-terminated array of bytes which might be text) but your pure Rust code shouldn't care about those, often it can say (unsafely) "Look, the C++ promises this is UTF-8, we'll take their word for it" or "I only need it to have bytes in it, let's make [u8] and we're done".

Culturally, Rust programmers write &str when that would do. There's a strong cultural pressure not to write String when you really mean &str, and the compiler won't let you write &str if you needed String. So this results in less thunking of the sort complained about in C++
A winemaker in the Bourgogne told me that one other good reason is the tartaric acid in the grapes. This acid is not decomposed by the bacteria and stabilizes the wine. Not that many fruits have this acid.
Biden doesn’t stand up to progressives on culture, which is the real flash point for Republicans. He would be more popular if he went on a Van Jones style rant: https://m.youtube.com/watch?v=CStMEd_CNpY
You still get a wildcard cert. e.g. if i do:

echo -e 'GET / HTTP/1.1\r\nHost: en.wikipedia.org\r\nConnection: close\r\n\r\n' | openssl s_client -connect text-lb.eqsin.wikimedia.org:443 -ign_eof -noservername -showcerts

I get a cert with:

X509v3 Subject Alternative Name:
DNS:\*.wikipedia.org, DNS:wikimedia.org, DNS:mediawiki.org, DNS:wikibooks.org, DNS:wikidata.org, DNS:wikinews.org, DNS:wikiquote.org, DNS:wikisource.org, DNS:wikiversity.org, DNS:wikivoyage.org, DNS:wiktionary.org, DNS:wikimediafoundation.org, DNS:w.wiki, DNS:wmfusercontent.org, DNS:\*.m.wikipedia.org, DNS:\*.wikimedia.org, DNS:\*.m.wikimedia.org, DNS:\*.planet.wikimedia.org, DNS:\*.mediawiki.org, DNS:\*.m.mediawiki.org, DNS:\*.wikibooks.org, DNS:\*.m.wikibooks.org, DNS:\*.wikidata.org, DNS:\*.m.wikidata.org, DNS:\*.wikinews.org, DNS:\*.m.wikinews.org, DNS:\*.wikiquote.org, DNS:\*.m.wikiquote.org, DNS:\*.wikisource.org, DNS:\*.m.wikisource.org, DNS:\*.wikiversity.org, DNS:\*.m.wikiversity.org, DNS:\*.wikivoyage.org, DNS:\*.m.wikivoyage.org, DNS:\*.wiktionary.org, DNS:\*.m.wiktionary.org, DNS:\*.wikimediafoundation.org, DNS:\*.wmfusercontent.org, DNS:wikipedia.org

I suspect the different certs are just to have a backup cert that is always being tested that can quickly be swapped to if something goes wrong.
Securities Law Implications of Lummis-Gillibrand Bill
There is a wide diversity in motivations people have for permaculture, and this view that permaculture focuses on "the efficient production of useful goods in a ways that require minimal maintenance by letting other creatures do all the work for you" is one of several types of views I have come across ("lazy farming"), and is by no means the exclusive one. There is very much a strong contingent of permies who also focus on restoring the earth, and stewardship of the land, even food sovereignty.
With Artificial Intelligence, Short-Term Risk Aversion Is Long-Term Risk Seeking
$3-4k sounds steep? I guess that is where they provide the accommodation. I had a take home one and it was much cheaper (privately paid IIRC, not subsidized by government). Outside of the US.
Ask HN: Podcast tips for talks related to one man SaaS?
I would like some suggestions for good podcasts on the subject of building small saas products. I wonder if there is any good podcast where the focus is not on VC (which I am not interested in) but in building a good product without founding. Any suggestions?
I’ve been receiving reports of O365 downloads blocked in Russia for the passed couple of weeks too
Just because water is safe at the source doesn't mean it stays that way if kept for long. Many, many cultures, notably China, avoid drinking fresh water because they've learned the hard way that it's not safe enough, although the Chinese solution was to boil it and turn it into tea.

Also, wine is shelf-stable and can be stored for long periods, while fruit juice cannot be. Modern fruit syrups and the like rely on large quantities of added sugar, which was not generally available back then.
> > understand

GP's statement is quite true with that wording, though expected for any video software; there's no way a tooltip could adequately explain chroma subsampling choices, frame types, or lavfi filtergraph syntax, for example. Regarding comparatively basic usage, the curse of knowledge still applies; it seems simple to do anything when you already know how.

GP, have you configured your audio sources? Your monitor must be a device selected in File > Settings > Audio > Global Audio Devices, and that device must be unmuted in the Audio Mixer pane. If it's a Mac, you need a separate application to capture desktop audio (https://obsproject.com/forum/resources/mac-desktop-audio-usi...).
I can suggest a place to search for suggestions: https://indiehackers.com/
Europe isn't that tiny either. Still, some weather phenomena seem to common for most of it. Including that July is generally the hottest month. :)
Inventing the transistor and landing a nuclear robot on Mars
10 years ago you could buy a core i5 2500 for ~$200. Quad core, 3.7GHz max. Seem to be half the perf of a current i5 on 4threads benchmarks. Of course phones have progressed faster but will they for the next 10 years? Probably not in terms of utility.
> It gears itself towards frontend developers who don't know how to write a backend, and encourages bad practices for them. One example: Firebase lets you manually edit production data very easily from within their dashboard. Like it's treated almost like it's a CSV.

This is truly spot on. I'm one of those devs who couldn't write a good backend when I first began coding out apps (as a hobby). Started out with firebase because that was the tool used by most YouTube videos and Medium blog posts introducing people to app development. In the end, I eventually had to learn other technologies such as using Elasticsearch, DynamoDB (which I would also stay the hell away from) and PostGRES.

Thankfully Supabase decided to stay away from the NoSQL format, so learning how to get started with PostGRES was made smoother.

Looking back I don't even know why I jumped into using Firebase, since I do have a pretty good footing in SQL querying. I don't know why Google isn't bothering with an Elasticsearch-like NoSQL solution for Firebase. And quite frankly, I would only use Firebase for Auth and RTDB for basic database stuff. If I had known this earlier, I might have saved months of learning Firebase Cloud Firestore crap online.
Why is it designed that way? Just to avoid the server having to keep data while you're offline? Or there's a grander motivation?
Does Samsung have any claims of how their 3nm compares to TSMC 5nm currently in released products? My understanding was that Samsung’s previous nodes have been less power efficient than the competition at similar performance, so I would guess TSMC 4nm would still be a strong competitor.
Definitely can be useful, but keep in mind that performance will usually be worse for function tables.
For readability, this is reasonable. There may be a cost that it weakens some static analyzers, but I don't program in C enough to be sure.

For performance, this is not necessary because the compiler can optimize long switch-case flow into dispatch tables: https://godbolt.org/z/7WxEfc6YM
It's not cheating, it's minimizing harm.

In fact, becoming an ascetic would probably be counter-productive. I think a large benefit of publicly caring about the environment is the signaling. You show that (a) it matters (b) it's doable (c) it doesn't ruin your life. Then other people start to believe they can also do it. If you do let it ruin your life, that will serve to dissuade rather than persuade.
The Ergo IRCd has an built in "Always-on" feature which allows you to stay online without an additional server.
how do u compare between Aquarium, HumanLoop, Cord.Tech, Lightly, https://prodi.gy/ and you guys ? And probably SnorkelAI (who probably is considered the OG with their paper https://arxiv.org/abs/1711.10160)

P.S. not trying to compare the product or the company/team, but was hoping for a more technical understanding. only reason i even mentioned those names is cos they were all launched here on HN.

I generally term this space as "algorithmic labeling" and there are many approaches here - https://paperswithcode.com/paper/machine-learning-algorithms... . Any kind of algorithms or domains that work well for you...or dont work well ?
I really don't like that Wikimedia has harsh rate limits for traffic in some regions when downloading that data dumps...
Airbnb’s CSS Trip: from Sass to Linaria (no-runtime CSS-in-JS lib)
> Designated communications provider must not be requested or required to implement or build a systemic weakness or systemic vulnerability

The key words here being systemic.

Sure, they can't create a backdoor that will allow weaken everyone's protections, but the way the whole 317ZG is written is that between the lines a "communications provider" can be compelled to provide targeted access to individuals.

For example, let's say all our phones have e2e encryption and cannot be unencrypted unless you have a password. There is scope within the act to commandeer Google/Apple (who both have offices in Australia) to push targeted updates to a specific user and save targeted plaintext data or even install a keylogger etc.

In other words, this would then give authorities access to plaintext data on the phone without a user's consent, all without being systemic weakness.

And I'm writing this based on many discussions with lawyers. I was very vocal about the AABill when most people Australian tech people didn't care, but I can tell you know that a lot of lawers were concerned and reached out.

It is commandeering Full. Stop. Want to disobey a TAR, TAN, or TCN? Go right ahead given that you say it's not FUD... but be my guest arguing with:

9 Subsection 3LA(5)

Repeal the subsection, substitute:

Offences

(5) A person commits an offence if:

(a) the person is subject to an order under this section; and

(b) the person is capable of complying with a requirement in the order; and

(c) the person omits to do an act; and

(d) the omission contravenes the requirement.

Penalty: Imprisonment for 5 years or 300 penalty units, or both.
There's a decent comparison outlining the differences by Tabnine's CEO here (disclaimer - I work there).
https://twitter.com/drorwe/status/1539293063117516801
Yes, and 110 proof Moutai baijiu is called "wine" in China, if you ask for a translation. I think there are better translations like, "white lightning".
Is there a NextJS-like framework for Deno?
If you add sugar in 1:2 ratio to fruits and use a wine yeast, you'll get 12% abv wine.
Someone I know arranges their books by color. They said it works surprisingly well as an indexing system, because they generally remember the color of the book they’re looking for, and when they don’t, an image of the cover is a quick web search away.
irccloud.com has worked wonderfully for me, for many years now.
Facebook itself seems to be screwed. I just reactivated my FB profile, with the goal of deleting 80% of "friends", because the feed has become so toxic.

1. Half of my friends have stopped being active since 2020. Some say goodbye, most disappear quietly. But I think antivax and all the anti-gov rhetoric was the last straw for most people.

2. The most active accounts are selling something. Some sell insurance, others sell politics.

3. It's unattractive to people in their early 20s or below.

4. Like many other social media, it has become a game to see who can publicly humiliate other people. It's not as bad as Reddit, but the absence of downvotes mean that people can play really dirty.

5. FB moderation is either AI or untrained minimum wage people basically clicking random buttons. The AI is very predictable and documented, so actual trolls know how to get around it or trick people into self banning (e.g. "white trash")

6. Everyone feels that FB is failing, so they stopped investing in it. Less photos, videos, content, and it becomes a self-fulfilling prophecy.

I think FB is effectively a sinking ship, a Yahoo. Perhaps the Meta rebranding was them distancing from FB. Instagram is still hot, though.
what I wonder, is, what other cartels of this type stifle progress in science..
Perhaps it would be accurate to say that Arpanet provided the vision and ultimately protocols to create one unified network, while the online communities (BBS seems the wrong term to me) created many of the _applications_ (in concept, no code survived) that would eventually run on that unified network. Even that's not really true because NNTP was a strictly Internet thing and SMTP email existed before most online communities did. Heck you may as well throw in Prestel and Minitel while you're at it. Honestly the online communities seem like the Dodo of the modern internet, not the Coelacanth. For example I was able to get through those decades without using any of them (save for a little bit of CIS required because something...something...Microsoft developer...something needed it).
Spring Boot 2.7.0 Released with Support for GraphQL, Podman and Cache2k
I don't know the protocol, but when it works it's really great as a end user.
Gotta check recording laws, of course! But I’ve done the same. I recorded a transaction between me and another person using OBS. OBS made it easy to add in the discord chat overlayed with our zoom call. It recorded everything to disk in one file, audio video and the chat overlay. All in real time. OBS is just an amazing product.
There are already at least 2 better methods of making health care cheaper.

Price controls and disconnecting it from employment.
Hit up your favorite Asian grocery and ask for 姜酒. The flavor profile may be quite different though.
The brew process itself involves heating/cooking.

The end result was alcohol below 10%
(Singly) Linked Lists Explained in PHP
Every organization producing dictionaries includes other fruits as part of the definition for wine. Wine was originally made from all types of fruits, and grapes became the most ubiquitous because of preference for taste. That doesn't make other fruit wines not wine, it just means we most commonly associate the category of fermented fruit drinks with grapes, as that is what has been most commonly available for a very long time.

https://www.thoughtco.com/wine-origins-archaeology-and-histo...
Healthcare is not expensive for lack of huge government-entangled corporations monopolizing and commercializing patient personal information. At least not in USA, where healthcare legislation is written by and for the industry (e.g., https://www.theguardian.com/commentisfree/2012/dec/05/obamac...), and total healthcare expenditure is somewhere around double that of most other first world countries with more universal healthcare systems, for worse outcomes in many objective measures (at least of overall social health, I realize the standard of care in America is probably second to none if you can pay for it).
it thinks it knows how and then produce good looking code at a glance but with wrong logic.

This is so accurate. I still like copilot and I might even pay for it, but I will never trust the logic. It always wrong in a way that _almost_ looks right.
it isn't a dogma, it is my personal dislike of [unconsented] abuse. Depending on situation/domain i may be wrapping it into legal/dogmatic/moral/etc. devices, whatever works, yet in the end at the very core it would be just that my personal dislike of abuse.
You probably can't use it to sterilize a wound, but the alcohol content should be enough to stop bacteria from growing in the beverage itself.
Look at the niece / nephew comments.
That is trivial yes and I was well aware of that :)

What wasn't obvious to me from the parent comment was why it is apparently completely impractical. No energy conversion has an efficiency of 100% so the answer couldn't just have been "because thermodynamics" but as other comments have since revealed, it is because _current_ hydrolyzers only operate on an efficiency scale of 60-80%.
Hi,
Please accept our submission of the Android game Room Escape: 100 Doors Mystery to your website. We have attached the game's Play Store URL.
Play store link: https://play.google.com/store/apps/details?id=air.com.hfg.ta...

Regards
HFG Entertainments
Expecting jump tables to have higher performance than the alternatives sounds definitely iffy, this also reads as if the author doesn't know that switch-case statements also just use a jump table under the hood if the case-blocks are continuous.

Regarding performance, if the CPU branch predictor works well the jump indirection overhead might disappear completely, but that's still not as good as if the compiler can inline the destination function, and jump tables usually prevent that.

(a switch-case dispatcher might actually be better than a traditional function pointer jump table, because the switch-case eliminates some function entry/exit "ceremony", also see "computed goto")
To agree: most wealthy countries spend somewhere between 10% and 12%[1] of GDP on healthcare. The USA is an outlier in %GDP, and total spending per capita[2], for lower life expectancy - check this graph: https://en.wikipedia.org/wiki/File:Life_expectancy_vs_health...

[1] https://data.worldbank.org/indicator/SH.XPD.CHEX.GD.ZS?most_...

[2] https://en.wikipedia.org/wiki/List_of_countries_by_total_hea...
I've been using copilot for 6 months and it has been an exceptional tool worth the money even if not always generating correct code.

What i'm concerned with is that i think it can interrupt the flow of thoughts while programming since you have to review the generated code, but that is the price to pay to use such a formidable tool
Do we need medication to cure or at least treat the disease? Hell yes!
But preventing people from getting the disease in the first place is also very important.
riscos is so bad the developers need to be fined
Just so you know, the glue used in most hard- and soft- cover books since the 1970's is more worm-resistant but less time-resistant than earlier organic formulations. You'll find books bound in the 18th century that can still have the pages turned today, but thirty- or forty- year old books typically fall apart, especially in dry conditions.

I do not know if there is an economical way to repair them, I'd never thought about it until now.
Okay, I’ll bite. Your comment history doesn’t have you mentioning Terra, TerraUSD, or Luna before May 9, e.g.

https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...

You just made generic anti-crypto recommendations, some of which look good in hindsight. That’s not the same as identifying the specific mechanism that proved to be Luna’s downfall; it’s more like being a permabear who predicted 8 of the last 3 stock market crashes. You can likewise claim to have “told you so” about Dai’s collapse, with equally good epistemic grounding.
I'm also dubious on the claim the switch statement is O(n). It might be in a pathological worst case, but you can pretty much bet the compiler is going to transform it into a jump table or other optimized execution (maybe a computed jump). Especially when the cases are contiguous like this...

I agree that a benchmark is warranted, or at least a comparison of the generated assembly (at different optimization levels).
https://en.wikipedia.org/wiki/Infinite_monkey_theorem

>I can generate an infinite list of numbers that doesn't contain '3'.

But you can't generate an infinite random list of numbers that doesn't contain '3'. The complete works of Shakespeare are just another one of the infinite permutations of characters a monkey could type.
The comment you are replying to talked about the myth that people mixed water and wine to sterilize the water. Wine does not have high enough alcohol content to sterilize water.
So cider is simply an apple wine made with special apples?
why dont you put it up on codecanyon as a theme sale ? you can still keep it open source...but this is quite good a tool. maybe you will discover the niche ?
I live in a US wine producing region... there are a few people in the area who produce non-grape wines or non-commercial grape varietal wines as hobby projects. Strawberry wine in particular is memorable - a bit like rose; very nice on a summer day. I guess what I'd say about these wines is that they often simply don't fit our norms for wine. For example, when people come to my area they are either looking for wines that are refreshing to counter our hot weather, or wines that are big bodied and stand up against food. The non-grape wines are seldom refined to the degree that they fit traditional American wine drinker's tastes and expectations. In our area, many wines are > $50+/bottle, some $100+/bottle, and it's really hard to convince a consumer to pay that for a strawberry or cherry wine, thus they get sidelined as toy projects and thus forgotten about as legitimate wines.
That’s what a bouncer is. And I already used it to solve this problem 20 years ago.
The main point back then was of course that nobody steals your username.
I don't think we can scientifically solve the mind-body problem either. Scientifically, we've been able to pile up some evidence against the brain being remote-controlled through an extremely simple, uni-faceted direct channel of instructions. We're also able to demonstrate that the physical has a profound effect on the mental, which anyone with a source of drugs could have told us millennia ago.

Speaking of, I'll take you up on the offer for a drink.

I tend to think something like a combination of the 3rd substance and panpsychism model accounts for our experience in context of discoveries that make descartes pineal gland theory seem dubious.
Even if the on-chain stuff is transparent, there’s much less transparency in crypto/defi exchanges than any traditional investment firm.
Not if you mix it with water.
I've actively used bash and vi every day for decades now, but somehow never tried this mode.

It's fascinating. I wonder if it will be worth it for the change of command-line editing habits. It certainly feels faster for most command-line edits.
You missed the `else` branch, not a `return`.
I prefer the flexibility of computed gotos
a GCC extension that is likely the fastest
dispatch method outside of compile-time.
With computed gotos, you can have arbitrary dispatch complexity and structure, interleave
code(e.g./code1/ ;skip_label: ;label1: /code2/; goto *return_loc;) and use assembler-like tricks to
reduce fast paths(e.g. switch off code segment execution or alter control flow on the fly)