skysight-inc/HackerNews huggingface dataset:
Hi I made an app over the past few months called Chai

Iphone Link: https://apps.apple.com/us/app/chai/id1530962229

Android Link: https://play.google.com/store/apps/details?id=com.chaitheapp

also here's a very outdated demo of it: https://www.chaitheapp.com/

I don't have a lot of people to share it with so I thought I'd share it here. I would love to get any feedback you guys can give me.

Also here's why I made it and think it can help (at least for me) improve mental health:
I've found that whenever my mental health is at its worst its because I feel lonely. This is especially true right now because the pandemic has ended up isolating a lot of people. I know in my own personal life I graduated from school and moved for a job and had to leave a lot of friends behind. This would be easier to deal with if we weren't stuck in a pandemic but right now it's really hard to make friends.

Anyway the point of the app is to always have someone to talk to. You can create a conversation about almost anything and then feel more connected with people because you are talking to someone. The point isn't to use it as a replacement for friends in real life but more of a pick me up when you are feeling down. Hope you will try it out! Thanks
They never said it was permanent.
B. Harvey's Intro to C [pdf]
The Trouble with Bright Kids (2011)
ext4 and btrfs are continuously developing.
Estonian corruption problem is overblown, it's a tiny country that does as best it can to profile itself to small companies. In reality the money laundering scandal involving swedish banks is completely on the different level, that's a huge criminal syndicates in east being friends with Scandinavian bankers. You might not be able to bribe that many, in contrast I'd say southern Europe is corrupt for real, some places in Italy, Greece, Spain etc.
> unlike C++ and Rust you can have a lean D and most probably it can perform as good as Zig if not better

I doubt this is really meaningful. The performance-ceiling on all four languages is presumably very high, as they all allow you to write hand-optimised low-level code if you want to.
Amazon's U.S. patent on one-click expired on September 11, 2017.
Mr. Gumby!
'panic' is pretty much that.
I'd guess the barrier is personal wealth for most people. That's certainly what I blame my lack of landing on the moon thus far on.

As for being excited about paying for someone else living on the moon rather than more immediate social concerns—fat chance of that.
Alameda County (adjacent to San Francisco) says: “people must, unless an exception applies, wear a Face Covering when outside and when anyone else other than just members of their Social Bubble (as defined in Paragraph 7 of Health Officer Order No. 20-14) is within 30 feet (10 yards).”
> Let's say your UI changes, like a redesign... you can rewrite your component and probably need to change most of them.

This is exactly what React does especially for stateless components that purely consume data. The component declartively says this is the data I need. The component doesn't care how that data is retrieved, that's an implementation detail separate from React.

For stateful components, this is also achievable but requires a little engineering and some good architecture (this is IMO the hardest part of 'React' - and this isn't even a concern of React - since React doesn't prescribe any specific approach).

If you define all the functionality for a component well, you should be able to easily rewrite just the view (the return value of a fucntional component or of the render method for class components) without changing any of the existing functionality.

This can be done by defining your component's behaviors via hooks (custom or builtin). Those hooks should provide any functionality and data your view needs and exposes that to the component. If no new data or functionality is needed, then nothing in these hooks (and more broadly code external to the render/return value) changes.

All that changes is the return value of your component and any css you want.

If you change the view, yeah you might have to update some event handlers for buttons that are now inputs, but that's not a UI only change, thats changing functionality too.
In Alameda County the face covering order reads: “ people must, unless an exception applies, wear a Face Covering when outside and when anyone else other than just members of their Social Bubble (as defined in Paragraph 7 of Health Officer Order No. 20-14) is within 30 feet (10 yards).”
What's a public search algorithm?

Or put another way, why twitter and not a "public short message platform"?

Your comment is likely targeting public "utilities" on the web. Of the ones you mention, I only think search and archive are "the utilities of the web": wikipedia gets close, but it's a summarised version of the archive.
Exactly. 5 weeks ago I needed CBS All Access to watch an NFL game and I figured I'd watch ST Discovery and the Stand too. I had access in 3 clicks on Roku in the Amazon prime channel. I can cancel at anytime.

My wife wanted to watch the Borne Identity and my um friend had figure out why Radarr blacklisted a bunch of releases then wait for it to download and un-par (which took 5x longer than the download). I came back into the living room 15 minutes later and found my wife just watching it with commercials on Peacock.

During a break I convinced her to switch to plex since it didn't have commercials. But then we had to pause the movie and fumble with subtitles for the scenes in the swiss bank. First downloaded set didn't match the timestamps. Second did, but it was like 5 minutes. "Why couldn't you just let me watch in on NBC HONEY?"
I remember a lot of that in Modesto back then.
And even more interesting because in Russia the priority has been the under 60, health and key workers
Really? Who is selling n95's at that price point?
I like that - but there are other options
randomly thinks of something

When you file your patent, you add blind optional licensing terms to it. For $x your company can use this. Or for $y you can license each device that uses it. For $z you can buy this (not invalidating any other registered uses).

That way when developing something, you can work out whether it's cost efficient to use/avoid/buy - and remove all the risk of litigation and the overhead of lawyers.

Patent system is broken - but on one hand don't think cancelling it is the answer, but resent the sink of cash that it sucks in by existing in its current form.
Supposedly a lot of the crazy Cardiacs lyrics were inspired by this book
The Roblox dialect of Lua supports += etc, but how they do it points to why basal Lua doesn't.

In Lua, you can say `a, b = foo(), bar()`. This can have all sorts of unintuitive consequences if there is an addition after, and one of the function calls mutates something the other one depends on. you can also have `a, b = foo()`, since it can return two values.

So Luau (the Roblox dialect) limits += statements to one lvalue, which is unsatisfying but at least a reasonable decision. I think it's worth having, but I get why Lua doesn't include that: they're quite committed to a minimal set of abstractions which compose cleanly.

There are similar answers for all of your questions but, more to the point: Lua doesn't try to be a teaching language. It's minimal, easy enough for a skilled programmer to acquire, and remarkably powerful for how tiny the whole thing is. But to really get somewhere with it, you want to grasp the entire language, and that works against it being a good first language.

That said, it isn't a bad first language either. It does demand more of you as a teacher: we can't expect a nine-year-old to copy-paste a table clone function out of the Lua wiki, or find strict mode in penlight, but it sounds like you're capable of both of those things.

Neither of those are hypotheticals, they're hurdles I cleared years ago and have to consciously remind myself exist in a clean install of the language!
> Essentially, Zig being the "Go" of C/C++/Rust/D.

I'm not sure that's a fair comparison, as Zig features compile-time evaluation ("comptime") that supports first-class types. Generics falls out of that by letting you create types imperatively at compile time. It's hard to imagine Go ever going in this direction.

As a long-time C programmer, I am really excited to try out Zig once it stabilizes a bit more. Zig's take on generics seems like a compelling alternative to C++ templates.
What’s unique about this vs the experience of a (hypothetically) rich person walking in to a department store where they have an account and saying “I’ll take that, that, and that.” then walking out and knowing that it will be delivered to their house simply by virtue of the fact that the management know their face and their preferences?
It made a lot more sense to me once I fixed the terminology.

You keep saying index, but what you are referring to is an offset.
I get the truth in that statement. But as a game programmer, I find it interesting the contrast that linear algebra is precisely what is commonly used.
I didn't say people are not willing to pay money to use an app that has free alternatives. I said good luck finding 2 billion such people. Whatsapp today is used by everyone. 8 year old kids and 85 year olds. The network effect. Its biggest asset is the number of users which makes it easy to communicate with everyone you know on it (not everywhere but in many countries). If they charged money it would've been different. It's not about the money. Everyone can afford $1/year. Even kids in poor countries. But not everyone has access to a credit card for example. Many wouldn't bother and use a free alternative like FB messenger or Telegram or whatever.
First paragraph reads as follows:
Crappy last year, blah, TypeScript.
Nothing interessting about JavaScript... Did not read further.
Tesla files to use new 'millimeter-wave radar' in electric cars
I tried this locally. The COVID-reduced workforce at the local grocery chains screwed up every order I tried to make, and Walmart is a greater evil in my book than Amazon.
There's some number-driven analysis that suggest plaintiffs began to file there specifically because plaintiffs used to often win. That seems to have settled down more recently, but the reputation remains.

https://www.houstonchronicle.com/business/article/East-Texas...
Why would it be damaging to those chances, if everyone in the dating market is in the same boat? I would expect people in their 20s to be just fine. It's single women in their late 30s that could least afford to lose a year.
UK police deletes 400k crime records
I’d argue that using the laptop at a desk negates the need for a “yank-proof” charger since in most office situations there’s an outlet near or under the desk. Thus the cable won’t be draped across a walkway where someone might trip on it.
There's a lot to do, sure, but while we don't have yet swats of learning materials for complete newcomers, I consider Zig to be today the cheapest way of getting into "systems" programming for people that never did it before.

I run Zig SHOWTIME [1] and we have quite a few talks that introduce basic concepts to people that aren't used to systems programming. Again, not yet enough to consider the problem solved, but it's a step in the right direction and we'll build a bigger library as more people join the community.

[1] https://zig.show
I converted two different laptops' Windows 7 partitions into Windows 7 VirtualBox machines. One I use, and one is a 'spare'.

They work for me in probably 98% of the cases when I 'need' Windows - to use HP Scanner Software for multiple-sheet scanning.
I don't think the problem is money, at least for now. They are either running in a datacenter and can't add capacity fast enough, or have a scale bottlenech in their design, and just weren't designed for this scale.
No, I don't want you to feel something. I just think if you think the way you describe it, it's not very empathic and also not very thoughtful. And I wanted to tell you that in an attempt to give you another perspective on what padolsey wrote. I can live with you not being empathic or thoughtful. I just failed to give you another in my mind morally and intellectually superior perspective. I wanted to give it to you for free :)

You seem to have a problem with me thinking that about you. When I try to explain my perspective, you seem to try to dismiss my arguments by making up ways I might not be empathic myself etc.

You constantly ask "What is the point?" Why do you think the woman wrote about her spoon theory? What is her point? Do you really think padolsey wrote the comment on relativistic thinking to play thought police?
Signal is a non-profit organisation. The way they are structured means they literally have no incentive to try and profit off their user base, no matter the size. I'm not saying it's not impossible that could change at some point in the future but right now they're clearly providing a net good for the world for private communication and there is no clear reason why that should change in the future as long they can continue to support themselves through donations.
No way to know without knowing the types and the mode used to compile it. If c is a pointer then it could be a panic or it could be undefined behavior (dangling reference), similarly if b is a numeric type then depending on how the program is compiled you will get different results.
Has anyone tried to combine Zig with Cosmopolitan libc yet?

https://justine.lol/cosmopolitan/index.html
> Billion-dollar verdicts to companies that do not even produce a marketable product are the antithesis of that intention.

It depends on how exactly you define "a product". I think that if one could do research and come up with valuable technology that they hope to license. If this is a useful idea then I think they should be able to sue over it even if they don't have a "product".

I think it depends more on the patent itself. If the patent is very clever and something that people are unlikely to discover themselves then it makes sense to exist and be enforceable. However if it is something obvious or simple to independently discover than it should not be, irrespective if you are producing a product or not.
Well you must be very fun in meetings.
"Estonian corruption problem is overblown"

Crime is their business model. If you want to do a scam or whatever, do it in Estonia. Trust me, nobody will ever bother you. I could elaborate, but you would not believe me.

Your could probably run a bank there that does nothing but money laundering. Trust me, the financial supervision will be the last one to bother.
Fairly certain I've heard it as "ex-noo". But it could just be that I've said it in my head that way forever!
> Price stability is a good thing, and moderate deflation (which discourages productive investment) is worse than moderate inflation, so policy targeting moderate inflation is a good thing.

That is one of the reasons. But arguably, even if a central bank could be 100% sure of hitting their inflation target exactly, they might still prefer moderate inflation to absolute price stability, because (a) it encourages productive investment and (b) it gives a simple mechanism for downward adjustment of sticky nominal prices/wages.
At this point I already left the meeting.
That's a *successful* entrepreneur. OP was talking about any entrepreneur.
I don't know if they should be public domain but there should be an open source project similar to every mega site product that is out there, twitter, Facebook, google, so on...

Basically it should be a product that is over seen by a group of diverse individuals with different needs. All these mega sites have the goal of making as much profit, as fast as possible which is causing a lot of chaos in society.
Nice! Do you already have benchmarks for this? In our experience we are way more limited by IO, or OS calls to traverse the FS than by Python. Curios to see some test results. And overall, great to see this in Go, would love to chat with you guys sometime.
To whom? To the 'donor' (as it were) it's probably (jurisdiction varies, IANA tax advisor, etc.) a decent inheritance tax avoidance (obligatory 'as opposed to evasion') - helps out a cause he believes in, while leaving the capital (hopefully/in theory) for his inheritants.

To the recipient.. I don't know why you'd prefer it to a (stipulation-free) donation, but in general it's probably easier to get big loans than big donations.
Not unredacted.
> With the "rerender" function I fear any nontrivial application will devolve back into the tangled web of event listeners we left behind when moving to React.

Disclaimer: I'm the author of Mithril.js (A React-like framework that got mentioned in some other comments). I do think that the naive approach of eager render (a la backbone) can a bit limiting in terms of large scale applications, but I think the question of scalability is more nuanced than whether a rerender function exists.

I don't think calling a function vs not calling a function is necessarily a meaningful distinction: React's own `setState` is a form of "rerender" function.

The "devil in the details" comes from what the semantics of re-rendering are, and how that ties to the overall philosophy of the library. In React, `setState` abstracts over batching, meaning that one can, for example, call dozens of setState hooks from an event handler and not have to worry about multiple repaints. But on the other hand, if you're sharing state between, say a list view and a counter pill in different areas of an app, that involves a bunch of extra code (be it data-down, events-up, or using Context or redux or whatever)

On the other side of the spectrum, too much implicitness isn't necessarily good either. Angular.js had some notoriously difficult to debug rendering loop issues when you used watching in certain ways alongside Angular.js' auto-render system.

In Mithril.js, the default is that event handlers do not require explicitly calling a rerender function at all in the first place, because it starts from the assumption that 99% of the time you do want to rerender when an event occurs. But Mithril.js does also offer explicit bail-out-of-auto-render, as well as immediate rerender and batch rerender functions because in some rare cases you do want to control exactly when to render (e.g. you might want to actually double paint if part of your state is computed from bounding box measurements, or you might have multiple third party integrations in different areas of an app that render after another third party async computation completes, and ALL of that needs to be batch-rendered if they fall in the same event loop cycle).

React's philosophy is very much to always think in terms of state snapshots, and the fact that its APIs are largely declarative reflect that. Mithril.js can also be used in a declarative fashion, but it's not as prescriptive. It also allows the developer to think in terms of timelines, and procedural APIs excel for that use case. Ultimately, though, good design comes down to being deliberate about what kind of semantics works well for what kind of mental model.
10% of that is 200 million.

5% of that is 50 million.
As I said in a sibling comment, Lua isn't designed to be good for beginners, it's simple rather than easy.

But I want to stand up for this, in particular. Because in most languages, environments are magic: they're an exceptional thing that you work with in a special way, you're not expected to understand them, just use them.

In Lua, an environment is... just a table! You can set an environment, read from it directly, assign it a metatable, and so on.

So this is great for a beginner, once he gets past the hurdle. Just like `table.field` returns `nil` if there's no field field, `field` itself returns nil if there's no `_G.field`. Because _G.field and field itself are the same thing.
Speed up your downloads with JumpGet
This problem was exactly why I wrote Rust in Action. It teaches you systems programming alongside teaching Rust.

That said, you can get quite far without needing to understand pointers or memory management in any of the example languages you mentioned - "Clojure, Scala, F#, Rust". In the first 3, the garbage collector still does most of the work. In the last, there is are no calls to malloc() or free(). Rust's compile-time lifetime concept allows to compiler to do the work for you.
Using Standard Web APIs to Mix P2P Protocols [Live at 4pm PT]
This is gonna be subjective, because it depends on what your priorities are.

The two alternatives at the top of my list are Gravity and Wren. They are both designed for the same general profile that Lua has—a scripting language, safe to use, embeddable, with a small VM (low code size).

- https://github.com/marcobambini/gravity

- https://wren.io/

The language design choices are nice and familiar to people who are used to other existing languages. Lua is a bit radical.

Two other options are AngelScript and Squirrel, which are both a bit older and more mature than Gravity and Wren.

- http://www.angelcode.com/angelscript/

- http://squirrel-lang.org/

Finally, it’s much more feasible these days to embed something like Mono, and Guile has gotten a lot better.
Yes this struck me as odd. The article makes it seem that they are being awarded $1B for infringing on a parent that is not valid. Is this correct?
Measuring and counting seem to be two fundamental things in this context.
Not-live overdubbing with perfect sync has been going on since the dawn of multi-track recording, although the popularity of including video from each layer (and DIY without a tracking engineer running the session) surged in popularity during the pandemic. With modern editing in a DAW, quantizing every phrase, word, or even syllable to the grid (or other layers) isn't difficult at all, just a bit tedious.
I think this is the main reason. Outside of math libraries (and maybe strings for concatenation?) operator overloading rarely makes sense. If you're working in a math heavy domain with custom types it's a godsend though. I wouldn't want to work in a language without operator overloading (I've done enough work with Processing and a Quake derived game engine to know that it sucks), but others might have seen it horribly abused
Why would it matter to improve the valve design, if it's being covered?

The best valves filtered particles very well without any mitigation. If there was a standard there might not be anything to talk about (they could all be better than other masks).

I think the statement about improving them is sort of misplaced in the flow (it's related to the containing paragraph and previous 2 paragraphs).
These are often knocked back with "We charge $4,000 to answer Security Questionnaires, or you can download our pre-made pack [that answers none of these questions] here."
I said twitter because it already hosts things like @whitehouse and @potus - so in a certain sense it is already fulfilling the function - but any public short message platform would suffice if they held those types of accounts
> the things you're recommending a nine year old to do are

Are you the nine-year-old? I was responding to a criticism you made regarding your understanding. Are online tutorials for children learning their first programming language supposed to explain the rationale behind the language design? If you want the latter don't use children's tutorials, or in the case of Lua, any tutorials, because the official material is at least as easy to understand, and infinitely more reliable and accurate.
Clearly you've never hung out with the Erlang community!
Funny you should mention OCaml, with doesn't have operator overloading! You can only have one function with a given name in scope at any point, that includes operators. Of course you can redefine with `let (+) a b = ...`, but then you have to explicitly open that module where you want to use that redefined operator. That makes it even more clear what's going on.
"Rhetoric" on a large, public internet forum is of extremely low quality so I think HN's fine with that transaction.
mad bytes.