skysight-inc/HackerNews huggingface dataset:
A common case is when you need to add logging to a function.

There are 2 ways:

1. You cheat and use unsafePerformIO. This is discouraged and I won't go into the details.

2. You convert your inner function from being a "pure" function to being a monadic function over some abstract MonadLogger m. Then you can still call your function in a "pure" context by using a Writer monad for your MonadLogger, but you can also call it from the IO monad and get "better" logging (with real-time output and timing info).

Note that you still do need to convert your entire call chain from being pure to use "MonadLogger".

But I would argue that even in non-Haskell languages you should also do this (meaning you should thread a "Logger" object through all functions). Why? Let's say you don't, and now you want to do logging from some inner function. How do you configure the logging? To which file do you save it? What verbosity level? You will need to use a global/Singleton Logger object. But what if you want to call your function from two different places in your code and use a different verbosity setting for each? You can't. So I argue you are always just better off doing the refactor in all languages. The fact that Haskell forces this means that developers don't have the choice and are forced to do the right thing.
This is almost certainly illegal under the gdpr because it’s effectively charging users money to opt for privacy.
Powder-RENEW The nation’s first open programmable advanced wireless researchtest
He plays fast and loose with some facts, but is hardly alone in that hobby. For example, he completely ignored USSR's occupation of Iran in context of Truman Doctrine. However, he does provide historical facts that were entirely obscure to me (at least) but have checked out, specially related to matter in the 19th c.
Show HN: Talkto.chat Like ChatGPT with Voice
Hey HN,

in the past few days I've build a voice based interaction with OpenAI's DaVinci model while keeping conversation context.

Give it a try and let me know your thoughts:
https://talkto.chat
The number of products produced by a given company has never been part of the definition of FANG. And the exact companies in the acronym don't really matter anymore anyway; the overall 'vibe' of it is simply top-tier tech companies, i.e. those that pay the most. Agreed that AirBnb should also qualify, but the exact companies that fit are fluid and it doesn't make sense to keep changing the acronym all the time as the constituent companies change, as the overall idea doesn't change. E.g. consider the Dow Jones index; the constituent companies have changed over time but the name of the index doesn't.
Rotem Kanon – Learn About Google
So at first I thought Apple had managed to undo the whole nonsense that book publishers strong-armed Amazon into doing where they can turn off TTS narration to make you buy the audiobook. But instead this seems to just be "hey if you want to use TTS instead of a paid narrator, you can". Already kinda shitty, but there's extra shit cherries on top: the resulting recording cannot be used on other book platforms. Only Apple Books and the DRM nonsense that killed public libraries.

So it's also platform capitalist moat building, too - i.e. a scheme to deprive Amazon Audible of audiobooks. The more publishers opt to use Apple Books digital narration instead of paying a narrator, the less audiobooks will be available on Audible. And yes, you are allowed to still pay a narrator and distribute that recording on Audible, but... if you could do that, then obviously you wouldn't bother with Apple's TTS system.

Of course, the flipside of this is that Amazon refuses to bother with copyright enforcement for books not on Audible. Cory Doctorow found this out the hard way[0]. If you do not license your work to Amazon, Amazon will pay someone else to copy it, and for some reason DMCA 512 protects them[1]. So I can see this winding up being a functionally unused service anyway.

[0] https://www.audible.com/pd/Why-None-of-My-Books-Are-Availabl...

[1] To be clear, I do not oppose DMCA 512; I just don't think DRM-bearing audiobook services that charge money should be allowed to disclaim copyright liability. DMCA 512 and 1201 should be mutually exclusive.
If you like to learn new thing, you are passionate about technology and open minded, you should check out Rotem's site.
You're 100% not wrong. I think in many cases through it's supplementing insufficient retirement funds, so even a low skill low wage part time job (making/selling art, garden fruits/vegetables, foods, etc) may be sufficient to provide enough runway for existing retirement funds.
Maybe stay above C, where relatively small errors may lead to serious security issues and/or crashes. And avoid running your first creation as root / privileged!
My point being that many of the people who were "bullish" on some of those ideas (r/wallstreetbets), are re-evaluating things right now in light of crypto implosion. That's a positive outcome for me.
I once read an interview with a writer/producer on Malcolm who said early on they realized there wasn't anything Bryan Cranston wouldn't do. They specifically tried to come up with things for Hal to do to challenge Cranston, and he never said no.
First thing I would do when I got a new CPU was FreeBSD make world or re-compiling wine from source.
I flagged this post as being irrelevant to Hacker News, but note: after McCarthy made his concessions, it didn't actually change the votes (IE, he offered something and got nothing in return), and yes, Scalise will be trotted out as the candidate soon.
I'm sure it's only a vocal minority that care
Apparently D is in the middle of adding an ownership system that would not require GC for safety: https://dlang.org/spec/ob.html
I never got the impression anyone thought that? I always thought it was widely understood that we were the resources.
2050 is almost 3 decades away. There are at least two public companies that are in testing phase for such batteries today. Starting at coin sized (they last 2x longer). Then AA and then larger scale. I’d guess 5yr out which means 10.
Interesting trends that pop out at first glance:

1. Seems like YC is all aboard the B2B SaaS train. This is funny because early last decade B2B SaaS was known as mostly a lifestyle business category, while investors focused on consumer facing tech and big ticket enterprise products

2. It appears that the big tech employee track and the startup track are one and the same now. This flies in the face of the common wisdom that entrepreneurs and employees are very different from one another.
I think that's mostly accurate. Demand won't be high forever. A hybrid approach will develop. Software and tech in the day, welding and plumbing in the evening. Eventually, whatever the young employee values more will be prioritized for a career.
There are many ways to target cookies without saying 'cookies' directly.

>If the data you get/process/store is strictly required for the functioning of your business

This is also quite the oversimplification, by this logic Facebook/Google don't need any consent as that user data and ability to serve targeted ads is required for the business to function.

It's also telling that the GDPR.EU website itself seems to flaunt the law with this: "We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it"
That's the future of SaaS (Shoes as a Service).
It is disheartening to see a recurring theme of individuals expressing frustration over their inability to afford a home or advance in society, yet also expressing reluctance to engage in activities that could potentially bring financial stability. Our predecessors sacrificed their physical well-being in order to construct and maintain the infrastructure and amenities that we now benefit from. In order to maintain a functioning society, it is necessary for individuals to contribute their skills and labor to the greater good. Whether it be through manual labor or desk work, every individual is essentially selling their time, effort, and health to their employer. While it may not be the most desirable circumstance, it is a necessary component of societal functioning.
I wish I knew more about the Montreal area
I'm in Houston. A "manual" machinist (non-CNC) working in my factory in 1980 could make $25 per hour. In 2020, I was still paying the same machinist $25 an hour nominally, except now he operates a CNC machinist and is vastly more productive. However, his productivity gains have been competed away both domestically and by oversees manufacturing, and via boom and bust cycles in the oil patch that reset wages.
Heroic launcher works great. Saved game syncing is still in development, but if you have one gaming computer, this is not a problem.
So...free solar panels?
You can buy seedboxes and VPNs with cash-purchased bitcoin.
Unfortunately, I haven't found any. There are some hacky solutions that I've bookmarked over the years, but nothing reliable enough for a production service(s). At least that I've found.

Most "alternative" SMS services a simply a façade built on top of Twilio, with the markup to prove it.
Looks cool. But not $1400 cool.
https://beta.openai.com/docs/guides/embeddings/use-cases
There are other requirements: the lead knee has to be straight from the moment the foot touches the ground to when the knee passes under the body. (or something like that)
You're right, but there's a gradient: there's selling your time and then there's selling your time and being in constant pain.
easier to remember download link?
Hell does not look dumb. It's either terrifying or medieval cool. Just look at Metal album covers.
Yep, the problem is they are providing the illusion of privacy and violating it. They should just make everyone’s cloud storage public access for viewing if they want to treat it like public data.
Whoa, that's unbelievably long if you're a Prime subscriber. I pretty much assumed 2-day shipping was standard for every single Prime member in the US. Do you live elsewhere? And how urban is your area if I may ask (approx. population)?
Maybe, but it looks weird to be always blaming that the other twos are organizing civil unrest, than to be clear that the networks are split.
Paywall: https://archive.is/G9M4E

It’s still crazy to me how rapidly AI has grown in mainstream popularity and relevance in the past year. Curious to see this new market develop now with competitors like You.com’s YouChat coming onto the scene.
They'll start collecting DNA samples of you from your feet and then create a clone. They'll lure you away on a fraudulent whiteboard coding interview assignment and then insert the clone into your family. When you return, the clone will have you arrested for impersonation and you will spend the rest of your life in Guantanamo while the clone lives your life. At a crucial moment, they will speak a trigger word that will cause the clone to kill the President, who they will then replace with a clone President, who will then use his now vast power to remove max-speed regulations on these devices, allowing them to go up to 10 mph.

It's terrifying.
Powder: Platform for Open Wireless Data-Driven Experimental Research
Seems plausible, for millennials at least. SimCity 2000 was one of those games that seemed to be in every public school computer lab in the late 90s and early 00s. Tons of people played it, more than just the usual audience for management/business sims.
wait, is the total number of videos on YouTube a known number? thats fascinating, i'd love to see your assumptions for napkin math
Yes, at least do it once. Classes are very cheap! $500 for about 30h with a welding instructor pays for itself in fun alone.
Timing of engine burns matters once you're in orbit, but vanilla KSP had tools to help you plan the basic ones.

During launch, the only real timing or skill involved was knowing when to start turning east (around 10km, imho), and knowing how to keep your speed below the thresholds that air resistance was eating your delta-V (there's charts around to help with that, but it's not hard).

If you're using solid rocket motors that can't be throttled or stopped, you have a bit less control.
Hook a small PC to each TV and run Kodi.
The way we protect 80 yo grandmas is by sounding alarms to anyone that will listen that this is a scam. Especially if that 80 yo grandma is yours.

It's why the anti-crypto crowd has been so vocal. They're not haters. They're trying to warn others.

The frustration in that crowd is that you're ridiculed for your lack of faith. Hence the schadenfreude.
Update: just shipped a fix for the rate limits - you will need to signup for an account and put your own personal access token in.
Its not just a land/materials problem, its a zoning/permits issue in many places.
In Google's OAuth 2.0 for TV and Limited-Input Device Applications page, https://developers.google.com/identity/protocols/oauth2/limi..., it says:

"Note that there are limits on the number of refresh tokens that will be issued; one limit per client/user combination, and another per user across all clients. You should save refresh tokens in long-term storage and continue to use them as long as they remain valid. If your application requests too many refresh tokens, it may run into these limits, in which case older refresh tokens will stop working."

Maybe you could try issuing thousands of OAuth refresh tokens (or more) for your account, in the hope that it will hit some internal limit and automatically revoke the one stored inside that Smart TV?
The claims I quoted were all facts. The article ends with a lot of interpretation of those facts that seem to be based on a lot of the authors priors and not at all based on good data.
Really appreciate it! I'll have to look into it in a bit more detail. I'm a little tired of having to plug my laptop in via HDMI every time I want to play a movie I can't find on netflix.

The only problem is, I don't have a PC and I really don't want to mix my mac I use for work with torrented movies. So I would have to look into getting a cheap windows machine :)
Is safari still evicting indexeddb after 7 days? https://web.dev/storage-for-the-web/

If so, Indexeddb should only be used to store “unsaved” files for safari.

Chrome and Firefox support https://caniuse.com/mdn-api_permissions_persistent-storage_p...

But that implies if the user denies persistent storage, then indexedb should be again only used to store “unsaved” files
This sort of "late-stage capitalism" cynicism used to be concentrated on reddit but is everywhere now. These shoes are extremely technically impressive, highly novel, and very useful, and yet they're still met with a combative dismissiveness even on a site ostensibly dedicated to such things. Sign of the zeitgeist.
There's not that many jobs that pay that much around here.

But that doesn't answer the question. If you can't get people to apply for a physically demanding job, despite other benefits like stability, unionization, etc, at $25-30/hr then it seems rational to try $35-40/hr unless the need really isn't there. We've been living with so much inflation relative to such little wage growth that if I was told things are more expensive because machinists want a wage they can use to buy a house with I would still chafe at the inflation but the justification would be a lot more palatable than "the board raised the prices and did a stock buyback with the profits".
"every individual"
ha ha hah ha
Will this be available with APIs to use this embedded like DuckDB?

All the examples I see are using the CLI.
> [...] and seemingly never include native work that was done when giving metrics about how long it took to "write" a feature in RN, usually because a separate "native" team does that work, not them, so it's conveniently not mentioned.

In this case it seems like they transitioned a mostly native mobile workforce into React Native, so I don't know that the last bit makes much sense here. I agree with you that there is a general absence of information about how they still deal with the native side of everything with React Native becoming more and more important in their apps. Even just the "yet-to-be-transitioned-but-we-need-to-use-it" kind of stuff would've been more interesting to learn about and certainly "What native stuff remained in sections that were ported?" seems reasonable as well.
In contrast to most people here, I have actually worked outside of an office chair, for a short period of time, in a factory and also do woodworking as a hobby. The reason fewer people want to learn the trades is because it sucks. It's usually too hot or too cold, dirty (not just oil, I'm talking about spiders and bugs, nasty customer's homes and so on), loud and dusty, it's hard on your body (try standing for 8h straight without moving or holding a vibrating tool for hours), it's less intellectually stimulating than STEM office jobs and the low barrier of entry, combined with a much lower margin than software makes for low wages.

I'm happy with my home office programming jobs, even though it is pointless and unfulfilling.

The US and European economies are increasingly becoming service economies and the middle class is eroded. People nowadays are too poor to pay for skilled domestic labor, only cheaply produced trinkets from overseas are still affordable. I think the only time, if ever, that production and building will become popular again is when China will finally cut us off und people realize that you can't eat software, metaphorically speaking.
What banning noncompetes could mean for the US workforce
Oh I think it should be improved for sure. I just think this is a bad example. I think most of the fact checking can be done using any modern information retrieval system and you can build algorithms that will regenerate answers until they’re factually correct, or use the IR to hint the answer to correctness. We also have very powerful semantic inference engines and other tools that complement LLM output. I think judging the possibilities by the beta is simplistic, and folks are unfairly down on the achievement by picking nits.
If they don't fix the Linux issue, like steam does, no money from me.
I’m going to be deadass with you brother. We don’t have a functioning society, we have an immigration labor camp.
Do they make these without the motors?

I honestly wouldn't mind some rollerskates I just strap onto a shoe.
Qualified | San Francisco, CA or Remote (US/Canada) | Remote OK | https://www.qualified.com

Qualified is the pipeline generation platform for revenue teams that use Salesforce. To learn more about who we are, our engineering culture, and whether this is the right place for you, read our Key Values profile: https://www.keyvalues.com/qualified

Here are our open roles:

- Full-Stack Software Engineer (All Levels): https://jobs.lever.co/qualified/1f7e660d-5c37-4dce-a36f-7441...

- Staff Software Engineer - Product: https://jobs.lever.co/qualified/349c7798-b137-4922-adef-b6ab...

Tech Stack: Qualified is a modern web app with a React UI interfacing over GraphQL, REST, and WebSockets with a Ruby on Rails backend. The data and messaging layers are built on PostgreSQL, Redis, and ClickHouse.
does anyone have recs on how to run this on a continuous basis in the cloud? this obviously will take a lot more storage than like a normal heroku setup (not that I would use heroku). should i use Railway or Render or is that overkill compared to something else?

gasp can i run it as a github action???
> Unless the VC gets caught with their pants down right at the end of the transition, they'll probably turn a profit.

Sure, it's like investing in stocks. But the incentives for VCs and academics are totally different. In academia, volume is a big part of prestige (not for everyone, of course, and to many people's dismay), whereas for VCs they're looking for that one huge disruptor, and are often willing to miss on hundreds to hit it.
Trying to figure out where the racism allegations come from. Do you mean this?

https://github.com/AUTOMATIC1111/WhiteOnly

If so, lol.
Another idea for them: Walkatron for NFTs token for "....." causes....
Ah ha! Thanks for the clarification!

Good thing UPS is a unique acronym that isn't used elsewhere when discussing computers :)

AAAAA

(anti-"ambiguous acronym" advocates anonymous)
There is nothing about first-class functions that requires function call syntax to be the same as method invocation syntax. OCaml, Objective-C, and Smalltalk all have different syntax for method invocation and function calls.

To make it concrete: what are you unable to do in Ruby that you're able to do in the languages that you claim do have first-class functions?
Why is that obvious? They look cool to me.
How do you deal with file numbering?

I prefer the file prefixed with a number that indicates "air date". 01 being the first uploaded video. The default is by index and the top of the channel or playlist is number 01 which is the most recent.
Agree. iron-session is great
Hi Suskeviet,

So many way to play inside the good old holy world of lambda-calculus! The following document: http://jwodder.freeshell.org/lambda.html is a must have as a basis for many explorations.

Years ago I was looking for a small lambda-calculus evaluator working in a web browser - I really need to write living code in a web page - and here are some tests where I look for the shortest way, the simplest way, the "first principles", for example to build the numbers, the operators. Never satisfied, always searching:

http://lambdaway.free.fr/lambdawalks/?view=lambdacalc

http://lambdaway.free.fr/lambdawalks/?view=lambda_calculus

http://lambdaway.free.fr/lambdawalks/?view=fromroots2canopy

http://lambdaway.free.fr/lambdawalks/?view=coding

with the ultimate goal of having a programming language that can be used to compute primes, factorials, fibonaccis, a Fast Fourier Transform, ... or simply compose a web page. More in http://lambdaway.free.fr/lambdawalks/

I would be interested in your opinion.
Not everyone is fungible. How can you repurpose recruiters effectively when you're not recruiting? How can you repurpose well-paid robotics engineers when you've realized you have over-invested?
Rust has a very enthusiastic following, and D is perceived as interloping on "their" territory because it is good at a lot of the same things.
Taking on an unknown, quite likely flakey person could be the death knell for a small company in these fields. You vouched for this person and it worked.

The often attempted solution in Europe is commonly funded training in these fields. Germany does it the best, I think with a very formalized education/trainee system. Not sure how/if they deal with older people who need a new job.
Over gravel you probably want larger tires. One Wheel or Evolve all terrain would do it.

https://onewheel.com
https://evolveskateboardsusa.com/products/gtr-bamboo-all-terrain
grab the audio stream from something else and stitch them together with ffmpeg (like youtube-dl and others do)
Question for mobile devs - how viable is to share code betweeen native android and IOS apps? IE, all the user interface is done natively, but you share business rules, and maybe even an abstract view layer with names of fields, actions etc.

Would you have to write it all in C, as that's the lowest common denominator for stuff that can be used in both swift and kotlin? Or are there other alternatives?
Agree that it isn't easy going independent as a plumber. But it's easier than in, say, construction. That leaves room for trade-offs between ambition and risk on one hand and a safe, secure job on the other hand.
> Isn't this adding new cores directly onto the main chip? That doesn't sound like it fits to me.

These are coprocessors, which are a very different thing from just another CPU core. For one, they use a different architecture (instruction set, registers/memory, etc.).

The "wheel of reincarnation" refers to features/capabilities on coprocessors eventually being folded into the main CPU. While CPUs have adopted insights from GPU implementations, GPU functionality has never been fully folded into CPUs (software rasterizers don't count).