Hacker News new | past | comments | ask | show | jobs | submit | xmonkee's comments login

The User object in your example is used to parse the data. Its the “somehow” part of your question. There is no way to go from a type to data in typescript (there is no runtime awareness of types whatsoever) so zod solves this by you writing the zod object and then deriving the type from it. Basically you only have to weite one thing to get the parser and the type.


We are using deno to allow our customers to run custom code with imports. This is only made possible with http imports and I for one am very happy it exists.


Can't you use also Node with `--experimental-network-imports` flag?

https://nodejs.org/api/esm.html#https-and-http-imports

I use it as a backup platform to Deno to test my code.


Does anyone know the impact of the prompt size in terms of throughput? If I'm only generating 10 tokens, does it matter if my initial prompt is 10 tokens or 8000 tokens? How much does it matter?


As a fellow bike lover, this was very emotional to read. I am a shit rider, but I think about my bike all the time lol. It really is everything to me.


Quoth a bike shop owner to me many years ago: "Just... fuckin' ride, man." Nobody cares how shit or good you are as long as you love doing it.


I am fairly certain I know the answer to this. They normally do these kind of studies on untrained humans, because the point is to prescribe (or not) exercise to people who need to lose weight, which are typically not athletes. The anecdotal success comes from people who play sports (tautologically). The problem is you cannot compare across these two groups because the metabolism and sheer volume of exercise is not comparable. Even a semi serious athlete will put in 5-6 hours of intense training a week. And their bodies are much more efficient, so they can burn way more calories in the same time. This is NOT the same as “Brisk walk and lift some weights 3-4 times a week” they prescribe the study group in a study of untrained athletes. Not even close.


I mean the typical advice I get is 1 hour of running burns as much calories as one large slice of pepperoni pizza (~700 cal). Trained or untrained, this seems off by a lot.


Why does it seem off? It's hard to measure calories when running, but with cycling we have power meters which are incredibly precise, and you will burn around 700 calories an hour (as a beginner). Trained athletes can burn maybe double of that.


Because it burns off about a whole large pizza's worth, rather than one slice, and I'm not trained.


I’m gonna try this one out with actual people (jk im not actually that kind of person)


How long before people start non-ironically wearing their prompts on tshirts or putting them on business cards?


It's already happening with profile bios on e.g. Mastodon, that boil down to "I'm X, Y, Z, don't contact me if you disagree with it or are A, B or C".


So the extension is not even released? And Facebook didn’t actually say its illegal? They are preemptively trying to get a court to affirm its legality? Why? Is there a record of Facebook suing similar extensions?


I'll allow a little "didn't read TFA to the end" on such a wordy article that buries the lede, but yes, waaaay down the page is mention of Meta suing the original "Unfollow Everything" author (who is different than software dev in TFA) and banning them for life. Hence the professor's preemptive strike.

OTOH, El Reg could've done better by stating upfront the answer to the (and your) obvious question.


Totally agree. Information could be better placed. I guess the assumption was that either the professor himself or somebody else was sued or had legal trouble in the past ...


He used “easily one of the greatest minds of our generation” for two different people in the same message. 100% ai generated


it said one was "easily one of the greatest", and it said the second was "also easily one of the greatest"... it's puffery but it's not an awkward or mindless formulation.


doesn't read like chatgpt to me, but i certainly wouldn't call it good quality writing


AI or GPT usually doesn't repeat like that. Although it usually is easy to tell if something is GPT.


They probably avoid making it look like their writing is written with chatgpt.


I thought so, but they must've changed a lot then. In any case it's not like the type of message they wrote is something special, and it's just usual polite PR.


This device is buoyant, according to the article


Which will make your feet float, driving your head underwater.


Replying to follow


You can use "favorite" for this, which is less spammy.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: