Better HN
topnewbestaskshowjobs
Log inSign up

bobbyi

1,158 karma · joined Apr 1, 2007 (19y ago) · 387 submissions

Submissions

comment 1y ago · link · parent

That could be habit if she got used to one side rather than brain asymetry

comment 1y ago · link · parent

I thought this would work:

#define C(x) (sizeof(char[x]), x)

sizeof is a compile-time operation so x need to be known at compile time.

It didn't work as expected. It turns out there is an exception and the standard says that sizeof is actually calculated at runtime specifically for variable length arrays:

> The sizeof operator yields the size (in bytes) of its operand, which may be an expression or the parenthesized name of a type. The size is determined from the type of the operand. The result is an integer. If the type of the operand is a variable length array type, the operand is evaluated; otherwise, the operand is not evaluated and the result is an integer constant.

comment 2y ago · link · parent

He's not the boss anymore at this point (2003). Ballmer took over as CEO in 2000.

comment 2y ago · link · parent

It is if the object can't be meaningfully cast to the type. I'd expect to get an exception. That's why they exist.

For example, consider explicitly casting the string "abc" to an int. Python throws a ValueError. Ruby silently ignores the problem and gives 0. I consider the Ruby behavior to be a gotcha.

comment 2y ago · link · parent

I'm selecting 70B and it is coming back with "Answer | Phind-34B Model".

I'm not sure if it's really using the 34B model or if the UI is wrong about which one it used

comment 2y ago · link · parent

The other NYC bridges are all (I think?) named Bridge, but they went with Crossing here because Outerbridge Bridge sounds weird.

Another NYC one: A lot of people think "major" in The Major Deegan Expressway means it is a significant expressway, but actually the expressway is named after (Army) Major William Deegan

comment 2y ago · link · parent

Why can't you search them? In the android app at least, I've never had a problem with search working properly

comment 2y ago · link · parent

lsof is also good for seeing what files a process is using https://www.thegeekstuff.com/2012/08/lsof-command-examples/

comment 2y ago · link · parent

Searching for /bin/[ gets reasonable results for me

https://www.google.com/search?q=%2Fbin%2F%5B

comment 3y ago · link · parent

The usual justification for having a concept of "undefined behavior" at all is specifically to allow compilers to "rule out this possibility" so they can make this sort of optimization.

comment 3y ago · link · parent

Materialized views handle this scenario, but sqlite doesn't have them

comment 3y ago · link · parent

log.exception is also usually bad when you are re-raising the exception. That often results in same stacktrace logged multiple times in a row which can be confusing or at least annoyingly verbose.

But it can be helpful to log an error message (without stacktrace) to give context that is available only in this frame before letting the exception propagate to whoever ultimately handles and logs it.

comment 3y ago · link · parent

Walking past an eatery with outdoor seating, I overheard one diner say the phrase "process raw logs" and I thought, "wow, I guess that is one of those tricky problems that basically everyone ends up dealing with".

And then I heard "... with a chainsaw. It's a chainsaw mill" and realized I may have misunderstood the context.

comment 3y ago · link · parent

Is this similar to std::optional? It's a box containing a value. Copying the optional copies the value.

comment 3y ago · link · parent

I wanted to get tickets to see Messi when his team (Inter Miami) comes to my area (NYC).

This is a typical weekend NY Red Bulls game. Tickets are available for $10 : https://www.stubhub.com/new-york-red-bulls-harrison-tickets-...

This is the following weekend against Miami. Tickets start at more than $500 (~$650 with fees) : https://www.stubhub.com/new-york-red-bulls-harrison-tickets-...

comment 3y ago · link · parent

That project already exists https://github.com/ggerganov/llama.cpp

comment 3y ago · link · parent

I don't think it's desired for chatgpt which is a back and forth chat.

But this application seems to take one query and give back one answer so its workflow wants a complete response up front.

comment 3y ago · link · parent

> There is no scalar instruction for calculating the absolute value, so it uses a negate and conditional move instead.

Wait, what? x86 has specialized instructions for all kinds of things but doesn't have absolute value?

comment 3y ago · link · parent

Recycling Bin is the normal name in US English too. I'm in the US and when I search google for "Recycle Bin" (https://www.google.com/search?q=recycle+bin), the results (in order) are

* "Recycling Bins" from Home Depot

* "Recycling Bins" from Amazon

* "Find the Recycle Bin" from Microsoft

* "Recycling Bins" from Lowes.com

* "Recycle Bins" from Target

* "Recycling Bins" from Walmart

comment 3y ago · link · parent

The roadmap here is completely focused on ChatGPT and GPT-4. I wonder what portion of their resources is still going to other areas (DALL-E, audio/ video processing, etc.)

comment 3y ago · link · parent

The June issue of the Atlantic has an article about giving control of nuclear weapons to AI

https://www.theatlantic.com/magazine/archive/2023/06/ai-warf...

comment 3y ago · link · parent

I haven't watched it yet, but the Practical Deep Learning for Coders course that's available on YouTube is often recommended

https://course.fast.ai/

comment 3y ago · link · parent

Theres also Py Spy, a profiling tool that can generate flame charts containing a mix of python and C (or C++) calls.

https://github.com/benfred/py-spy

It's worked really well for my needs

comment 3y ago · link · parent

Concepts improve the situation with error messages for templates. You get an error message saying the equivalent of "You can't pass this argument to this template function because type X doesn't match concept Y" rather than the esoteric one you get now.

comment 3y ago · link · parent

The exam is from 2019 and GPT-4's training cutoff is 2021, so it should know about the experiment.

comment 3y ago · link · parent

It's also because the companies are backed by VCs. VCs get their money from limited partners like pension funds who don't want their money invested in porn.

comment 3y ago · link · parent

> Did we need to wipe out ants? Or anything to reign supreme on earth?

Yes? Well not to ants, but to "anything". There absolutely are species that humans made extinct.

comment 3y ago · link · parent

Did they put in work specifically to improve hands and other failure cases? Or is this purely a side effect of a generally bigger/ better model?
12345
13