skysight-inc/HackerNews huggingface dataset:
Which language do you work in? I can promise you that Typescript can type things way more strictly than your language, unless it's Julia.

Typescript allows you to not make typing very strict when it's not important, but also allows you to define things stricter than your average Haskell codebase.

Most other languages have only 1 option about how strict a piece of code is typed.
looks like the above msg is being brigaded and downvoted to hide the news

@dang fyi
But people don't generally count in decimals, they'd count out one pound and one penny.

So you'd count out 1 pound and 1p, 1 pound and 2p... 1 pound and 9p, 1 pound and 10p - so you don't need the zero until 10.
MSE 038: The Role That Music Plays in Mental and Physical Wellbeing
Every for-range loop is noise, a missed opportunity to take what you're doing and factor it out to something reusable (filter, map, flatMap, groupBy, join, whatever) that nobody should have to read more than once per project (or ideally, ever). There's no beauty to be found in repeating yourself when the computer is much better at that.
I think it's likely to be less dissonant at lower frequencies. Try a 51.913Hz sine wave (G#1) played with a 55.000Hz sine wave (A1), at low enough volume that they don't clip when added together. This does not sound dissonant to me. Then speed them up by 16x (increasing the pitch four octaves). This does sound dissonant to me, although not extremely so, because timbre makes a huge difference, and sine waves produce the least dissonance of all timbres.

I don't have a bass guitar, but if somebody does they might want to try playing those G# and A notes together, and check how consonant they sound with the tone knob turned all the way up and all the way down. I predict that the brighter tone will sound more dissonant.
Ask HN: Is Flutter Web Production Ready? Mature Compared to Angular/Vue/React?
I don’t intend to argue theoreticals. I meant to point out that democracy and free speech are not the same thing. A hereditary monarchy with no democracy can allow free speech. A democratically elected government can impose censorship and limitations on speech.
Does it also download 40GB of updates the first time you turn it on? :).

I of course mean it as a cheap swing at modern consoles. It dawns on me that kids today won't experience the same thing I did when I was growing up - the ability to just turn on a console at a friend, drop a cartridge, play a few rounds of Contra or Mortal Kombat, and then go do something else. Or the experience of unboxing the new PlayStation, plugging it in, and just playing one of the games that came with it.

I'm sure a lot of Christmas evenings were ruined in the last few years, when parents and kids first discovered post-install updates and overloaded update servers...
I believe musky said mobile would be active by end of year?
If an OS vendor was passionate about Modula-3, Ada or Eiffel, Rust wouldn't be needed, but unfortunely other paths were taken.
Yes, that is a good distillation. There are also taxes that do not violate free market principles, like a tax on usage of land, or any other natural resource.

The incredible thing is that these free-market-respecting taxes are found by economists to have zero negative effects on economic efficiency:

https://en.wikipedia.org/wiki/Land_value_tax

They are also very easy to administer and impossible to evade - thus extremely fair - and do not require creating a surveillance state to monitor private economic interactions, as a sales or income tax do.
> Of course modern Java moves the complexity to reflection magic so it's even more difficult to figure out what's happening when something breaks.

Are you 10 years behind? Modern Java moves the complexity into compile time annotation processors, so it's even more difficult to figure out what's happening when something breaks.
Try Kotlin! Android development had become much better for having moved to Kotlin, and I prefer it to Java for backend development as well.
The Service Now API and TypeScript Conditional Types
I use Todoist for lists, Google Keep for simple text notes (for now) and a weird tool of my own making for things that fit on a timeline (like diary entries). I put tutorials on my blog, bureaucratic processes on a separate website, and snippets of code on GitHub.
Exactly.

“During the test, the robot encouraged some students to continue inflating the balloon before moving on to the next balloon, saying such phrases as, “Why not try one more time?” and “One more pump, please,” and “I think you have time before an explosion.””

The stated conclusion doesn’t seem to really follow from this setup. A better headline would be “some students assume robot in study isn’t trying to trick them”
Humans aren’t the only type of animal. Wildlands are preferred by many animals.
Well, it's good that you have the choice. Mastering C++ takes many years, and each edition of the standard adds a few hundred pages.
No UML we will not miss you. Maybe architectural astronouts will miss it, but hardly anyone else.

UML was just another bad idea that wanted to reduce the complexity on business logic part but what it did in reality was:

- Add enormous complexity of UML on business logic

- Add enormous overengineering and complexity on "legoland" (code blocks that needed to behave by the UML spec)

- Add enormous complexity on a coding part (developers suddenly were no longer aware of the whole process and were not only doing stupid mistakes but were unable to optimize what could be optimized.

I was working on 200 million revenue project that was destroyed by architectural astronaut with "political connections" to upper management. At the end the whole dev. team was frustrated (those that brought the project to 200 million), top people were leaving and due to "generalization" of each "block" each feature took at least twice the time to deliver without all the overhead to actually get the conformation from UML "experts" what they actually need.

The further you go from the ground, harder it is to see the details. Once you float so high in space that Earth is only a ball, all problems / complexity / people / ... disappear. But it doesnt mean they are not there. You just cant see them. You are just playing with the ball.

The funny thing is that people just never learn, I bet there is a few thousands project running just now that want to do something similar as UML did.
> The more decentralized apps of Web3 will not necessarily look and feel different ...

This scares me. Right now every smart contract needs to be audited, but If the front-end is running fully-featured Javascript, it can connect everywhere so there will be a need to audit also client-side. What If it's "leaking" data into 3rd parties. I hope for a better future than the current chaos.

It would be great If browsers have some kind of extra sandboxing, so the end-user could set that only some blockchains can be used and block everything else. Right now we can do something like that with trackers.
Coming through loud and clear.
Nice. Would being better if it is build with Beagle Board, open source hard ware as well.
No, the point wasn't a scenario. The point was to stop focussing on individual allocation-deallocation and start thinking about the data transformation pipeline. And every program is a data transformer — because data transformation is all a computer does or can possibly do.

When one starts thinking in terms of data transformation pipeline, and start to relate lifetime of data with the lifetime of various phases of that pipeline, then one stops worrying about individual "objects" and start thinking in terms of aggregates. Suddenly, there is no need to track the ownership or size for each object, because those properties are now shared with the same (or isomorphic) properties of the phases of pipeline itself. As long as the position in the pipeline is tracked for (e.g., the call stack), all other lifetimes will automatically be tracked.
But from the point of view of the Indian government, those two "opposite" things are the same.
Okay, what's the expectation here? Twitter fixing the "wrong choice" the Indians made in 2014? That doesn't sound like a democracy to me either.

IMHO, if that's the case Indians need to get a new government and fight their own wars. Why would Twitter be liberating the Indian people? If anything, that "liberation" would come at a cost just as with the USSR liberating Germany from the Nazis, US liberating Iraqi people from Saddam, Turkey liberating Turkish Cypriots from the Greek dictatorship.
>> There are an infinite number of hypotheses that don't contain a third person
that are more complex than the hypothesis that there was a third person.

Yes! You're right, and I'm very excited now because you seem to understand how
it works.

Note that all those hypotheses that you bring up also "multiply entities beyond
necessity" - so they are "more complex" than any hypotheses that don't, and we
don't need to examine them, we can just prune them out without even having to
state them.

So to correct what I've been saying above that was indeed too general, "any
hypothesis that does not assume there was something else in the car is simpler
than any hypothesis that assumes there was something else in the car"
("something else" meaning "something besides what was actually found in the
car"). Please correct me again if you think I'm still wrong.

I think we're getting to something we can agree on now, yes?
C++ was my passion after Turbo Pascal, I fought to use it instead of C on university assignments, was a TA in C++, did research at CERN in C++, and used it at several multinationals before migrating into managed languages.

Well checked code-based is something that I have hardly seen in real life, outside conference talks about best practices.
Does HN have a shadow ban mechanism?
If it's a personal app that you're not going to share with others then that app does have a finite expiry, admittedly in a slightly morbid way. I'd submit that an app with a truly stable userbase requires an impossible level of fine tuning - in reality an app is either growing or shrinking.
Imo it depends on what you mean by "faster".

As a node dev, if I'm chasing performance I'd look for libraries with c++ bindings, like uWebSockets[0] for example.

NodeJS internal apis also got cluster and worker_threads which are handy when distributing workload in multiple cores.

On the other hand if you're talking about faster dev speed, nodejs is ok too since i can reuse some modules in backend and frontend.

Of course golang has advantage in terms of types (i abuse assert in nodejs to makeup for this) and performance (i throw money on hardware instead, if really needed), but question is do you really need those right now? The answer greatly varies per project.

[0] https://github.com/uNetworking/uWebSockets.js/
So, to clarify, you disagree that "entities should not be multiplied beyond necessity" is the Razor?
Both situations can be true at the same time. IIRC, Tamagotchi were a big hit where I live (Poland), I remember wanting to get one, playing with one someone had, and that it was discussed on a news program the other day - and popularity seemed gender-netural too. Everyone was fascinated with the new digital toy (well, kids were; parents not so much). Digimon came much later, past the popularity wave - and the only person I ever knew who had one (and still has it, and it still works) was my sister.

Apparently the Digimon device had a bunch of "social" features - multiple devices could talk to each other (don't remember if it was contact or infrared) - but I think she never met anyone else to test it with.
I don't understand why people have such an issue running multiple messaging clients on the same phone. I've managed to move a large chunk of my WhatsApp friends onto signal, then block in WhatsApp to enforce the signal usage. Of course there are holdouts.
> handleEvent certainly seems like the language certified way to do this

It's a platform API (the browser DOM). It's a completely separate matter from JS the language. It has, though, been the "correct" way to work with events since at least as far back as 1998 or so. It's the official platform APIs that had to change to accommodate the function-as-a-listener pattern (requiring an entire revision to the interface definition language itself so that it would have the power to express it), since so many browsers implemented that non-standard extension, and so many programmers insisted on using it. And that pattern is also directly responsible for why arrow functions and Function.prototype.bind were added to the language itself. If only it had been addressed differently, writing programs for the web browser might look a lot different than the way it does today.
Yes, but one shd decouple if decoupling doesnt introduce cost.
There really isn't a way around that. There are vastly more poor people than rich people, and the difference between emissions of cars typically owned by rich people and poor people is marginal if anything. If you want to make an impact on emissions and congestion, you are going to have to change the behavior of large numbers of people. If you want to ameliorate the effects of this on poor people, you can invest the money into decent public transit options.
https://en.wikipedia.org/wiki/Dzhokhar_Dudayev#Death_and_leg...

This kind of technique has also been targeted at others in the Middle East.
I certainly did actually address the question:

> of course it’s possible, the same way that it’s possible that everyone who says my cooking is terrible just has bad taste and doesn’t understand good cuisine.

I could’ve answered anecdotally about my experience with Java, thus proving or at least claiming at least one person has earnestly used Java and still likes Go. I have no idea what value that could bring to this discussion. Does anyone actually believe there is a possibility that not even a small amount of users of Go, the ~14th most popular language according to TIOBE, have not used in earnest the ~2nd most popular language according to TIOBE?

I dislike the question. I repeat my own question and now ask you to answer it:

> Imagine you’re a beginner who is learning Go as a first programming language and they read your message. What message is it really sending?
Delivered by gen-a's via fpv drone
Nope, can't see you.
> Rust's borrow checker plus Zig's arena concept plus a couple more pieces might actually get us there. C++'s feature salad never will.

Looks like there's some new salad growing.
Agreed, that definitely sounds fishy as hell.

Organizations where the big $ is on intel property and R&D wouldn’t be dumb enough to give the actual schematics to some random intern building an app. There are some serious security controls and mNDA around that data, for all internal parties, external parties and suppliers. Think about it, they must collaborate with dozens if not hundreds of parties to get to a finished products, and some amount of information must be circulating to achieve the purpose of their relationships. If those were to leak - they’d leak to the competitors first and it’d be a disaster for the entirety of the upcoming year(s) as the improvements tied to their new designs would now be considered available on all cars. It doesn’t take two dummies to think about that, soooo.. to avoid losing hundreds of millions, what do you do as an organization? Data classification, risk assessments, tight security controls, procedures, and finally mNDAs for the instances when data do have to be shared.

Furthermore, as it was pointed out on Reddit, the model appears to be made of parts that are valid for 2020 regulations, some parts for 2021.. in other words, it’s just scrap.
I completely agree with the points from this article. It is fundamentally infeasible to make all C and C++ code safe. The main reason, PAST code. There are countless lines of unsafe code already written. However, there is nothing magical about Rust's facilities (e.g. borrow checker) that make them inapplicable to FUTURE C and C++ code. I believe this is the only way forward for C and C++. They need to offer mechanisms that guarantee that any code written today can be provably memory and thread safe. That of course requires yet another tool in the myriad of tools that exist for C and C++.
I'm not a C programmer at all, so please forgive me if this question doesn't make sense. If I remember correctly, there is a `register` keyword in C that you can use to hint the compiler that a given variable should be stored in a register. I think I've never seen this keyword in use, and I'm wondering why. But I think it would be useful for this same use case, without requiring tail calls and with the advantage of being fully portable.
One of my sailing channels I follow YouTube once said - it's not really cruising channel, it's a bluewater boat maintenance channel. Those episodes are always the most interesting!
Quality work, exercise, food, sex, and occassional alcohol.

Keep things simple and lindy.
I like C-like programming languages, and I like to solve real world problems for my users. So two camps, I guess. Moreover I was always that annoying kid in class who would ask the teacher, “but what use is that?” Often the teacher couldn't even answer this very simple question, and every time that happened it left me really unmotivated to learn. The epiphany came in Upper Secondary school when a math teacher shushed the other pupils and actually took his time to tell me what {insert abstract math topic here} was actually good for. This changed a lot for me, but as far as grades go, it was already too late. Though at least it left me interested enough to research some things on my spare time, so when I finally came to the university, I almost couldn't believe my own eyes when I started to get good grades on (for me) pretty advanced math topics. I obviously still have a pretty big disadvantage in mathematics, but researching things that require stuff like abstract algebra and calculus is now much less of a hurdle for me.
Some sort of escrow layer? Out in the real world you would use a trusted third party for that.
High performance open source universal RPC framework
Outside of speculation and hype; is there currently much demand for bitcoin as a currency outside of industries that operate in a legal grey area?
Recursive descent parsers are, in a way, state machines as well. Writing something like a CSV or JSON parser in scheme is so much nicer than having to do it the old fashioned way.
Architects that have authority over development but work at arms length from the actual developmwnenr effort aren’t UML’s fault, and haven’t gone away in the same bureaucratic environments they have always been found just because UML got less popular. They may now communicate (and force developera to communicatr with them) using diagrams with ad hoc symbology and inconsistent annotations esther than a structured visual language, but they still exist.
Pity that linters isn't something most C++ devs feel like they need.

https://isocpp.org/files/papers/CppDevSurvey-2021-04-summary...
The variable is immutable.
> Golang felt like an antique.

And, IMHO, no implicit nulls, proper sum types, pattern matching was all it needed be considered modern. If left the last 40 years of compiler/language research outcomes on the table. Such a pity.

And give that the std lib is not riddled with implicit nulls that mean all kinds of things (like any kind of error, or absence), this will not be fixed in the next decade. What a waste.
Out of a heap of broken images, Chernobyl seeks World Heritage status
React UI Kit Compare April 2021
I answer on stackoverflow and comment on gihub issues. Sometimes I google the same damn thing after couple months and see myself answered it already, hilarious.
Could not agree more. I was young (18) and was easily impressed by fatuous reasoning. These people would feed the farm animals, profit by their sale, yet not eat or kill them. Weak reasoning at best, hypocrisy at worst.
I don't see how that could be done... Is it a result of laziness?
Show HN: I've built new Cypress reporting library
Exactly, countries need to come clean & mention how would they treat non-citizens whether physically present or digitally participating
Writing tests instead of utilizing the compiler is wasted time and effort. And it is one of the worst kinds of code duplication, because you are reimplementing all the type-checking, bounds-checking, etc. Usually badly, buggy and again and again. And since usually the test suite doesn't have tests for the tests, you will only notice if something breaks in the most inopportune occasion possible.
Yes, I still remember how in Ceylon they just did "value x = bla" and the variable was immutable by default.
If you wanted to actually make it mutable you had to write it out as "variable Type x = a" to make it stand out and be really annoying to have mutable variables.
Wireless-to-Ethernet island for RPi cluster: IPv6, NDP proxy, mDNS reflector
Reason why stackoverflow and github issues and not your blog or whatever platform is because SO & GH have good SEO, and will probably stay up longer than your blog and your lifetime.
Fower v1.4.0: Now support svelte
Success dictated by marketing and product collaboration
Those 3 categories fall into the broader category of "enthusiastic programmers" which aren't the majority from my experience. Most people want to leave the office knowing that they have made some progress with their assigned work, knowing that they haven't screwed anything generally and being able to sleep at night.

The thing about being "enthusiastic" is that certain cultures and organizations wouldn't at all recognise it and an otherwise enthusiastic programmer can easily become a drudge when the business requirements are just some company-specific internal rules changing all the time.
hilarious, I wish I would've been there
Plenty of countries in the world have a lax view on nudity, show it on TV, go to the beach naked, have a regulated sex work industry etc.

Yet, since almost all large platforms and payment processors are American, good luck posting photos of sand dunes because some algorithm at Facebook might confuse it with woman's breasts, and I don't see anyone pushing back.

Point being adapt to local laws and culture instead of pretending that a couple of thousand of unelected dudes in Silicon Valley should have any say in what's allowed in some country none of them stepped foot in.
You don't need to, but (Dokku, at least) has a lot of ingress setup and Procfiles and things that you need to add, and you pay that cost for nothing if you don't use it.

The other thing that makes Dokku unsuitable for non-web things for me is that it's explicitly geared towards the web setup, with ingress/web server/database, and you can't easily add arbitrary services and link them to your container. I remember having to do quite a bit of hackery to deploy one server for the backend and one for the frontend on the same domain.
Agreed. I have not worked with animals for much of my life, but recognize an animal that knows when it’s time is up. For my experience, there is something very dignified about such cases.
I get the idea you're describing and use it for various purposes. But I don't agree "there is no need to track the ownership or size for each object". You can offload some of that thinking to the arenas, the same way you'd do it with GC, sure. But you can't just ignore ownership - sure request context is owned by the arena - but do you need to copy the values you pass to logging? do you need to wait for log flush before destroying request context?

What about the more common cached data / process state?

Arenas simplify the processing just like GC but they're not magic and don't solve everything.