HackerTrans
TopNewTrendsCommentsPastAskShowJobs

bobbyi

no profile record

comments

bobbyi
·पिछला वर्ष·discuss
That could be habit if she got used to one side rather than brain asymetry
bobbyi
·पिछला वर्ष·discuss
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.
bobbyi
·2 वर्ष पहले·discuss
He's not the boss anymore at this point (2003). Ballmer took over as CEO in 2000.
bobbyi
·2 वर्ष पहले·discuss
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.
bobbyi
·2 वर्ष पहले·discuss
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
bobbyi
·2 वर्ष पहले·discuss
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
bobbyi
·2 वर्ष पहले·discuss
Why can't you search them? In the android app at least, I've never had a problem with search working properly
bobbyi
·3 वर्ष पहले·discuss
lsof is also good for seeing what files a process is using https://www.thegeekstuff.com/2012/08/lsof-command-examples/
bobbyi
·3 वर्ष पहले·discuss
Searching for /bin/[ gets reasonable results for me

https://www.google.com/search?q=%2Fbin%2F%5B
bobbyi
·3 वर्ष पहले·discuss
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.
bobbyi
·3 वर्ष पहले·discuss
Materialized views handle this scenario, but sqlite doesn't have them
bobbyi
·3 वर्ष पहले·discuss
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.
bobbyi
·3 वर्ष पहले·discuss
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.
bobbyi
·3 वर्ष पहले·discuss
Is this similar to std::optional? It's a box containing a value. Copying the optional copies the value.
bobbyi
·3 वर्ष पहले·discuss
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-...
bobbyi
·3 वर्ष पहले·discuss
That project already exists https://github.com/ggerganov/llama.cpp
bobbyi
·3 वर्ष पहले·discuss
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.
bobbyi
·4 वर्ष पहले·discuss
In the 1990s, plenty of people felt obligated to drive to the mall, walk into B Dalton, and purchase a 300 page book to learn how to use their new software. There was a whole section for it.

Today, they can find the equivalent information for free without leaving the device where the software is running.