skysight-inc/HackerNews huggingface dataset:
> It's hard to see why the buffer wouldn't be per image. There's no reason to reuse that.

Premature optimization is a thing. Most software developers are prone to it in one way or another. They may just assume a performance gain, design accordingly and move on. They may be working under a deadline tight enough so they never even consider checking their assumptions.

Or maybe the developer has actually run the experiment and found that reusing the buffer does yield a few percent of extra performance.

> But what is the arbitrary data going to be?

An internal struct whose purpose is to control the behavior of some unrelated aspect in the unsandboxed process. The struct contains a couple of pointers and, if attacker-controlled, ends up giving them an arbitrary process memory read/write primitive.
This pure Python library claims quite fabulous performance: https://github.com/MagicStack/asyncpg

I believe it because that team have done lots of great stuff but I haven't used it, I just remembered thinking it was interesting the performance was so good. Not sure how related it is to running on the asyncio loop (or which loop they used for benchmarks).
It does matter. I can't offer an opinion on the modern state of PHP since I'm not familiar with its recent developments. However, it's true that certain programming languages and frameworks can facilitate writing maintainable, secure code, while others might naturally foster problematic, insecure code. It isn't to say that you can't write good code with them, but it can be unreasonably difficult.

Take, for instance, the PHP environment around the time the "a fractal of bad design" (https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/) article was published — which also coincides with the last time I worked professionally with PHP. During that period, PHP was plagued with inconsistencies, a tendency to hide errors, and insecure default settings, all of which encouraged writing bad, unmaintainable, and insecure code. Those aspects truly matter.
From the language authors themselves,

"Although the first edition of K&R described most of the rules that brought C's type structure to its present form, many programs written in the older, more relaxed style persisted, and so did compilers that tolerated it. To encourage people to pay more attention to the official language rules, to detect legal but suspicious constructions, and to help find interface mismatches undetectable with simple mechanisms for separate compilation, Steve Johnson adapted his pcc compiler to produce lint [Johnson 79b], which scanned a set of files and remarked on dubious constructions."

Random dude on Internet, I know better.
To declare that blog posts, essays and propaganda are functionally the same thing is wickedly cynical, don't you think?
The whole article rests on this being true, but I don’t see the evidence

> over the past two decades, the United States has fallen behind global competitors, including China, in mobile-communication infrastructure—specifically 5G and Internet of Things (IoT).
> how could they be?

More space, time, and energy efficient transportation options have existed for nearly 200 years. These options move more people further more quickly and safely than private cars. Furthermore, these options are more environmentally friendly, and improving them as technology advances can be done through retrofitting. My friend does retrofitting of classic cars with electric drive, it's prohibitively expensive for mass adoption.

These options being cable cars and trains. Modern electric busses are pretty good too.

It seems quite obvious to me the private car is obsolete. What advantage is there considering that mass adoption of the private vehicle leads to more death, more environmental harm, and less people getting to less places, slower, and more pissed off because they had to stay focused the entire drive?
Nope.

What's extremely "funny" in some sense of that word is that elsewhere on HN I am discussing climate change and environmental issues in earnest and it hasn't gotten one tenth the attention this has gotten, which is proof positive of my point: people have big feels about the topic and vent a lot about it but don't want to really engage constructively with it anywhere near as much.

https://news.ycombinator.com/item?id=37443229
Finally something living up to all that usual marketing...

But more seriously, if we are closing in on actually dangerous products. Maybe limiting the amount of active ingredients included in product might make sense from regulatory viewpoint. For example in some places amount of caffeine in energy drinks is limited.
> The very worst offender is Nissan. The Japanese car manufacturer admits in their privacy policy to collecting a wide range of information, including sexual activity, health diagnosis data, and genetic data — but doesn’t specify how.

My dad just bought a Nissan Qashqai (I hate it, but wathever). For legal reference, I'm on Spain, so EU GDPR framework. Every single time you start the car it shows a consent screen for data aquisition. By memory... "Driving data, location, statistics, blablabla for the Nissan Connect program."

- I haven't connected nor I have a user or anything at all in the Nissan Connect apps
- You can't disable the dialog, not even in the service menu
- I've been digging in forums and everyone says you have to bear with that for the whole life of the car

That's not ethical, and probably not even legal.
> You have to opt in to that tho

Exactly! and yet the threads app doesn't actually request that access. Hence my scepticism
How do news outlets actually find out when things like this happen? Are they tipped off by an disgruntled (ex) employee?
Not massively. I mean, an array is a data structure and looping through it is an algorithm, but that’s a bit basic even for a 101 DSA course.
Glad that at least some tech people here in Europe are aware of how things stand when it comes to technology and to our economic future (which depends on said tech).

Just the other day I was saying to a person close to me of how right now the world economy is splitting into two separate future growth camps, China and the US, with Europe left somewhere in a stagnating middle.
But here, where people are already working from home, saying these already-working people are violating the "return-to-work" order is just fundamentally disrespectful of the work people were already doing.

It makes sense why those workers would seek to form a union; it sounds like management is really belittling their work, even through the language they feed to the press.
I’ve been there. I told the project manager to buy me a burner phone+SIM or I wasn’t using it. The admin disabled the SMS requirement as a result & for a brief project I used it in locked down container not tied to any of my personal info. I also was bombarded with CAPTCHAs any time I tried to use it despite keeping the cookies in that container. It was a bad experience, & I pray I won’t have to interact with it again.
There was a point where a font page in Google Fonts used to have a section of recommended font pairings. That was insanely useful for me when I was getting started - miss this feature now :(
https://m.youtube.com/@HackersCurator

https://hackerscurator.com/
I went in there looking because of the amazing notion that car makers grant themselves the right to gather and divulge information related to (quote) your "sex life".
And indeed KIA wins the Internet of Creeps with the aforementied explicitly included in the data they somehow (how?) aim to gather and distribute to the winds. https://foundation.mozilla.org/en/privacynotincluded/kia/
Genetic information is also included, but come on, does a KIA steering wheel suck up your sweat and send it to an hidden PCR machine???
I think the people at KIA who wrote that "cover our arses" legalese going through every piece of data they could possibly at one time gather needs to factor in the cost of some customers, me included, never ever getting a KIA. Anyways as I understand they are extremely easy to steal, looks like a failing brand won't be able to get parts (or private parts) for long.
Wringing one's hands is a body language gesture where a person twists and rubs their hands together because they are nervous or upset about something. It can also be used to express sorrow that a situation is so bad but they are unable to change it. The gesture is usually paired with other body language cues, such as pacing, fidgeting, or averting eye contact.
Strangest line from that article

"In its attempt to cool itself down, your body’s temperature will rise"

Not what I would have expected
The article findings apply to any managed language. Don't call extern libs often as the call overhead is non-trivial and it cannot be inlined. There's nothing new about
I think you might not be familiar with the package used to benchmark Julia [1].

It does not fix processes to CPU's, or set kernel governor to performance, and there are fluctuations from usage of the computer. But it does run the function for several seconds and returns the distribution of the runs (the little graphics underneath the benchmarks). It calculates standard deviation and if some runs are too small (sub-nano seconds) it emits warnings saying the results might be caused by inlining and constant propagation.

The differences in runtimes you refer to are from use of different machines or different routines, which is completely expected. They also argue they need to run the Mojo code in the same machine as the Julia code to be able to give meaningful results and comparisons.

While to someone outsider it might be seen as done without care, I can asure you that this people are used to take extreme care on how they do benchmarks. Again, it might just be that you're not familiar with the tooling developed to do it.

I do think there is more benchmarks needed to be done, as the Mojo code hasn't be optimised yet and none in that thread was able to run both the Julia code and Mojo code in the same machine (outside of the OP). But I'm sure this will be done (I guess rather sooner than later). :)

[1] Documentation of the package used for benchmark https://juliaci.github.io/BenchmarkTools.jl/stable/
Here you can find all the information you have said in your comment, and more, about reproducibility of benchmarks in different environments.
White paper about the strategies used by the package https://arxiv.org/abs/1608.04295
Government services don't have to be horrible.

Taxes in Norway are a breeze, for example. You can design services so that they are easy to use for the taxpayer.

If you want a more local example, take a look at the Indiana DMV (Department of Motor Vehicles). The upgrades took it from "Ugh" to "maybe I can do it online or take a quick trip into a branch". It might have degraded in the last 10 years (i moved away) but I didn't mind dealing with them. Getting an apostille (special stamp for international stuff) on a document wasn't bad either - you just needed to be patient and wait on mail.

Taxes can be like this.

And I'll mention that the government - and you - have incentive for this. Taxes that are easy to pay and easy to fill out for the average person means that there is greater compliance. Greater compliance means more revenue, and we can spend the time and money on other things (like auditing complicated taxes instead of people using a 1040EZ)
I had no problem understanding it as meaning the end of work-from-home. Some people readily interpret the word "work" as a place, not an activity.
From php.net home page: « PHP 8.2 is a major update of the PHP language.It contains many new features, including readonly classes, null, false, and true as stand-alone types,… »
That says all for me. Doesn’t matter if it powers half the web. It’s an awful programming language.
> I certainly consider Julia to be a Lisp

Can you elaborate some more on this? My worldview assumed that a lisp used a list as a primary code/data structure and Julia doesn't seem to be doing that... Of course it does provide a way to manipulate code and data because of its macros. But what makes a lisp a lisp?
There is also https://fonts.bunny.net

But its still not clear wether that satisfys the GDPR or not, better be safe and host the fonts on your CDN or locally.
While I am neurotic, I take issue with that label. Nothing irrational about wearing masks on cramped public transit, for example.
From FTA: "The law requires social media companies to publicly detail moderation practices around hate speech, racism, extremism, disinformation, harassment and foreign political interference. How these concepts are defined, how rules around them are enforced and what users can do to better understand (and if necessary, challenge) the pertinent processes must be submitted twice a year starting in 2024."

I fail to see how this can be seen as a free-speech issue - it's not restricting speech nor, as per their other argument, is it "a form of compelled speech". Instead, it's simply making their policies, whatever they are, public.

If Xitter wants to promote free speech and not moderate anything, it can, it just needs to say that's what it's doing.

If Xitter wants to have free speech, but follow the law and remove anything illegal, it can, it just needs to document that.

If Xitter wants to moderate stuff, it totally can, it just needs to say what it's moderating, and how.

The reason they're objecting to this, almost certainly isn't to do with free speech, rather the opposite - they will want to retain the ability to moderate things they don't like out of existence whilst pretending that they absolutely don't moderate anything because then they can claim the exemptions that allow them not to be responsible for their moderation.
The problem is that you can keep getting it. And the risk of long covid does not go away.
> Almost any workplace is like that if (...)

Most people aren't that fortunate. There are good reasons why the word "job" is not synonymous with "fun".
The source/other articles [1][2][3] mention this particular chip has sent multiple other students to the hospital before. I mean, it’s _possible_ they all had some unrelated medical condition trigger/were secretly mainlining heroin/etc at the same time they ate the chip, but is it probable?
[1] https://archive.md/2CEum

[2] https://www.ketk.com/news/local-news/tyler-isd-one-chip-chal...

[3] https://amp.sacbee.com/news/nation-world/national/article257...
One thing I really dislike about PHP is the global scope and imports. Introduction of namespaces is an improvement but it does not change the fact that everything is in global scope. The best practice for imports is to not include them outside of execution context, but it also makes it very hard to reason about what is actually being used by the file + you try to think about not loading files unnecessarily so it's not uncommon to add the import statement in the same file multiple times before using something and there are no type hints that say whether the include was imported or not. Which is more or less a consquence of the environment not having a proper runtime and everything being re-initialized with every request (in a runtime context, all files that would ever by used would be included, because they would be used eventually). I genuinely wonder how it came to be that a language developed specifically to serve web requests is not a loop, you would think that a runtime would be especially useful for handling requests and Facebook learned it the hard way, heck CLI input -> output programs are probably the only type of program where it would not be a limitation.
> Right. It's so much less deadly

I think the point was more that it makes sense to worry about something of our own creation which we have, at least in theory, some control over and power to change, than about something that comes from outside with more force than we can handle.
PHP has its fair share of snobbery as well. Non-framework devs look down on Symfony, who in turn look down on Laravel devs, and everybody looks down on WordPress devs.
I have ADHD according to two psychiatrist.
If you can get through life without meds - don’t be on the meds. However if your whole life is difficult and chaotic then maybe try the meds.
In my personal opinion - ADHD isn’t an illness that needs to be cured or medicated away. It’s a different way of experiencing life, and the world, and I’m actually personally convinced that my life is more interesting and fun because I have ADHD - though I’m sure I’ve possibly had more struggles than a neurotypical person.
I was talking with some of my Swedish friends the other day and we were both marveling that it is not a requirement to put caffeine amounts on American beverages. I get that sometimes it can be hard to measure but that is not a problem for energy drinks, and for when it is a problem just slap an (estimated) label on there. Given how powerfully it affects people (an extra 40 mg at the wrong time for me can cause me to be awake for more hours at a time) it feels insane that I have to look this up
Seems like we are speaking from different experiences. As someone who witnessed multiple requests like “please avoid hyperbole when it comes to criticizing other languages” in Slack, Discourse or Twitter, I interpret “I know I shouldn’t say so” differently.

I would say 1 in 32 is also about the experience. I stopped visiting Discourse, chatting in Slack because I found it exhausting that every time Python is mentioned someone came up with a different way of saying how much they hate Python. I know I wasn’t the only one disturbed by this but in the end communities make their own choices.

Sorry about missing the mojo specific [].
It sounds like you're ultimately just saying that the 77% number doesn't feel right to you.

I agree that it's an interesting challenge to try to determine which language a large number of sites are using for the backend, or at least it would be a challenge in some small but maybe not insignificant percentage of cases. And no doubt whichever way they solved it involved compromises.

But that by itself doesn't give us enough information to draw conclusions about accuracy.
I don't think it's a matter of putting one versus the other.

If you can get away with smart pointers and such, life is beautiful, nothing wrong there!

The debate here is rather for the cases where you cannot afford such things.
> Who we are

> The Mozilla Foundation works to ensure the internet remains a public resource that is open and accessible to us all.

??
Here's a meme that might help: https://www.reddit.com/r/LispMemes/comments/irkm5m/nobody_li...
I would argue Symfony did a lot as well. Their upgrade and release schedule is very good.
I think Airbnb has gone way beyond its original intended mission. I live in a fairly luxurious large condo building. On my floor, there are about 12 apartments. At least 9 of them are Airbnbs. I feel like I'm living in a hotel with constant tourists and locals booking to throw parties.

The crazy thing is, I suspect that a lot of landlords don't actually know that people who rent the apartments are using it as Airbnbs.
It’s time for me to buy a new iPad so I can enjoy Procreate once again!!
Janet is not an implementation of common lisp, so you cannot run lisp code with it. ECL is an implementation of common lisp, so it can run common lisp code.

If you don't care about running common lisp code, you can get up and running in janet more quickly.

In terms of ease of embedding in C code, a comparison of different languages IME would be Lua/Fennel > Janet > Chibi Scheme > Guile Scheme > ECL.
I’m not sure I would consider the scientific computing that Julia targets a “tiny” niche. It’s worth remembering that Python is 30 years older than Julia, and Julia has only been in a really usable state for 4 or 5 years. You can’t expect it to displace Numpy/Scipy/etc overnight. Especially if you include machine learning, where there’s just huge momentum with large corporations having massively invested in Python frameworks for at least 10 years. Subjectively, I’m seeing quite a lot of growth in Julia. It’s certainly a much stronger language than the Python/C++ combination that currently has the biggest market share in that area.

Also, there’s nothing wrong with niches. Julia is undoubtedly less of a general-purpose language like Python, but it very much shines in its domain.
I don't know what to tell you. I don't know many languages that have a shorter on-ramp than Zig (or Odin). The obvious relevant language here would be Go, but Go wouldn't be as desirable in terms of producing as good results in a confident way; Zig (and Odin) is a lot easier to spot performance deficiencies in.

If your argument is somehow that Rust, C++, Nim, D or some other alternative would do better in terms of on-ramping I can only shake my head and move on with my day, as they are all clearly much more complicated languages and they all happen to produce code that is much harder to understand from a performance perspective. If the argument is something even higher level and even more opaque in terms of performance-related behavior I think you've missed an important part of why Bun chose Zig.

In most cases that don't involve "I already know this language" the equation can never be much better than "You have to learn Zig/Odin". For every person that already knows the language in question there's a bunch that don't, and the only solution to that is quick on-ramping because it'll benefit everyone over time. It doesn't matter whether you know the language already if the language is mostly trivial to learn, read and use.

P.S.: If the argument is that C would be a better choice I don't disagree as wildly as I do with any of the other situations. C with custom allocators and a ton of static analysis added to it will be mostly fine, but both Odin and Zig provide great things on top of C in terms of basic language features without taking on too much complexity.
It's not really relevant, as I was talking about why the US media misses specific types of stuff.
I like PHP, because it has a familiar C-like syntax and great tooling, like composer, and frameworks, like Symfony. The language has warts, but it's improving.

I think its strength is its architecture, namely shared-nothing state and concurrency at the web-request level. [1]

[1] https://slack.engineering/taking-php-seriously/
I like the idea and think you should explore it. You might want to see how it differs from Meetup groups or local guides (showaround.com). Though the community / site doesn't have to be revolutionary or innovative of course to add value!

Maybe a different perspective, focus on the communal, is more preferred?

The discussion on what is, or even the use of, 'authentic' and 'local' is interesting. I find it's use in travel writing often annoying and even obnoxius, yet when traveling or living abroad as an expat, you often find yourself thinking along the same terms.

random:

- For me a 'meaningful interaction' would be; you connect with people over a certain topic (or multiple) in a non-travel / tourism related setting. Any guide activities or suggestions are an extra.

-is it a 1 on 1, 1 on group, etc?

- A local person does not tour the city (by themselves) per se, they just live their life.

- Being with a local for a while can be very insightful, yet it does not mean they can tell you much about x of their
country / culture / city (and vice versa).

- you probably dont want it to turn into an index of 'the 12 unknown highlights you need to see' articles.

-look at it from the other perspective; the local. What would they like? OR in other words, how do you want to interact with strangers coming to your town?
Please actually read the Mojo code. It is full of complex hand-optimized simd instructions.

By comparison, the simd-optimized Julia code (especially the first version) is significantly more elegant and transparent.

Impressively, the ComplexSIMD Julia class was defined in a few simple lines, from scratch. I wonder what the, apparently built-in, complex simd functionality in Mojo looks like under the hood.
OK, so the trick was a membrane that doesn't let the electrolyte leave but still allows it to be oxygenated.