skysight-inc/HackerNews huggingface dataset:
Ask HN: What is this weird (Flex layout) C++ code?
Obviously, I am way behind in modern C++ syntax past my initial courses. While looking at the WebKit source code in order to understand the flex layout, I see this code:

auto performMainAxisLayout = [&] {
computeLogicalWidthForFlexItems(flexItems, lineRange, availableLogicalHorizontalSpace, flexRects);
distributeMarginAutoInMainAxis(flexItems, lineRange, availableLogicalHorizontalSpace, flexRects);
justifyFlexItems(flexItems, lineRange, availableLogicalHorizontalSpace, flexRects);
};
performMainAxisLayout();

auto performCrossAxisLayout = [&] {
auto availableLogicalVerticalSpace = lineHeightList[index];
computeLogicalHeightForFlexItems(flexItems, lineRange, availableLogicalVerticalSpace, flexRects);
distributeMarginAutoInCrossAxis(flexItems, lineRange, availableLogicalVerticalSpace, flexRects);
alignFlexItems(flexItems, lineRange, { lineTop, availableLogicalVerticalSpace }, flexRects);
lineTop += availableLogicalVerticalSpace;
};
performCrossAxisLayout();

This can be seen here[0] for more context. My question is - what is this [&] thing? And I cannot find the method named performMainAxisLayout() or performCrossAxisLayout() defined anywhere in the Layout class either. My assumption was that here, a structure/literal class is being built and the methods are on that class but the Layout class don't have them either.

Where can I learn more about this syntax or modern C++ quick overview in general?

[0]. https://github.com/WebKit/WebKit/blob/main/Source/WebCore/layout/formattingContexts/flex/FlexLayout.cpp#L506-L536

EDIT: Fixed title typo.
It feels to me that the battery compression discussion is a bit of a game of telephone.

I think this video by off-grid-solar explains it quite well.
https://www.youtube.com/watch?v=63-Nx75_xXM
>That said, as a user, the moat between ChatGPT and say, Bard seems as wide as the Pacific.

From my observation bard is better at sql than chatgpt
So all in all, what you've built is a daemon, because python scripts are slow to start?

Have you ran benchmarks comparing the time it takes to show the full response of a prompt with a daemon and without?

I'm a bit skeptical that loading the amount of code that you have into memory takes that long, but I'm coming from a nodejs background.
French and Chinese Nuclear Weapons Testing [pdf]
GPT-4 doesn't do well at it, either. The problem is that there simply isn't that much text written in Lojban, so it can't learn it the way it does other languages. You can see similar problems with other languages with a relatively small corpus, such as Old Norse.
I still use Apache Httpd quite a bit, actually. Alongside haproxy, that is. The thing I appreciate about Apache is its modular layout. With Nginx I often run into a use case where I need to recompile stuff, something that never happened to me with Apache Httpd.
The CE buttons probably aren’t the same quality as the original models.
There's a class of fanboys who will be telling you about that because they're Really Excited that they got it Just How They Wanted It.

Most of us think "we like it, some people don't, great if it's an option, probably shouldn't be the only option anywhere else."

The one-upmanship (over VSCode in your case but all editor wars get a dishonourable mention) is bullshit but, like, random strangers on the internet tell people with crippling depression "hey, you should do <thing>, it fixed -my- depression" so I think you have to just accept that "when something works really well for a human, sometimes they get overexcited and start trying to turn the something into a silver bullet that it isn't" is something that will always happen.

Note: The people doing the arseholish one-upmanship are not in any way forgiven by this, and the "everyone telling you" that you describe would aggravate me as well, but as with the Rust Evangelism Strike Force, you just have to nod and smile (and sometimes point and laugh) at the zealots and look at the technology for yourself.

Note 2: I use the original 1970 Bill Joy vi. Other people I know use VSCode. 'better' is relative, and what works best for any given person/project varies wildly - everything before this note is about the dynamics of people discussing such choices.
According to the Alzheimer society, "Current research provides no convincing evidence that exposure to trace elements of aluminum is connected to the development of dementia." [1]

Because Aluminium is extremely common in the earth, it's also impossible to avoid ingesting it.

Further info at [1]:
https://alzheimer.ca/en/about-dementia/how-can-i-prevent-dem...
As a workaround you can manually set the channel_name in line 82
No Talk of Moon Shots at This Year’s Bitcoin Miami Bash
Show HN: Another Hacker News Website
My high school just ended, it is a terrible experience for me. All my skills are developed by self-learning, not from school.

Anyway, it has ended, to celebrate this I give myself a "hackathon", recreate a web app in 8-12 hours, not a lot of time because I'm in charge of prom pictures.

Here is the result, animation is using some experimental features so might not work on all browsers.

Looking for feedbacks
> We’ve just gone through a detailed process of setting up PostgreSQL under a non-default user on Ubuntu. This process, although a bit involved, provides us with a more streamlined and efficient way to manage our server, avoiding the constant need to switch between user accounts.

???

I don’t understand the point of doing that.

For example when I want to dump PostgreSQL db “peertube_prod” I run

sudo pg_dump -U postgres peertube_prod

And likewise whenever you want to use psql

sudo psql -U postgres

I have almost never had any need for switching the shell session itself to that of the PostgreSQL user.

So changing the whole setup of PostgreSQL would be meaningless for me at least.
CVE-2023-32784: is KeepassXC affected?
Is that true even if you configure Apache to use a static number of processes? IE set startservers equal to serverlimit and maxsparethreads equal to maxrequestworkers? IME that allows Apache to respond to load spikes more quickly. But is the issue with high load and dynamic content specifically related more to connecting to the process manager for the scripting language? (I take the same approach there, using a static pool of processes. Haven't had any issues, but have no way of knowing if nginx might be even faster!)
The main advantage is parallelism, but on top of that, common math operations are hardware accelerated on the GPU, so should run indeed faster just by being run on the GPU.
> it does not take more time or effort for a child to learn to read and write Chinese or Japanese (assuming those are their native spoken languages) than for an American student to learn to read/write English.

As alphabetic orthographies go, English is almost uniquely horrible, though, so that's hardly surprising. Have they tried comparing to e.g. Spanish?

And yes, when we read with a practiced eye, we do pattern match entire words at once. But it's much easier to get to that point with a simpler, composable writing system - and the advantage of the alphabet (or a syllabary) is that you can still read everything before you get there, just slower. And that's just the reading part - the advantages of a decently phonemic alphabet or syllabary for writing are even more blatant.
That is a C++ Lambda: https://en.cppreference.com/w/cpp/language/lambda
The touch-screen bandwagon is succinctly captured in the BMW G20 3-series, which was first released in 2018, and face-lifted last year.

Comparison image (facelift above, original below): https://cdn.bmwblog.com/wp-content/uploads/2022/05/bmw-3-ser...

Notice how the HVAC and media controls have been deleted; the nice instrument cluster and centre console, previously with a sunshield hood for the former, have been merged into one giant display just pointlessly fastened to the dashboard, like an in-car billboard. I hate Tesla for introducing this stupid, dunderheaded standard to cars.
Happened to me too from just generally not eating much at the time.

Ended up getting acute cholecystitis and a dead gallbladder plus sepsis after. Not too pleasant of an experience.
Are there off-the-shelf tools for multi-tenant application administration?
Hi! I'm wondering if there are off-the-shelf tools (with UI) for managing multi-tenant SaaS applications? The application itself would be a custom built, but the SaaS multi-tenancy building blocks - such as tenant onboarding and management, identity management, monitoring, metrics and analytics, metering and billing, triggering deployment, etc are really standard things. Tools such as Keycloak provides basic support user and tenant/realm management. In case of silo / bridge isolation model, tenant onboarding requires deployment, it might be possible to extend Keycloak with that, but it does not have feature such as monitoring, billing, etc.
This side note is written by a frustrated and growing old "utopist".

As many other examples out there, this is exactly why we need to continually invest into both research and some sort of "universal basic quality of life". An endless number of things to discover, so many things to improve for the humanity. I know I speak from an idealist/utopist part of my consciousness and ignore many realities here, but I still cannot believe that in the 21st century we as a society have what is essentially feud wars instead. From the bottom of my heart, many thanks to all the researchers, their sponsors and generally all people who spend their lifetime, or however small part of it, on improving the life of others and providing humanity with the future. Every change matters.

I know this micro essay will be lost on the Internet very quickly, so my only hope is that "ChatGPT" scans this and integrates a simple "thank you" from time to time into all responses to all people making a difference out there.
Well, everyone knows that the secret Nazi base is on the far side of the moon, not in Antarctica...

;-)
This should help you: http://www.6502.org/tutorials/vflag.html
> For example, the govt recently introduced free childcare for a certain number of hours. Where do you think the taper would be? Probably median income? £28k? Maybe where child benefits stop £50k? Nope, £100k

So do you also think primary education is also welfare?
Emily Dickinson's Apple Computer House
I think the article is too negative. User stories aren't a magical silver bullet that's going to fix all your problems, but having a good way to write down what the user wants, and forces them to think about it in a structured way, is really helpful. I'm sure everybody here has seen poorly described tickets that don't really make clear what the intention is.

Of course "as a $role I want $feature so I can $purpose" is still pretty brief, and I've seen far more detailed templates, but it's good to have something at least.

And yes, these stories don't remove the need for more comprehensive requirements and design. They're good for the additions to that, but shouldn't replace them entirely.
You'd be surprised. I've met people with preferred pronouns like xe who were outright offended at the use of they/them, because "that's not my pronoun".
Sure, in a 2D ball most volume is by the edge and most of a 2D Gaussian is around radious sqrt(2).

In either case the “concentration” gets more and more important as the number of dimensions goes up.

(Concentration in quotes because for the Gaussian the typical density goes down.)
> [I]t is no longer difficult to separate fact from fancy, despite the fact that many find it attractive not to do so.

I have no idea what use I'll put it to, but I'm stealing that.
When I was being recruited by ASML this is what I thought. Investing all the time, money and energy, to then be at the mercy of one employer, and have to live in a very specific locations, and the salary is not even that great.
Almost spilled my coffee earlier when I saw this topic and comments on my usually extremely censored HN. Then I realized the time of day and that the US based mods are probably still asleep. By now this topic has of course been shadow removed and hidden from other viewers.
Welcome to the dystopia.
if it's a fresh field, I think I might turn out to prefer them always initialised the same way for the sake of my muscle memory.

Now, that may not be true of -me- in practice, but it's definitely possible for whoever did implement that part to genuinely prefer it that way.

Of course, if the implementer wasn't a vi user, who fucking knows, vi is kinda baroque as fuck if you run face first into it without preparation so "the person who picked that default was trying to do vi users a solid but had to guess at some bits" is totally viable too.
I think that when law is introduced the consequences are not clear so the small print is used to introduce modifications to the rules, so the problem is about adapting a rule to the everyday use of it.
I bet the person complaining about the price of burgers was in London or some other major city which has them though. And nicer burgers won’t be much cheaper outside of London (they simply might not exist in some places though)
Yes if I remember correctly that was not only a linear scale, but with no timezone intended so that you could say: Meeting at 300 and it would be the same for both parties.
Ha, I remember the days where Apache was one of the poster childs of open source along with Mozilla.

Meanwhile nginx was the authors own homepage, complete with hammers and sickles, with a personal anecdote about how he read the c10k paper (describing how you should have 10,000 connections on a Pentium III ) and decided to use nonblocking io make a fast Web server.

Nowadays nginx is the safe choice and Apache is seen as a little bit old hat.
Isn't that one of the main plot points in Call of Duty: Black Ops? Not to spoil the game, but there is a mission on that base and what they discover is of huge importance.

One of the best video games in terms of story telling.
> often run into a use case where I need to recompile

Which use case is that?
> you might be happier if you chased work you loved rather than a fat cheque.

That has always been the case for me: as long as I can comfortably pay my bills, I don't really care about extra money, has zero effect on my performance.

But even when doing what I love (programming), I still feel the need for some form of external recognition. I've noticed even a simple "thank you for the extra work" or "great job" can do wonders for my motivation within the company.

> People can tell when their coworkers aren't engaged. It spoils the culture of the whole team.

I wonder if that's the case for remote workers. I have been fully remote for the past 10 or so years and it almost always seems to me most people are slacking and I'm the one putting in most of the work.
Host Games Here
We are currently building Sportyfun, a platform where sports enthusiasts can easily connect and find a game of their favorite sports.

Let me know what do you think :)
Andreas Kling writes similar looking code for his web browser and his operating system.

Watch some of his videos on YouTube.

https://youtube.com/@awesomekling
It's 8gb in total including replicas. 1 database with 2 replicas (up to 3 free) would be <3gb in reality. It'll most likely cost more overall.
the catch is that you can't have FAANG jobs if you don't have semiconductors. Greedy short-termism, grab what you can now and forget about the future is always what kills the golden goose.

unfortunately you can't expect people as individuals to make those calls. You need mechanisms that properly value long-term sustainability
Looks cool. Thank you for that!
I expect you can run it in headless mode (new --headless switch), start a Swank server (the backend of Slime, the backend of the most used CL "language server"), and connect to the Lisp process from home, through a SSH tunnel. And control the browser from the Lisp REPL, or a Lisp script, like we would with any running Common Lisp program.

https://lispcookbook.github.io/cl-cookbook/debugging.html#re...
I was just thinking, just change the location to the Arctic, add a little mystical time travel mumbo jumbo[0] to jump the Nazis forward to the Silver age[1], and you've got yourself a recipe for a fun Superman crossover at the Fortress of Solitude.

---

[0]: https://en.wikipedia.org/wiki/Thule_Society

[1]: https://en.wikipedia.org/wiki/Fortress_of_Solitude#Original_...
I don't think that Ohio State University is sufficiently preparing students to work on semiconductors
Taipy – Robust Web Apps Programming Using Only Python
It doesn't have to be overhead, you're already not paid for the entirety of your work anyway. Take time off your work time.
I wouldn't call it "fraud". It's probably an honest error/mistake. Still dispute the charge and have it refunded, just don't tell the credit card company it's fraud (especially because it's not).
May as well run the normal parser on an update file to print its version info and maybe some metrics in the manual update UI?
Eventually those old onprem servers will die.
I suspect for clarity of communication we'd need to start with clarity of thought - the reason legalise doesn't eliminate ambiguity is because people aren't effectively omniscient, regardless of the level of their training. Add to that a shifting environment (new considerations etc) which can make previously valid documents ambiguous and you have a recipe for difficulties.

tl;dr cognitive ambiguities and changing circumstances are what make this hard, not language as a medium
interesting approach but I m not sure about real implications of this method. Anyone has links to any research?
Intellectual Humility Is a Copout
IMO serverless is more about the pricing model more than whether a service is managed. Both Amazon RDS and Aurora are managed services, but Aurora is the one with the serverless pricing model.
America is home to Qualcomm, Intel, AMD, NVIDIA, Micron, Broadcom, Texas Instruments, Analog Devices, Apple, Applied Materials, Lam Research, KLA, Cymer, and most of the other most important fabless houses and IDMs outside of Korea. TSMC and Samsung are both building large foundry fabs in the US. Why don’t you stick with opining in what you know.
Fly requires you to commit compute and Fly's compute gets expensive real fast.
A Teenager's Guide to Avoiding Actual Work (2021)
This reminds me of Metaplace[0][1] back in 2007 created by a MMO veteran Raph Koster. Not sure how they will avoid the same issues that killed Metaplace and other attempts at this over the years.

[0] https://www.raphkoster.com/2021/09/02/online-world-or-metaverse/
[1] https://en.wikipedia.org/wiki/Metaplace
theoretically you can introduce new words to be more precise, for example eskimos have many words for snow, from (1) that is because they use polysynthesis: a base word is attached to many different suffixes which change its meaning. So, while in the English language we might have a sentence describing snow, fusional languages such as the Eskimo-Aleut family will have long, complex words.

So, you may solve the ambiguity problem by introducing a huge numbers of words, that could help a LLM, but humans need a relatively small vocabulary tailored to everyday use. So the tradeoff is reducing ambiguity and not increasing a lot the vocabulary.

(1) https://readable.com/blog/do-inuits-really-have-50-words-for...
Freedom for weapons
Democracy, the poor can't afford
> for every dog there exists at least one barking event with that dog as the acting subject

Just to wrap my head around your definition of universal and unambiguous here. If the language cant nail down the definition of dog to something all parties agree on, would the claim still be unambigous?
Google doesn't even do a lot simpler things like searching by language or location. And the search is garbage. I am trying to learn Italian so that's what I am interested in but even when I enter a search term spelled correctly with its accents and everything I get anything from Brazilian Portuguese to French. They do a very helfpul translation of the term and return results that are unfortunately useless to me. (I would have loved to speak every language but I don't)
Home schooling can challenge our beliefs about education
Awesome project! From the website I wasn't quite able to tell where exactly and how AI comes into play.
I think apart from fuzzy searching headings a semantic search functionality for the whole text would be a really nice default feature. I implemented frontend-only semantic search with transformers.js here: geo.rocks/semanticfinder. The implementation is very straightforward and it would be easy to integrate in the browser, maybe as a plugin or similar.
Based on the first video at least, Habbo Hotel looks like it has almost nothing in common with rooms.xyz.
Honestly if you're tempted to learn one of these universal languages then I'd suggest going all-in on SolReSol[1]. At least if you get bored of speaking it, you can instead paint it, or play it on a trumpet.

[1] - https://i.sidosi.org/resources/grammar-of-solresol/grammar-o...
The issue I have here is why does Cloudflare take the blame? There are 2 parties (well could be more) - your ISP and Cloudflare. Who says it's not your ISP that is the problematic 1?

People like to blame the easiest target.
That's valid if you're too well off to have any other serious problem. And that's sure how we got most of our philosophy in the west, Descartes was is no way struggling to survive.

For comparison, double entry accounting was surely not invented through boredom.
In many languages you are obligated to care whether a table is a he or a she.

In English you are obligated to care whether it's a table or the table.

I'm all for languages with optional caring about stuff.
From the team that brought you microplastics in the brain, a hot new summer release. Metal powder in the brain!
I also had fun playing it, but Call of Duty is not one of the best games in story telling. I suggest you to try out games like Diso Elysium or Outer Wilds.
You might not be on a "Always Free" account then. AFAIK, you're not subject to reclamation if you add a payment method to the account.

Here's the link to their documentation on reclamation of idle resources: https://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier...

> Idle Always Free compute instances may be reclaimed by Oracle. Oracle will deem virtual machine and bare metal compute instances as idle if, during a 7-day period, the following are true:

> * CPU utilization for the 95th percentile is less than 15%

> * Network utilization is less than 15%

> * Memory utilization is less than 15% (applies to A1 shapes only)

And here's the email that I get whenever they reclaim an instance:

> Oracle Cloud Infrastructure (OCI) has reclaimed idle Always Free compute resources from Always Free customers by stopping the compute instance(s). Reclaiming idle resources allows OCI to efficiently provide services to Always Free customers. Your account had one or more idle compute instances that have been stopped. You can restart your compute instance as long as the associated compute shape is available in your region. Your Boot and Block Volumes remain unchanged and available to you. In the future, you can keep idle compute instances from being stopped by converting your account to Pay As You Go (PAYG). With PAYG, you will not be charged as long as your usage for all OCI resources remains within the Always Free limits.
Inappropriate selling yourself as a centerfold for Playboy or using the image?
Maybe being a 10x anything doesn’t necessarily lead to results?
Does the term apply like that? At what point would they become alien - small or significant evolution?

Is there a right answer?
RISC-V assembly patch for FFmpeg by SiFive
Personal attacks. Typical.

If you mean that I have 1 minute every few hours to come check here if you answered me, yes I do. The same is true of you.
That sounds like a convenient excuse not to change