skysight-inc/HackerNews huggingface dataset:
I really just wonder what goes on in someones mind, when they sit in front of their computer, and instead of doing any of the million things that is possible to do on the internet, they decide to write another pointless language comparison article.
I was surprised to read the following:

"Pfizer asked for additional indemnity from civil cases, meaning that the company would not be held liable for rare adverse effects or for its own acts of negligence, fraud or malice. This includes those linked to company practices – say, if Pfizer sent the wrong vaccine or made errors during manufacturing."

I cannot imagine what a mindset it takes to think that this is reasonable behaviour.
Sorry but you don't know what you are talking about, try to use Dart as Dart, not as what you think Dart is... You have a mind block.
When you read the Skunk Works book you stumble upon passages where the government has to pay for tools maintenance and storage after the project is complete.

Some bureaucrat entity always decides at some moment that paying for storage of an arbitrarily old project tooling is not worth it.
Watch could and should be totally passive. You just fill the screen with one longass bluetooth message, and that is it. Maybe there should be a timer which blanks the screen after a minute, if the screen is not updated, but other hardware functions seem little superfluous. With Eink-display this would work for MONTHS.
Because the world today is not the world of yesterday. A capitalist oligarchy runs the world and forces us to consume in order to keep the gears of this rotten society on track.
But then you could write a blog post about pretty much every API misuse ever, which doesn't really seem very constructive to me.

But okay, maybe it's more obvious when having worked with pre-C++11 code, where you would have killed for something like emplace_back. If you are new to the language and only know modern C++, you probably don't think much about why emplace_back exists in addition to push_back, and why it can be faster.
>> But said shared memory is segregated.

Uhm, as a games developer working on consoles.....no it isn't. You can do it like this if you wish, but generally the entire address space is accessible from either CPU or GPU. Maybe it's implemented like this on PC, but at least the architecture design on X1/XBS/PS4/PS5 allows both reads and writes from any area of memory by either cpu or gpu.
Arizona advances bill forcing Apple to allow Fortnite-style alternative payments
I am writing an app for iOS in Swift and I have an array of structs with some 70,000 elements or thereabouts and for some bizarre reason the compiler uses so much memory if I define it as such directly in the source, that I run out of memory. So instead as a workaround for now I am storing the data as a JSON string that I parse at runtime. It’s very sad, but it’s the only option I had because I have a ton of other code to write too for this app and cannot afford to spend the time to even make a binary format for this data.

But I don’t understand why the Swift compiler decides to use so much RAM when compiling it in the first place. The string representation of the data itself is only ~3 MB. But when I tried to declare the data as an array of structs in Swift directly it uses gigabytes of memory when I try to compile it, which causes the system to start swapping and then the disk space runs out because I only have about ~20 GB of free space on the disk, so then the system can’t swap no more and is out of RAM also.

And my struct is very simple it’s just

struct Bazinga: Identifiable, Codable {
let id: Int32
let name: String
}

And before I had to turn to JSON it used to be only Identifiable even. So it’s like one of the simplest possible structs, and the 70,000 items of data only a few MB when written in the source. Yet more GB of memory is needed to compile an array of these structs than I have RAM, and even exceeds the amount of disk space I have that it can swap to. It’s super weird to me that this is even a problem, and it’s insane how many GB of memory it consumes trying to compile my code.
The profits in this case is any value that goes into infrastructure instead of investor pockets.

Yes, it would not be a net tax payer (on paper), but it would be less of a community drain, and not siphon money out of the common.
Kotlin, Clojure, Scala, Erlang (though not anymore), and Perl, too. In short, a variety of them. Though much of it is Java / Kotlin.
It's called profile-guided optimization.

And it fails for C when the source data changes significantly, compared to the inputs used by developers when they were building the binary.
This is why you be pseudonymous. If you're a bigot, it doesn't really help you (people will still stop using your stuff, and your pseudonym will gain a bad reputation), but it protects you from short-term reputation hits due to misunderstandings (like this one).
I learn C++ by example by using the VSCode debugger. I prefer it over gdb with tui. It won’t go all the way (e.g. educational/smallish projects only that are single threaded) but by that time a programmer has seen some wonky things happening that they can hypothesize about. In my case:

- dangling pointers

- integer under/overflow

- macro expansion (not via debugger but VSCode helps with this)

- double values not being the same when you expect them to be the same

- Seeing if something is copied or moved [1]

[1] Not sure if this is actually true. But I think it can be true by simply stepping inside the function like emplace_back
Show HN: Store MQTT messages in S3 (code example)
A passively cooled M1 beats a Ryzen 3900X, an i7, and an i9 in most benchmarks[0].

But if you want to pick this single benchmark so that you can conclude that the M1 is not better than a mobile phone SoC from a year ago, then you do you.

[0] https://tech.ssut.me/apple-m1-chip-benchmarks-focused-on-the...
> you can transpile any bit of Python or Lisp or Haskell or Rust or JS into C but the opposite isn’t necessarily true because not all those language support all the features exposed in C (such as goto

Turing-completeness tells you that it is in fact necessarily true that you can convert any bit of C into a corresponding bit of Python, Lisp, or Haskell. One obvious approach would be to emit code that implements a C runtime.

For goto in specific, you don't even need to do that. You don't need a goto keyword to implement goto functionality.
Because it's a hella dangerous "sport"?
Hilariously then you are back to security problems. https://www.mercurynews.com/2020/05/13/pure-chaos-as-goats-r...
All that is true.

But if the author of the paper (or even someone else with a credible reputation) was to public factors and say they used this method then it's useful evidence.
Accessors Have Message Obsession (2019)
Per Jim Keller, current source of speed in CPU is better branch prediction and data fetching prediction. It is possible C++ (or some other lang) may have more met information to drive these better, in which case it will be faster than C/assembler.

https://www.youtube.com/watch?v=G4hL5Om4IJ4
Interested to know which ways you can integrate adblocking tools in this to block tracking when using the vpn.

Obviously you would have to set up a whole lot more to maximize privacy which isn't covered in this tutorial.
>How the hell would you get anything done?

This is a sign that writing (trivial) parsers is a core competency for you. However, that doesn't meant that writing all parsers is your core competency. Especially not for an industry standard like JSON that should have plenty of libraries that take care of the problem.
That's one sarcastic video. Love it!

And check out the whiteboard wall sign. :)
Why Read Classic Books?
Yes, they kill them, but the meat is burned or otherwise destroyed, it is not going to be eaten.
People hosting pirated material often pair it with ads.
> Wealth tax has nothing to do with markets [..]

(Genuine question) how would one determine the value of something for taxation purposes if there's no market involved?
Could you be a bit more specific in what agreement the Obama admin did not honor? Which parts and how?
White, heterosexual, cis-gendered, neurotypical men doing white-collar jobs. Break out of this pattern, and someone will find something to hang you by.
I can see dang holding his head the moment he saw another India thread hit the HN front page. :D
> JIT runtimes have more input data than a C compiler

They have more data, but they are at a disadvantage by being time-pressured. They can't apply costly analysis to these data because they need to compile fast. Therefore typically they limit themselves to local analysis which may miss a lot of opportunity for inlining.
Nope. I read his comments, and they're reasonable. A country is defined by its border, which requires a fence or wall.

If you want to see a YC alumnus with silly comments, read Sam Altmans's link about his political leanings. What a tool:

https://blog.samaltman.com/the-2016-election

Hillary Clinton is one of the most corrupt politicians in American history. She paid off a British informant to start Trump's first impeachment, and has accepted up to $2 billion from the Saudis for her family's foundation.

And Trump has never said a racist thing. If you don't believe me, try to find a single quote. He's called a racist because he blocked corona passengers from the Chinese mainland, and he wouldn't denounce certain groups at the behest of leftists. Makes sense to me.
Disagree.

Writing parsers is the same level of complexity as interview FAANG level questions. Any decent developer should be able to write a parser from scratch.
Contract. You want the same salary and security in NZ as a job in the US? Take control roles with daily rates above $1K.
The interaction between C and Javascript offered by Emscripten is a lot better than JNI on Android. I wish the Android NDK would steal a few ideas from Emscripten, but all the Android teams at Google don't seem to be able to look outside the nice comfy bubble they've created for themselves.

With Emscripten, you can embed Javascript source code directly into the C code and then call the embedded JS function from the C side as well as C functions from inside Javascript.

E.g. JS embedded in C code:

https://github.com/floooh/sokol/blob/4c56a2ee15d81cac91b738b...

...called from C:

https://github.com/floooh/sokol/blob/4c56a2ee15d81cac91b738b...

...and a C function:

https://github.com/floooh/sokol/blob/4c56a2ee15d81cac91b738b...

...called from a JS function embedded in the C code:

https://github.com/floooh/sokol/blob/4c56a2ee15d81cac91b738b...
<3

EDIT: Hey, do you want to become a curator? It's very low-volume and would help keep the site more up to date.
I quite like the name, not least because it accurately gives the impression of "something you will probably misunderstand".
If if a CRUD frontend for data, just go with mobile Web.

If doing games, Unity.

If I require some native access, Xamarin.

Finally, using C++ in a MVVM approach with native Views for anything else.

Those answers are for personal projects, at work we just do mobile Web, and with Chrome and Chrome Edge teams pushing the agenda of Web APIs =~ ChromeOS, we get to do most of the stuff we care about.
It is 2021, you say or write something and six months later it turns out that there is some "oppressed" minority that is hurt by your words, people are insulting you on Facebook and Twitter, your friends are removing you from their friends list, your employer is firing you, Amazon AWS refuses hosting, Google marks your website as dangerous, Youtube demonetize your videos, then it (shadow)bans them. And you are done.

Everything that Bradbury, Orwell, Zajdel wrote becomes reality, Brooker's dystopian "Black Mirror" is no longer dystopia. So better remain silent and don't stick out...
Why don’t more companies simply use discord? Slack is discord for boomers
This sample uses an OpenFaaS MQTT-connector along with a Python function to receive JSON messages from MQTT and to store them in an S3 bucket.

The use-case could be ingestion of IoT sensor data from edge devices. I put this example together to show people a starting point, that could be modified and extended for your own use.
Also, conversely whom Emacs is attracting these days. One interesting data point i came across is this philosophy dude protesilaos.com/ . Amazing youtube videos on Emacs and he has unique view from the point of philosopher for Emacs.
400 likes is pocket change on Twitter. I'm surprised it led to cancellation so quickly; perhaps Godot developers are wisely being cautious and trying to prevent this from blowing up into a proper Twitter drama.
That's some weird semantics.
It is very much soldered separately, they are separate components soldered next to each other [1].
(Yeah, on a own sub-PCB, but still)

If that's not "soldered separately", then we might as well zoom out and apply that statement for the whole PC ("all components are in the same package, only the charger is separate")

[1] https://d3nevzfk7ii3be.cloudfront.net/igi/ZRQGFteQwoIVFbNn
Woe is thee who tries to explain woiceme
> The question is not whether you can define it in terms of addition in some abstract way

This is splitting hairs. The reals themselves are defined "in some abstract way". For instance, what does addition of reals even mean? How do you add two arbitrary real numbers? Exactly, by adding the elements of the Cauchy sequences. (And similarly for multiplication.) This is the definition of addition (multiplication) and the only abstraction involved here is the abstraction due to the way the reals are constructed in the first place.
Though I didn't like the devs renaming things to puppet (of all things), from master/slave, I think this change is fine.

A couple of years ago I visited that page when I encrypted the saves of a hobby game I worked on. I don't remember any sarcasm because I'm pretty sure I stopped reading a sentence or two in, and just scrolled down to the examples.

It was just noise that needed to be filtered out. And that's not okay because as far as good documentation goes, I usually read the entire thing before trying out an example.
> One obvious approach would be to emit code that implements a C runtime.

how could you negate the python interpreter startup time though ?
An iPad app would be nice too. WeChat has been around for ages, I have Chinese family, why does everyone else find this so hard?
They flocked there claiming they were being censored by other social media networks saying it a bastion of free speech, yet they are censoring too for less than what many of them were banned from other platforms for. I agree with what you're saying, that as long as you kind of tow the line you're fine... but Twitter or a plethora of regular social media networks aren't going to censor me as I'm not providing nefarious health advice, threatening people, or telling minorities and people of a different sexual orientation that they are subhuman.

People on Gab will say far worse, and as long as it aligns with their political beliefs it is fine with Gab. In fact, I think it aligns with the owner's beliefs based on his comments. I just wanted everyone to know it isn't a free speech platform.
Goat's dairy can be a bit of an acquired taste :). I drank goat's milk when I was young due to an allergy and I remember switching to cow's milk and it being yuck for a while. Love goats though, my grandma kept them, they are smart and feisty.
Quote: " If you don't market it, you can lose to somebody who just puts privacy perfume on a pig and tells you it smells great and tastes delicious."

Well, pigs are tasty in the first place. Secondly, this plays on the assumption that pigs are filthy animals, which is very wrong. They like water, they like to get wet precisely because they like to be clean from parasites on skin. The fact that they do this in mud is because how humans are raising them in small filthy enclave. Given the choice, pigs will go and bathe in clean water, not mud. Or go ask any hunter to tell if they saw wild boars that are full of mud instead of actually being clean.
> In D, `immutable(int)* x` cannot be changed by any reference to the value.

even if I use a magnetic needle to change the bits in my RAM ? :)
I use TaskWarrior[0]. Low friction..

task add +read "Book title. Mentioned in interview [link for the resource] by X with Y. Useful because [reasons].

Then I annotate the task

task 180 annotate (triple quotes)(multi line thoughts)(triple quotes)(return)

I also add notes there. I also used markdown files and MKDocs [old link: https://jhadjar.gitlab.io/kbase/]

This stuff served as the seed of our knowledge base where I work.

- [0]: https://taskwarrior.org/
I liked "Mastery with SQL" a lot, but had to get used to his Australian English.
What surprises me the most is that in all the controversy, nobody tried to interpret the text as what it clearly was; a criticism of practices in mobile game development.

Instead, they got offended by the very thing the text was crticising, which is viewing the players of mobile games as a lower class of human that can and therefore must be milked for cash.

It feels like the whole controversy is just a misunderstanding of two groups having the same idea, but wording it differently.
I love it. I've advocated for years for something like this. There's a large class of users who don't want to learn to program, but whose needs are not sufficiently met by "select a variable to plot from a drop-down" type of visualisation systems, which is what I've sadly spent much of my career building.
Be vewy, vewy, quiet. I'm hunting wabbits!
Ask HN: How could a marketing manager assist the Engineering team in Hiring?
Hi everyone. Long time lurker in HN here.

I am at a profitable, but small SaaS company and we're looking to hire. As the Head of Marketing I'm wondering what could I do in order to help our CTO in hiring?

Do you have any positive experiences with marketing teams helping you?
Of course you index hot columns up front in that case, but I think where we disagree is that you want to generalise "optimise up front" into a rule, do or don't; I consider whether it's applicable in the circumstance. C programs tend to use a lot of system calls, and are also usually easily rapidly testable with large data. So rather than profile every individual std function I call, I'll just profile the very resource intensive paths with different scales of data and see if anything pops off. If R* had profiled their JSON parser with a 1gb file, they would've found this bug.

I don't disagree unilaterally with "optimise up front"; I disagree with unilateralism.
Spam would indicate some type of repetitious behavior, or unwanted advertisement. A single snarky comment generally wouldn't be considered spam. Every other platform would be fine with the comment.
Oh right, I meant Compose. Thanks!
Can you elaborate? What is the difference?
India's government is only nominally democratic and rapidly falling in freedom parameters looked at from any perspective. They are charging climate activists with sedition, holding protestors without charge for months, increase in extrajudicial killings and rapidly falling Human Development Indicators.
Fascinating. Stories like this really make me want to learn Chinese and/or move there for a while.

The story highlights how they were able to benefit from US culture and education, to the point where they now took the lead. I wonder how the West could benefit from Asian culture.
Is this meant to be a provocative question? :)
Help Infinity Books, the truly last independent used English bookshop in Japan
But technology still advances, so in the future Apple will present their thin and battery replaceable revolutionary new iPhone.
To give context, the implementations for the same problem are completely different, e.g. javascript versions uses worker thrreads on 4 cores for most of the examples. To compare actual performance first similar approaches should be used.
restrict is used so rarely in C code that the Rust team hit a lot of bugs when they tried to give LLVM all the aliasing info the Rust compiler has.
> but in practice they don’t interoperate well and they can’t easily be used everywhere.

...and yet, it's still much better than replicating the same code in different languages just to support different platforms.

The idea that a platform dictates the language to be used for creating applications on that platform has always been ridiculous, just because it was the status quo on the web for a bit over a decade doesn't mean it's a good idea that should be copied :/
> but the reality is that you just can't show any kind of personality, humor, or fun on the internet without putting yourself at risk.

Completely untrue. Lefty "SJW" Twitter is full of humour and personality. Shitposting takes precedence over serious discussion, massively, to the point where more centrist or right-wing twitter circles seem completely dry in comparison. If your humour and personality aren't accepted, that's on you.
I just think that your definition was missing the part about problem solving.

For instance in a field of medicine you need A LOT of knowledge, but in other fields such as STEM you need more ability of recognising patterns and drawing connections.

You can have plenty of things memorised, but it doesn't mean you can capitalise on that information.
mods: [2016]
Because they are jumping off of things that are high enough to kill you on impact, but not high enough to safely open a parachute?

Do you need an address to send me the Pulitzer?
"Goats don't do SSL"
> They are extremely complex, and were not designed for the use case e.g. relatively slow (designed to run offline on fast developer’s computers, or on even faster build servers).

in 2021 bundling clang along with your program is actually reasonable - if you are compiling small functions without two tons of headers it's measured in milliseconds.
I mean the whole thing is a total non-issue. Someone writes a silly screed in docs, someone notices it and points it out, maintainers of a project that wants some semblance of professionalism remove dumb screed.

As a maintainer I wouldn’t even remove it for content but just because it’s clearly a detriment to the document.
It's HN. Everything is "antitrust" if it involves a slightly large company, even when it isn't.

Realistically actions like this can cost some political support, and in aggregate that can make a difference. But Amazon broke no laws here.
The line between bug fixing and faffing around is context based, and there are efficient and inefficient ways to both fix bugs, and faff around. Profiling every stdlib function is probably both inefficient and faffing around unless your circumstances dictate its a worthwhile and effective (there aren't better alternatives to reach the goal) effort.
I believe they do use their own ad platform. But I would guess that the pricing of ads on Facebook and Google mean that even if they could charge a premium, it wouldn't be enough to sustain the business.

There is only so much of a premium you can charge before no is willing to pay for your product.
Are we talking about compiling or performance? You negate the Python interpreter startup time by changing your implementation of the Python binary, but that isn't relevant to the problem of producing compiler output in the Python language.
That’s one of my favorites as well. The fact that C++ will so happily auto-convert almost anything into an integer makes it even more likely to hit this accidentally.
Your story reminds me of watching a modern CAD program run out of memory and barf when trying to import a DXF file with a few thousand elements.
Ah yes, the reason for Google's gluttonous usage of space on iOS, where most of their apps are over 200MB in size and most of the remaining ones are at least 150MB.
This is such a great comment, thanks.
Actually it would be more equivalent to showing up at a Blue Lives Matter event in a pig costume. There are content creators dedicated to similar content and it does make them look pretty awesome in my opinion.