Better HN
topnewbestaskshowjobs
Log inSign up

yossi_peti

85 karma · joined Apr 24, 2012 (14y ago) · 24 submissions

Submissions

comment 1mo ago · link · parent

I don't understand what I'm exploring. Is it explained anywhere? To me it just looks like random buildings with random locations and heights are assigned random Wikipedia articles. Is there any rhyme or reason to the location of the buildings, their height, and which windows are illuminated in which color?

comment 4mo ago · link · parent

The alternative being closing the doors on the person's arm and likely injuring them to avoid a minor incovenience?

comment 8mo ago · link · parent

The precondition on the link you shared has -1 <= x && x <= 1, so 99 is way outside of that range. But even so, testing for x=1, which is supposed to be inside that range, 0.5 doesn't seem tolerably close to 0.4142.

comment 8mo ago · link · parent

I'm guessing their issue isn't about the vowel, it's about the number mismatch between the singular article "an" and the plural noun phrase "frequently asked questions".

comment 8mo ago · link · parent

It can change sometimes, but not very reliably. For example try this:

"I’m not sure our professional values are currently aligned, but I wish you the best in your future endeavors."

It translates to

"I don't like how you work, so get lost."

comment 9mo ago · link · parent

Example 1 is a declaration in Go. Example 3 is a declaration in Python.

comment 11mo ago · link · parent

I guess the reasoning assumes that you have multiple eggs in your basket. A 95% chance of failure is bad if you're pinning the whole business on it, but if you have a variety of 5% chance deals, then it can make sense to pursue them, which is basically what venture capitalists do.

comment 1y ago · link · parent

> Most twelve month olds struggle to support their head

I don't know about the other claims, but this one is false. It would be somewhat concerning if a 6-month-old struggled to support their head.

comment 1y ago · link · parent

Which one do you have in mind? For each of those three constraints mentioned, I can think of a reason why it's not like the other two, but there's not one in particular that seems to stick out especially.

comment 1y ago · link · parent

Their example "understanding and translating vertical Chinese spring couplets to English" has a lot of mistakes in it. I'm guessing the person writing the blog post to show off that example doesn't actually know Chinese.

What is actually written: Top: 家和国盛 Left: 和谐生活人人舒畅迎新春 Right: 平安社会家家欢乐辞旧岁

What Ollama saw: Top: 盛和家国 (correct characters but wrong order) Left: It reads "新春" (new spring) as 舒畅 (comfortable) Right: 家家欢欢乐乐辞旧岁 (duplicates characters and omits the first four)

comment 2y ago · link · parent

How is the gameplay related to the information? The connection seems pretty contrived to me.

comment 2y ago · link · parent

Why isn't SendGrid on the list? It seems to have a similar pricing level

comment 2y ago · link · parent

If people want to live in rural areas, that's fine by me. They don't particularly contribute to the problems with car-centric infrastructure in the US. The main complaints are how most cities in the US are designed in ways that are hostile to anybody who doesn't have a car, such as:

- making it difficult to get around safely by bike

- zoning restrictions that force development to be clumped in certain areas

- underdeveloped public transport with infrequent stops and limited range

- parking space requirements that limit development

- food deserts where people have to drive long distances to get groceries

There are many places in the world that have solved these problems. I don't get why it's so inconceivable to solve them in the US.

comment 2y ago · link · parent

It looks like all of the templates are basically listing steps or showing a list of facts.

Most of my favorite infographics involve some sort of graph or chart that visualizes data, for example https://xkcd.com/radiation/

comment 2y ago · link · parent

> As a photographer, I care about robustness of the visual output. Which means, as a designer, designing for the worst possible image and taking numerical metrics with a grain of salt.

I think it's kind of silly how the author pooh-poohs averages and demands that whoever is working compression algorithms should focus on the worst possible image. If you know anything about information theory, you know that is literally mathematically impossible to make a compression algorithm that always performs well in the worst possible case.

comment 3y ago · link · parent

Since it's 5 minutes I'm wondering if it's just "that's how the web works by default". I remember a while ago I was doing a long-running calculation on an POST request and was trying to debug why the connection always broke after 5 minutes, and found the hard way that there's a 5 minute timeout.

comment 3y ago · link · parent

What's wrong with that? If America was for some reason invaded by Chinese infantry, I would certainly prefer that the soldiers were properly trained to avoid civilian casualties.

comment 3y ago · link · parent

And Google Cloud Platform

comment 3y ago · link · parent

Theoretically, if you choose the first two points at random, then you have a 50-50 chance of guessing right on the third guess (the two circles from the first two guesses have at most two intersecting points) and should always get the correct answer on the 4th guess.

comment 7y ago · link · parent

It makes sense that more developed countries would have lower optimism. If the previous generation already had a decent quality-of-life, there's less reason to assume that the next generation will have it even better. Developing countries are more likely to have significant recent salient difficulties that the next generation will no longer have.

comment 7y ago · link · parent

> You need tens of millions before I could call you huge

That seems like an absurd standard to me. The three largest employers in the world (by number of employees) are 1. The U.S. Department of Defense, 2. The People's Liberation Army (China), and 3. Walmart. Each of these three largest employers in the world has between 2 and 3 million employees, which is much less than your standard of "tens of millions".

comment 14y ago · link · parent

I think the parsing method in this article was borrowed from Crockford's TDOP article, except it parses a simpler language than Javascript.

comment 14y ago · link · parent

There is a slight snag that arguments to a function are eagerly evaluated. A built-in if function would be more useful as a special form.

comment 14y ago · link · parent

I'm not sure I'd be so quick to say it's not turing complete--the language includes building functions (not first-class functions though), but it might be possible that they can be used to emulate conditionals and branching.

Anyway, I'm pretty sure it wouldn't be that hard to extend the language to add some looping and branching constructs to the language, there's nothing really special there to add, it's just another simple type of construct to evaluate.

In my understanding, loops are implemented at the lowest level with jump instructions, but I've never really done much low-lever programming so maybe someone else can explain that better.