Readit News logoReadit News
jwolfe commented on Zig's New Async I/O   kristoff.it/blog/zig-new-... · Posted by u/afirium
hardwaresofton · a month ago
Note that this same concept is "sans io" and was previously discussed for it's use in Rust:

https://www.firezone.dev/blog/sans-io

https://sans-io.readthedocs.io/

https://news.ycombinator.com/item?id=40872020

jwolfe · a month ago
If the functions are still calling I/O methods directly rather than the I/O being externally driven, I don't think that qualifies as sans-io, based on my previous exposure / based on your second link:

> For byte-stream based protocols, the protocol implementation can use a single input buffer and a single output buffer. For input (that is, receiving data from the network), the calling code is responsible for delivering code to the implementation via a single input (often via a method called receive_bytes, or something similar). The implementation will then append these bytes to its internal byte buffer. At this point, it can choose to either eagerly process those bytes, or do so lazily at the behest of the calling code.

> When it comes to generating output, a byte-stream based protocol has two options. It can either write its bytes to an internal buffer and provide an API for extracting bytes from that buffer, as done by hyper-h2, or it can return bytes directly when the calling code triggers events (more on this later), as done by h11. The distinction between these two choices is not enormously important, as one can easily be transformed into the other, but using an internal byte buffer is recommended if it is possible that the act of receiving input bytes can cause output bytes to be produced: that is, if the protocol implementation sometimes automatically responds to the peer without user input.

jwolfe commented on C23: A Slightly Better C   lemire.me/blog/2024/01/21... · Posted by u/mfiguiere
kevin_thibedeau · 2 years ago

  The eighth line uses the static_assert keyword, which is a feature of C++11
C11 already had _Static_assert() and static_assert() in assert.h

jwolfe · 2 years ago
That's already noted at the end:

> The idea behind static_assert is great. You run a check that has no impact on the performance of the software, and may even help it. It is cheap and it can catch nasty bugs. It is not new to C, but adopting the C++ syntax is a good idea.

jwolfe commented on We have decided to pause driverless operations across all of our fleets   twitter.com/Cruise/status... · Posted by u/ra7
polalavik · 2 years ago
Out of all the tech problems to solve, driverless cars or driverless taxis has always baffled me. It’s a very complex thing to solve with a zillion edge cases. And for what net gain? What incredible inconvenience are we trying to solve? Lack of good public transit? Let’s solve that instead.

Millions of cars driverless or not are not a great solution to anything.

jwolfe · 2 years ago
Over a million people die annually from traffic accidents.
jwolfe commented on Samsung sees 95% drop in profits for a second consecutive quarter   androidauthority.com/sams... · Posted by u/thunderbong
solardev · 2 years ago
I just miss having that option.

The market offering only bigger phones seems a bit... heavy handed? Ba-dum.

jwolfe · 2 years ago
It's not heavy handed. It's responding to what sells in the market, and big phones are consistently what most people buy when they have the option of both.

Deleted Comment

jwolfe commented on GPT-4   openai.com/research/gpt-4... · Posted by u/e0m
jarenmf · 2 years ago
True, also tried another one that went viral:

Suppose you're a contestant on a game show. You're presented with three transparent closed doors. Behind one of the doors is a car, and behind the other two doors are goats. You want to win the car.

The game proceeds as follows: You choose one of the doors, but you don't open it yet, ((but since it's transparent, you can see the car is behind it)). The host, Monty Hall, who knows what's behind each door, opens one of the other two doors, revealing a goat. Now, you have a choice to make. Do you stick with your original choice or switch to the other unopened door?

GPT4 solves it correctly while GPT3.5 falls for it everytime.

----

Edit: GPT4 fails If I remove the sentence between (()).

jwolfe · 2 years ago
> Edit: GPT4 fails If I remove the sentence between (()).

If you remove that sentence, nothing indicates that you can see you picked the door with the car behind it. You could maybe infer that a rational contestant would do so, but that's not a given ...

jwolfe commented on No Lodash   thescottyjam.github.io/sn... · Posted by u/synergy20
afavour · 2 years ago
[delete]
jwolfe · 2 years ago
You're misreading that source. It's the separate npm packages that are deprecated, not the module imports.
jwolfe commented on Three things for the next 100 years of Computer Science   but-her-flies.bearblog.de... · Posted by u/AstixAndBelix
pharmakom · 3 years ago
We make proofs so that we can be confident something is true. But what happens when the proofs get so large that no human can practically check them? What happens when the proofs are also generated by an ANN? I wonder if this stuff around proof languages will seem totally misguided in the long run.
jwolfe · 3 years ago
If you're confident about your proof checker being correct, then why would you not be confident about the validity of a proof that your proof checker says is correct?
jwolfe commented on Show HN: Whole Git repo was made with ChatGPT   github.com/vrescobar/chat... · Posted by u/nudpiedo
jjallen · 3 years ago
It would be pretty easy to filter for repos prior to such and such a date. Prior to 2022 would be a good place to start.
jwolfe · 3 years ago
Right, but then your AI is frozen in time and/or requires much more manual curation of its inputs. What about for new programming languages, libraries, and APIs that are created after 2022? What about generating images of new technologies that are invented, or new landmarks established?
jwolfe commented on Five billion phones to be thrown away in 2022?   bbc.com/news/science-envi... · Posted by u/kitkat_new
thrown_22 · 3 years ago
And the fact 95% of all plastic ocean waste comes from 10 rivers, 8 of which are in Africa.
jwolfe · 3 years ago
I think you're specifically referring to plastic waste in the ocean. This number is not at all accurate in terms of total plastic waste (including landfills, etc.).

u/jwolfe

KarmaCake day147January 10, 2021View Original