skysight-inc/HackerNews huggingface dataset:
That means one loses all the conveniences and guarantees of the string types and, in many cases, forces an immediate revalidation the byte slice as UTF-8 to get back to &str, which is O(n). Furthermore, this is also rather clunky.

I suppose one could have it return StrWithInvalidSurrounds, where just the first (at most) 3 and last (at most) 3 bytes might be invalid, which would then allow for O(1) revalidation to a &str, and even other operations like continuing to slice... But this is even more clunky for actual use!

I think a moderately less clunky API might have been to not use integers for byte indexing, but instead some ByteIndex wrapper type that string operations return, meaning one can't just write `s[..5]` in an attempt to get the first 5 characters of the string.

(Also, there's str::get that returns an Option: https://doc.rust-lang.org/std/primitive.str.html#method.get )
I'm not disagreeing. However most people do not realize how much time it is costing them to do that act each day. (obviously how much time it costs depends on the specifics of your parking situation)
静夜思 is taught in early elementary school and not exactly what most native speakers would describe as a difficult poem.
... and I have already used hyperfine to benchmark hexyl as well :-)

Yes, it's a shame. But I don't think there is too much we can do about it. We have to print much more to the console due to the ANSI escape codes and we also have to do some conditional checks ON EACH BYTE in order to colorize them correctly. Surely there are some ways to speed everything up a little bit, but in the end I don't think its a real issue. Nobody is going to look at 1MB dumps in a console hex viewer (that's 60,000 lines of output!) without restricting it to some region. And if somebody really wants to, he can probably spare 1.5 seconds to wait for the output :-)
This is explained in the article
Facebook has a patent for using gyroscope data in conjunction with location to know who you are facing with other people around to enhance friend suggestions.

You can also determine things like health and other physical characteristics, similar to gait detection.
I think the point is that the only way to learn what a word means is to see how it is used. Trying to define a word from some kind of first principles, dictionary-style, is not going to be very effective. The best way for a computer to learn what words mean is to analyze a lot of real-world data.

I would love for a computer to be able to ask questions, or at least surface marginal cases for more training, but that seems to be a very uncommon feature at least in these toy examples.
How to Set Up Your iPhone for Productivity and Focus
Maybe, but I think it's ironic that this shutdown is over a Republican (well, Trumpist) initiative to spend more money, while it's the Democrats who want to hold the line on spending.
Never rewrite a software system (2000)
You can go back and forth about the marginal security differences of the two platforms and how typical and optimized security configurations alter their total security.

But in reality, they're both very similar operating systems with fundamentally similar security models. It's a little like arguing about whether Python is a more secure programming language than Ruby.
sure if you mean it by the old sense of a species (cf. the human race)
I would think that the tractatus would be more useful to an AI. But Witgebstein's remarkable ability to shift the paradign and over extend into a meta level of analysis seems similar to the way alpha mind and Leela play chess. The tools W uses to understand perception have a more probabilistic and irrational nature then the tools he uses in his previous work. As if he realized that human communication cannot be considered as a closed and finite system, hence I cannot see how his ideas are implemented in these applications, yet.
I'm not sure if I buy Prum's idea - doesn't this just come down to 'hard-to-fake' signals?

I thought it was pretty well established already that there were both physical & behavioral 'adornments' that had no pragmatic use but signaled that the advertiser is so well-endowed they have energy to spare. And as far as beauty goes symmetry is hard to manufacture so also signals genetic fitness.

Lastly, don't mutations sometimes come along for the ride even if their benefit is negligible or even detrimental, as long as they don't tip the balance & prevent the genes being passed along?
Ask HN: How Michael Nielsen achieve mental clarity for writing complex concepts?
What? That might be the case in a specific industry (finance, in certain places, apparently), but the Hacker News community is not a finance company. Common parlance is that M means millions and being pedantic in the wrong context doesn't help anyone.
Seems like what you need for inference is usually very different from what you need for training.
What is the use case?

How much is too much video for internal storage? 1 GB? Why an app is needed if default camera apps have single clicking sharing to Google Drive?

And if the storage is the problem how is streaming 1 GB over wi-fi or 4G?
Not really. I work with payment processing, I've got the partially obscured credit card number, usually the name and the location. Plus a bunch of other info.
Pardon my ignorance but what is the criteria for a linux desktop being a thing? Is it a certain minimum market share?

There's plenty of linux desktops out there. There is certainly a ways to go, I'm not trying to deny that, I'm just wondering what constitutes a successful linux desktop. User-friendliness? Where are the goalposts exactly?
Get the Inkscape cheat sheet for advanced graphics editing
Link to a paperback/kindle version. According to amazon reviewers it's the same book under different name

https://smile.amazon.com/Everything-Its-Place-Mise-En-Place-...
Astronomers find another source of repeating radio bursts from outside galaxy
Maybe you should post it to something like reddit.
I've driven Norway to the UK and back three times in the last year with a side trip to Bordeaux. I drove all the way from Bordeaux to Belgium avoiding toll roads and still had no problems charging my 2015 S 70D. It's really not a problem in a Tesla.

It's a bloody nuisance for other EV drivers though because of the lack of a common payment method, a friend of a friend in France has a Hyundai Ioniq and has a wallet full of cards for the various chargers. It's getting better though.
Ah, last time I saw it in the store I just saw a package of patties for ~$5.50. I had assumed it was about the same quantity of food as the packages it was next to, but I guess they come in 2-packs compared to the other patties next to them being 4-packs. I've mostly had it prepared in restaurants, with its price comparable to getting the steak option.
Focus on Core Value, Outsource the Rest
San Jose looks like a vast conglomeration of suburbs with a bolted on "downtown". It lacks charm on the surface; it's one of those places that has hidden gems that you only get to know about if you spend time there.
Websockets have head-of-line blocking, which is one of the main reasons HTTP/2 exists.

HTTP/2 (i.e. gRPC) is a bidirectional streaming protocol, and you can use the fetch API in JS to use it. The reason gRPC-web exists is because browsers artificially hide some of the headers, which have been part of the HTTP standard since the beginning. If that was fixed, gRPC would just be plain XHR or fetch requests and gRPC-web would go away.
I swap my SIM when I want to use it, but it would be less hassle to get a separate one.
I went to San Jose in 1995 (from Santa Cruz, with experience in SF) and was really surprised. Nothing has changed, it's the same 4-cornered intersection with 2 housing complexes behind walls, a Chevron, and a strip mall with decent Korean and Indian food, tiled X times across the valley.
Kaspersky blew whistle on NSA hacking tool hoarder
Images are too big, and is there some sort of weird scroll jacking going on? Or is loading the images so processor intensive that when I scroll down it stops dead in its tracks?
For what it's worth, many in the Rust community agree with you. Many people consider this a mistake, in hindsight, though not everyone.
What I find particularly neat are the non-Euclidean embeddings, such as hyperbolic spaces to generate hierarchies.
I think the rust designers want to keep the implicit contract that indexing into a string is fast and O(1).

If you want to find the one millionth codepoint of a UTF8-encoded string, you have to more or less (1) visit every byte of the string.

If, on the other hand, you want to find the codepoint that covers the millionth byte, on the other hand, you have to read at most four bytes (read the millionth byte, and there are three cases:

- it’s a full codepoint. If so, you‘re done.

- it is the first byte of a multi-byte codepoint. If so, read forwards in the string for up to 3 continuation characters.

- it is a continuation character. If so, search backwards in the string for the first byte, then, if necessary, read forwards to find more continuation characters.

So, that is O(1)

(1) you can skip continuation characters, but these typically are rare.
You do realize that kidnappings happened before bitcoin, right?
I'd assume because of the extra serial processing power of a CPU.

x86 isn't the right choice though. As the chips get smaller, all the x86 cruft starts to become a larger portion of each core.

RISCV with 40-ish instructions plus a SIMD extension would probably be ideal. They've already proven that those designs use less space per core than ARM.
Crows seem in a relative sense very intelligent, I'm impressed with them. I think penguins main appeal is there cuteness.
California Bill Pushes Case for Bulc Club's Free Email Forwarding Service
That's ostensibly true, but if you talk to people who actually donate to these PACs you find they break down into high-level management (ie: the company itself; people with more-than-normal control over compensation) and "employees who sort of opt-in as a show of support for the company but who have no real idea what the PAC does".

I think it's more than fair to attribute the Google PAC to Google, and not to a diffuse group of Google employees.
Oh nice, sticking the note on the door is really useful for that sort of thing. But yeah, the key insight is to make your environment as useful as possible for the goals and life you want to have.
To quantify this now. Are you counting a final product as them going GA, allowing anyone to buy and get one? Or are you counting a final product one that you do not consider beta. The latter is very open to interpretation.
> “Some people may have noticed on the package some extra room,” she said with a chuckle. “There is some extra room on that package and I think you might expect we will have more than eight cores.”

Taken from: https://www.pcworld.com/article/3332205/amd/amd-ceo-lisa-su-...
Bang Bang (!!)
I work on C/C++ analysis at Semmle, and am happy to answer any questions you might have. (We also support C#, Java, JavaScript, Python... and Cobol!)

We have a few high-profile projects using our automated code review (marketing people tell me I'm not allowed to call it 'PR integration' any more). One example is on the AMP Project, where we caught a regex injection vulnerability in a PR before a human looked at it: https://github.com/ampproject/amphtml/pull/13060

Our default analysis has found a few other vulnerabilities (remote buffer overflows due to misuse of snprintf in rsyslog and Icecast spring to mind) but, honestly, I think our strength lies in the fact that you can write custom queries that find bugs specific to a single codebase's foibles.

For example, my first ever CVE was for a vulnerability in ChakraCore. Google Project Zero found the original bug - type confusion caused by failure to check a flag indicating that the last element of a list should be cast to a different type - but we wrote a query to verify that code accessing that particular list always checked the flag. So when some new code got introduced with the same bug, we noticed as soon as we re-ran the query on the new commit.
Yes but the point is that CA and 加州 are both two syllables in speech. In your example, "televison" is 4 syllables whereas "电视" is only two. As you've noted, the writing system has over time created a higher information to syllable ratio. A transition to a writing system with a lower information to syllable ratio would require a complete change in vocabulary and the translation of pretty much all written text.
gRPC is protocol agnostic. You can use any wire type with it, like JSON. There's even a codec for thrift messages on gRPC called grift.
I will much, much rather have a clear cut law than uncertainty. It is not hard to make clear laws but it's impossible to make "interpretation" clear and always the same.

I hate the Finnish judicial system.
I've come to the point where I feel powerless to take the large spyware from these companies as anything other than given. I'd have the Facebook app installed anyway since that's what my friends use, and Google's claws are so deeply embedded in my private online affairs (most emails I send are to Google-managed accounts), that I don't feel like it matters. I know iPhones exist, but I have problems with them too.

My problem with the crapware isn't related to spying, just that it eats up resources of my device which I've spent good money on. But considering the specs are already a little bit better the headphone jack means more to me.
Wait, have you never paid cash at a gas station before?

You go up to the teller, tell him which pump your car is in, and get your $2 back.
Even in a professional context it's reasonable to use the language your customer (business expert) is using. Beware of mapping technical terminology into another language! And if that means you write Swedish code, that's perfectly valid.
Amazon DocumentDB, with MongoDB compatibility
Can someone ELI5 the term "embedding"?
Jeff Bezos and His Wife, MacKenzie, Announce Divorce
What AMD needs right now is marketshare so more stuff gets written in something cross-platform instead of cuda. I'd imagine that 1/2 has at least been discussed at great length for this card.
No, the Rome Epyc IO die (435 mm2) is not the same as the Matisse Ryzen IO die (122 mm2).
Weight probably isn't a problem - a Chevy Volt weighs a lot less than a Tesla S.

You don't even save much by keeping the gas tank mostly empty when you aren't expecting to need it -- the gas weighs ~6 lbs / gallon, so you might save 50 lbs by keeping the tank on 1/4 when you aren't planning to drive past the battery range.

Think about it this way: batteries are really heavy, and the Tesla has like 5x more battery capacity than a Volt. Meanwhile, if you're mostly making short trips, you're hauling around 3/4 of those heavy, heavy batteries as a contingency.
Classical Chinese is not modern written Chinese.
As someone who founded a company based on javascript game development, looks like I'll be hiring your little brother within a few years :)
Show HN: Dimensions of Dialogue – emergent writing system and art experiment
Hey ho ! Excellent stuff. We have tried it and it is MUST HAVE tool if you need fast and rapid development, but without any limitation. Recommendation !
I'm not even close to a vegan or vegetarian, but your claims are just not true. There are a plethora of other sources of food sources for "recovery". There are quite a few vegan bodybuilders. There are even Vegan NFL players and MMA fighters, both of whom require far more in the way of "recovery" than a bodybuilder.
> a tech corporate campus that’s not built with guarded walls and a moat with alligators with it, but actually a campus that’s integrated with a public urban village

A jab at Apple Park, obviously.
Remember that when much of Silicon Valley was established, the sorts of people who worked at those companies mostly had no interest in living in SF. Same with the Boston area. (There was a period when Boston metro had basically no tech at all and SF is similar.)

San Jose is also not really a city in the way SF is. I used to go to conferences there fairly regularly. (Intel's IDF was there for a number of years before decamping to the Moscone.) Was there for another event a few years back and I was sort of surprised how relatively run down a lot of the downtown still was. Some new restaurants and the like but not really what I expected in SV.
Judges are not lawmakers. They serve to interpret the laws accurately. Of course, often the laws are not codified very specifically, so it is left to judges to interpret it as straightforwardly as possible.
Also, if they reveal too much prospective buyers might be incentivized to delay their purchase. As stupid as that might sound, it is a thing.
Gallery of 22 Cal students who got jobs through our bootcamp
I read it perhaps a little simpler: the author likes Chan as a performer, but is disappointed that Chan has turned out to be a vocal, anti-democratic supporter of the Chinese Communist Party, and a critic of present-day Hong Kong (as well as Taiwan, which is of course no surprise given where his loyalties lie). I sympathize and agree with that disappointment -- the quoted jab Chan makes at Taiwan especially bothered me, as it's one of my favorite countries to visit -- but agree that twisting Chan's memoir the way he has just goes too far.
Lol, so Kwame Nkrumah has never been colonized? He's the one who defined the term.
Nicely put :-)

The emergence of smart ubiquitous always-connected computers (with Unicode) does change the evaluation maybe.

I think one of the fundamental arguments against the Chinese script (it takes about twice as long to learn than alphabetic writing) stands, while others are outdated, indeed (nobody struggles with building Chinese typewriters anymore).

However, there are many arguments put forward against switching to an alphabetic script that strike me as misguided (that the Chinese language is so special, that it has so many homonyms, that characters are uniquely suited to it and indeed indispensable, that it allows speakers of different "dialects" to communicate, etc.).

At any rate, good discussion.
What part of that responds to anything I said? I haven't even said (1) whether I believe the effect or not or (2) whether I have or have not experienced that effect myself. You're assuming I've made a statement one way or the other.

In the absence of scientific research, the "theory" is as true and useful as any saying "two in the hand is worth one in the bush", "a penny saved is a penny earned", ...
The e.coli originated from an irrigation ditch getting contaminated by effluent from nearby livestock farms.

Processing expanded the contamination substantially increasing its reach to consumers, while also making it more difficult to narrow down which supplier had introduced the contamination.

From the consumer's perspective, by simply avoiding processed lettuce they significantly improved their chances of consuming untainted lettuce.
Hi wmf - I work on Livepeer, happy to clarify on some of the skepticism here.

Livepeer uses cryptographic signatures to prove authenticity of the video transcoding results, and that signature can be used as proof to punish cheaters (if you signed the result, you are responsible for the correctness - and since it's easy to validate whether the transcoding is done correctly, anyone can use that signature to punish you by taking away your stake). If no one cheats, no one gets punished. Since the cheater doesn't know how many people are monitoring the results, their best strategy is to be honest.
I remember someone making a claim about insulin, but it wasn't the insulin itself – it was proprietary consumables for insulin pumps.
What's the point of the [] version then? It seems inherently more dangerous, and Rust emphasizes safety. I know it wants to be pragmatic as well as safe, but this seems like a strange default.
I'm not surprised - every time I have Android devices (specifically Samsung) on my network, my pi-hole goes ballistic and the charts spike up noticeably. Those are all advertisement CDNs or telemetry. This does not happen with my hardware (all Linux or macOS/iOS).
True. My point is that written Chinese register tends to occupy a space between Classical Chinese and modern spoken Chinese.
Great job. Just a nit/request for that gif illustrating agrind's use -- I keep watching it to see what args you've passed to see how it's being used but the output finishes and loops before I understand what I'm seeing. Not sure if it's a property of the image or my browser but if you can turn off the looping in the image that might work better. Or add static frames at the end for the slow folks like me ;)
Of course. I am not addressing whether or not the law is appropriate. But if the law is there, it should be codified properly, so that you shouldn't need a lawyer to deal with something the law was never intended to address.
Some will never find it, they’re all too busy looking.
Ok, been a lurker on HN for awhile, but created an account to post.

This is freaking awesome. Been looking for something like this for awhile!
I've found that 80% of the Kondo process has been discarding items. That's just my personal take.
Not difficult, concise (and in particular more concise than the thought would be expressed in spoken Chinese).
https://drsophiayin.com/blog/entry/a_super-simple_method_for...
In Yosemite or without SIP it would be possible with plain sudo. In El-Capitan it definitely wasn't that easy (I do have SIP enabled).
This is exactly how I would have imagined a trip would go. $85 billion market cap for a car that can't travel to most areas of the globe at all or with severe inconvenience? Give me a break.

Electric cars have been around for 100 years, and they've been consistently inferior. We've perfected the car with the internal combustion engine. Empower automobile engineers to make marginal improvements, but otherwise: can we please spend precious capital elsewhere? Think of all the cures or improvements to human life this money could have gone towards, rather than this stupid electric car will-o'-the-wisp. Build some nuclear power plants! Go to Mars! (In fairness, Elon's trying the latter, as long as Tesla doesn't become a financial albatross around his neck.)

Why must the history of humanity always be the story of one step forward and two steps backward?
> Except that's exactly one of the most common reasons I see given to people who are not programmers to use LaTeX.

There's a subtle point here: LaTeX helps with application not decision.

When a LaTeX advocate says, "You don't have to fiddle with formatting." they are saying you don't have to apply the formatting to your document, its automatic.

But the author misunderstands this as "you don't have to decide on the formatting for your document". So he responds: follow the defaults or a style guide. But that's not where LaTeX helps. LaTeX is about automatically applying a style to a document NOT deciding on what that style should be.

> I don't really buy these because you can say the same thing about Word.

Sure. LaTeX advocates are probably somewhat behind what the savvy word user is doing. There is less of gap in the approaches than might be assumed.
Yes, cities like this are designed for the benefit of residents, not tourists.

It's designed to be a nice place to live, first and foremost. Now, if you know a local, you could easily get all kinds of recommendations for interesting restaurants and neighborhood bars, and probably various random festivals that are going on. But the city doesn't advertise itself to tourists.