skysight-inc/HackerNews huggingface dataset:
> What kind of speedup is available for big Rails applications? If 90% of the time in an application is spent in database calls, then there’s little opportunity for improvement via JIT technologies.

This is written as speculation of course, but it matches some long-time "conventional wisdom", that most Rails apps spend most of their time on I/O waiting for something external.

That may have been true once, but i don't believe it's true anymore.

My Rails apps now, when things like "n+1 database query problems" are properly eliminated, all spend more of their time on CPU than I/O, 60-80%. (I think most of that CPU time is ActionView rendering. Unsure about CPU parts of ActiveRecord, that aren't waiting on DB, but converting db results to in-memory AR objects etc).

When this comes up and I ask around on social media who else has actually looked at their app and can confirm or deny, almost all who respond agree. I would be curious to see here too.

Definitely some more systematic rather than anecdotal investigation is called for. But I think it's time to stop repeating that it's likely that a Rails app is I/O-bound rather than CPU-bound, my experience leads me to think the reverse is currently likely.

[*edit* after I wrote this comment, I noticed multiple other comments in this thread saying basically the same thing. OK, so. Can we put this rumor to rest?]
Agreed! I just find it unusual that this isn’t “front and center” (as I said)
Why fight against the current? We aren’t going to convince billions of people, most of whom are struggling for survival, to make dramatic sacrifices. Moreover, in the overwhelming majority of cases consumers can’t tell which item is more environmentally friendly (the state of the art is “does the packaging have a faux burlap aesthetic?” which lends itself to pervasive greenwashing).

We simply cannot solve the problem by asking consumers to care more about the planet than feeding their kids, particularly when “caring about the planet” in this way is basically guesswork.

Climate change and other environmental problems are systemic, and thus we need systemic solutions—in the case of climate change, the ideal and gold standard is carbon pricing (with border adjustments).
Watman!

(Reference https://www.destroyallsoftware.com/talks/wat)
Judge have leeway sometimes. Some laws are written as "no exception" (i.e. mandatory sentencing) others judging can use their own discretion on not only punishment but application of the law.

Being charged as a minor is usually because one assumes minor lack the judgement of adults and it makes more sense to focus on rehabilitation for young offenders.

But if a young offender clearly acted with premeditated malice then they can be treated as an adult.
The Dymaxion car: Buckminster Fuller’s failed automobile
Getting some rice into that bowl?
Naval has a great definition which I agree with. Happiness Is Peace in Motion
Peace is happiness at rest https://nav.al/peace-motion
Another less liked person, haha is that Andrew Tate knob, and while for a knob, he does have some good ideas, one of them is something along the lines of, I dont need to be happy, I dont even think about it, as long as there are no problems, I am happy, if there are problems I am unhappy, unless I am unhappy, then I would say that I am happy.
Chinese EV's and the Model 3 Standard Range and most of the upcoming affordable EV's are all shipping with LFP batteries rather than the standard NMC batteries.

LFP batteries are usually rated for 750,000 kilometres of range.
Google, youtube, nu.nl, HN, Twitter, bank, in house tooling, pianojacq.com (no, really).
On one hand we have two founders that raised $160 million and spent nearly a decade trying to build a business.

On the other hand we have two founders who within a calendar week decided to raise money, did raise money, and made a successful bid for a company.

One of these things is not like the other. One of these things is actually hard. Sing it with me!
I would summarize the article as:

- Ruby would benefit from object shapes and JIT compiling

- Good news, both of those are being added / improved

- The jury is out about C extensions

I hope ruby has a renaissance in the next few years. People can and will howl about its performance, but it’s far faster than it was even a few years ago, let alone 10. The changes mentioned in the article, the async gem, and ractors are all exciting things that could push it even faster and unlock previously unavailable design patterns.

Byte for byte, it’s one of the nicest languages (in my opinion of course), and for many use-cases Rails is like having developer superpowers.

I hope renewed excitement leads to more investment from folks, because it’s honestly just such a nice, ergonomic ecosystem to use.
Let's hope the Supreme Court will have come to its senses by then.

(Although I agree that the premise in a broader sense of trusting a Chinese company over an American one is flawed.)
I think the thought is that the encryption would be in the transport layer, and would have to be unwrapped to cross between platforms. Whereas I think this could be effectively implemented in an agreed encryption of the message itself. However, this risks oversimplifying because the next concern would be the metadata.

Who is the sender / recipient? How much data is provided about these actors, phone number, email etc? Is this encrypted?
Politics is downstream from culture though. Mr Money Mustache and those like him are doing a huge amount for politics as well, just by making nonconsumerism sexy on an individual scale.

There's always this chicken-and-egg problem where legislation is talked about as though it could make us want different things, when in fact, the electorate wanting what it wants now, such legislation would be a losing horse for any politician. Making the moral choice seem attractive to one's neighbours is what I'd call true aikido.
Clinical trials for cancer treatment rarely use placebos. Instead, the control group is the current standard of care:

https://www.cancer.net/research-and-advocacy/clinical-trials...
You might find it handy to add lua-enumerable.lua to your standard set of Lua-project modules:

https://github.com/mikelovesrobots/lua-enumerable/blob/maste...

See: table.dup()
> teaching folks how to enjoy coding more.

That sounds oddly specific. So you take in people who are already coding and enjoying it, but want to be taught how to enjoy it more?
At the point that you have large or lots of queries on the DB or something similar, you really aren't talking about Ruby performance any more, and you'd be dealing with more or less the same problem in any language.

But in my experience, here's some data from one of our most hit routes:

Basically this route will do 5 fast DB queries (load a single record by PK), a couple of Redis lookups (one of which is returning fairly large keys).

Our mean performance is 44 ms, 95th percentile is 80 ms. Almost all of that is taken up by DB / redis, actual ruby execution is not quite a rounding error, but would not be an optimization target.

The controller itself is fairly typical - 3 or 4 before actions, a decent amount of object instantiation, some branching / logic. It doesn't involve service classes and just models.

Ruby / Rails done in a fairly "vanilla" way can be pretty performant. We've had some performance issues with our app, but Ruby itself has never been the problem.
On the topic of growing vs buying plants, well of course buying plants is going to be cheaper. There are economies of scale at the very least. You're probably not going to be growing your own plants because it's cheaper to do so.

On the topic of hydroponics; limited space is one factor. Hydroponics can be bent to fit your space in a way that soil based often can't. Once you start trying to make like vertical planters or something you're probably spending as much money on frames or shelves as you would on a hydroponics setup and you've still got to haul water to your shelf of planters and water them all individually.

For hydroponics I just have a bucket on the floor that I can fill with water, and it will automatically water the plants that are well above my head. There's just a lot less physical labor involved in filling up a bucked once a month than in trying to water a bunch of individual plants.

You've got to remember that for the most part these are happening indoors, in people's living spaces. If those same people had a large yard they might be using raised beds and irrigation. It also frankly take a lot less thinking, I don't have to worry about pest control or if the sun dried out the soil earlier than I expected so I need to water more, or pretty much anything related to climate.

Personally I have one of those 3D printed hydroponics towers, an automatically irrigated soil planter, and regular house plants that I have to water manually. Of the three the ones I have to water manually tend to have the most issues, issues with root rot or under-watering, issues with nutrient unavailability (I've gotten better at recognizing when they need some artificial fertilizer but it is a skill), etc.

The best is probably the automatically irrigated soil planter box.
Probably never because the industry almost completely transitioned away from belts to chains over the '00s because consumers hated having to do a multi thousand dollar service as preventative maintenance every 100k or so.
k8s is deceptively simple (or is that deceptively complex?). Anyway, what I mean is that spinning up a basic cluster isn't hard. Maintaining a cluster on premises while following every existing infosec and ops guideline is. It's not that you can't do this, it's just a very non-trivial amount of work.
I vibe with this
No. Because the farther away hydrogen's quarks force is shielded because they are closer to their quarks than to the close up hydrogen's quarks.
A Deep Dive into Memory Leaks in Ruby
Cocogitto: The Conventional Commits Toolbox
> yet increases the latter

How?
This statement is only for the hypothetical quarks alone in the universe. In practice, they shield each other.
If the current state of vehicle repair is any indication the only people who will replace "a few cells" will have a shop located in a rough part of town, not speak english and will require you to pay cash and the HN crowd will deride them and their business model for the most part.
"People are idiots" as Scott Adams wrote. We all have our strengths and weaknesses, and people considered smart are usually surprisingly ignorant about things outside the areas where their strengths are.

Happiness is such a vague concept that it's hard to measure. It's hard to imagine why something like being good at <insert arbitrary field of expertise here> would translate directly into living a happy life when most people's lives revolves around other things.
Maybe if we ever figure out true, self replicating nanomachines.
Really random but one time i was at a training with this older women, & she refused to use the figure 8 knot in favor of the bowline knot :) I thought it was very funny
It's interesting to me that all four examples put the blame with the other party.

I hope it's just worded poorly or I am reading too much into it.

Edit: I'm not saying that invalidates the article's content (in fact I recognize the situations from personal experience), but it doesn't really put a positive spin on it.
Yeah, I might be thinking of it as simpler than it really is just out of habit. Though it has to be said than most Kubernetes resources are pretty pedestrian, with habit you know where to look for the meaningful bits (much like any other form of source code).
I presume polyester or blends could be disposed of via pyrolysis and converted back into oil. Or simply burned for energy.

Interestingly, H&M has collected 140,000 tonnes of textiles through an in-store recycling program so far, and they upcycle but also work with a company called Renewcell to generate new fibers from cotton waste. I'm not sure what they do with the rest of the bulk textile but I presume it's burned or maybe just goes to landfill.
If you are even smarter you can reprogram yourself.
Great insights.

I often feel like saying: "normal people don't want to think about the details of a question." They grab for the quickest way to stop thinking and label it right or wrong depending on how much they like it.

This is of course an oversimplification.
I took those extended leaves. What I learned is that I'm a dabbler and don't have energy/willpower to sustain interest in one thing for longer periods of time. At least not enough to reasonbly hope to convert it into an income at some point in the future.
The good reason was that queries were not optimal and when we came up with optimal ones which were not following the access pattern or syntax that activerecord introduces, then the excuse was “…but activerecord…”.

If i was a dev i would appreciate some data guy’s opinion in queries, indices, etc while my db crashes every now and then, but it’s either a power play/politics thing to ignore the new guy or the ‘i know activerecord/hibernate/kafka/whatever’ thing and i won’t bother sith anything else that will solve the problem.
https://en.m.wikipedia.org/wiki/Color_confinement

The charge of the strong force is called color, and outside particles like protons the total color charge seen from the outside is zero.
It stays zero because of color confinement - at some point, it's less energetic to create color-anticolor pair instead of allowing color imbalance.
> and it is easily explained given how far people are expected to live away from work without paying a small fortune in rent.

My country (Poland) has been de-urbanizing since the turn of the century for this exact reason.

People can't afford housing in city centres, so they buy properties in the suburbs and opt to drive everywhere instead.

The first generation that did this is currently nearing retirement and they'll soon have to decide on how to proceed. Fuel is expensive, driving skills wane with age and in an aging society finding a buyer for a house that appreciated in value but has scheduled maintenance of key components is going to be difficult.
This is what infra/ops people are there for. I think a lot of the problems here are devs with no ops background having to maintain these platforms. It’s understandably daunting for those in this position.
Pig butchering mostly. “I am going to play golf with my business partners tomorrow. Will you have time to join us Dave?”

https://www.rrstar.com/story/business/2022/04/30/new-pig-but...
1. Hire slow, fire fast is an incredible common and accepted form of hiring (https://hbr.org/2014/03/hire-slow-fire-fast). I thought we were discussing hiring here? My post was not meant to attract employees but to share my thoughts as an employer. You sound like someone who has not done much hiring/firing.

2. If employees don't think an hour of their time is worth it to work for us, then they are clearly not a fit. Those people obviously don't value working for us. We have the easiest, fastest, most painless interview process of any company I have ever worked at, by design. We don't do whiteboard questions, we don't do 8 hour multi-person tech review days, we don't ask odd l33tcode questions or brain teasers, we don't make you wait weeks to hear back from us, we never ghost anyone, and we usually give a decision within 72 hours. Asking an hour to prove you can code seems perfectly reasonable given most companies ask for significantly more of your time. Every employer I've worked at before took up 2-5x as much time interviewing as we do. If that hour is what is preventing you from working for us, go work somewhere else as it tells me a lot about you and how much you'll value working for us.

3. I apologize for that. It was uncalled for.
The site is called 'scapegoat'
Same here. It is the european version, don't know if it is comparable with the US one. Maybe it also has another name in the US. Ford was one of the few manufacturers that did build specifically new cars for the european market. They became the most successful US manufacturer here. Or even the only one since I don't know any others. Focus was a model that just never had any issues aside from maybe a 20 year old lambda probe that lets makes starting an already hot engine an issue some times. They are ridiculously dependable cars.

I like that car too and getting parts is ridiculously cheap and you can exchange almost everything yourself. Although Teslas will perhaps one day have the same advantage because older cars that were numerous once are significantly cheaper to repair.
I've worked with Ruby for 12 years and I've never once had Ruby itself be the cause of poor performance. It's almost without exception the database.

It might be fair to say a well-optimized route spends 50-70% of it's time in the interpreter, but for non-optimized routes that's far too high.
$x = iwr https://google.com
foreach ($link in $x.Links.href) { iwr $link -OutFile foo ...}
In my country, those boxes go to discount stores operated by these charities which really aren't that cheap. A lot gets discarded, I've heard, because it's not presentable for purchasing. It's a bit sad, hopefully yours are better.
We have a great group of people who all get along and are both great ICs and team members.
It's that it can't sign the NDAs in the first place. From what I understand, getting godot to output graphics on a switch or ps4 or whatever isn't the hard part. It's meeting quality control metrics from nintendo, sony, etc. When you partner with a company for porting, it's their experience that you're getting more than code.
The mass adoption of EVs will be gradual, so we'll have to upgrade the grid as demand rises.
I think I often do #1, but the point is to get acknowledgment whether I am understanding things correctly, by rephrasing them. The point is not to undermine the train of thought, but rather confirm the agreement before the train of thought leaves to some distant land.
Dynamodb can be very painful with certain usage patterns or if you need to change/add usage patterns. For startups or MVP apps/features, it's a lot easier and cheaper to adhoc SQL.
Why in the world does anyone want another carrier standard? What do the carriers want? Who. Cares.

Say absolutely NO to any standard that requires carrier implementation.
"""
Point eight is enough. In fact I've concluded that it's really a good thing for people not to be 100% happy. I've started to live in accordance with a philosophy that can be summed up in the phrase "Point eight is enough," meaning "0.8 is enough."

You might remember the TV show from the 70s called "Eight is Enough," about a family with eight children. That's the source of my new motto. I don't know that 0.8 is the right number, but I do believe that when I'm not feeling 100% happy, I shouldn't feel guilty or angry, or think that anything unusual is occurring. I shouldn't set 100% as the norm, without which there must be something wrong. Instead, I might just as well wait a little while, and I'll feel better. I won't make any important decisions about my life at a time when I'm feeling less than normally good.

In a sense I tend now to suspect that it was necessary to leave the Garden of Eden. Imagine a world where people are in a state of euphoria all the time — being high on heroin, say. They'd have no incentive to do anything. What would get done? What would happen? The whole world would soon collapse. It seems like intelligent design when everybody's set point is somewhere less than 100%."
"""

-- Don Knuth
Generally you have to take them to a bank after a while, and eventually to the Bank of England. The paper 20 and 50 notes cease to be legal tender next month so people can accept them but probably won’t.
I don't know about the 5150 in particular, but most of these USB to serial adapters will not work with older computers since they are expecting different voltage levels.
Do trains really need to be so heavy? I was imaging things the size of cars or smaller on rails, moving around everywhere cars currently move around.
By the time Japan came into conflict with the USA, it was essentially a military dictatorship.

Afterwards it became a one-party democracy to an unusual extent. I am not sure what could or should be made of that, other than perhaps that one should be wary of general theories of political development.
You can upload the Next.js build to anything you like. netlify, S3 bucket, Apache or Nginx server running on solar powered bare metal.

If you need backend api functions
- https://github.com/serverless-nextjs/serverless-next.js/ AWS Lambda
etc.
Probably slightly more work I grant you.
The more important difference between my phone and my (non-existent) toaster is, that the toaster won't be connected to any networks (beside the wall-power outlet). While the phone is connected to various outside networks and has a generic computer inside.
As long as we're sticking with a representative system, I'd rather be more federated than less, but president is the least important federal position and it probably wouldn't change much if it became a popular vote. There's so many more important and actually impactful areas to reform though - the fixation on the presidential election feels like a distraction from the horrible mess of a fixed-size House that causes so many problems.
Trump knowingly and willfully engaged in an attempt to defraud and deprive the American public from a free and fair election. He knew he lost the election. He supported the fake alternative Electors scheme, knew it was illegal. He supported the illegal scheme for the Vice President to unilaterally discard state certified Electors. He supported the murder of the Vice President.

“Based on the evidence the court finds that it is more likely than not that President Trump and Dr Eastman dishonestly conspired to obstruct the joint session of Congress on January 6 2021,” -Judge David Carter, March 2022.

The first clue of his autocratic tendency came just before the 2016 election when he would not agree to respecting the outcome of the election if he lost. His plan always had been, in business and then in politics, to lie about losing. In his mind its better to discredit a system of government than admit loss. He does not believe in the peaceful transition of power. And tried and succeeded in inciting a riot to try and prevent it. The attempt is the crime.

And people were killed as a result of this plan.
Great points! Indeed, hard to tell without knowing a bit more about their schema specifics.
Could it be that 'smart' people have accomplishment or material gain later in life they are satisfied with?
That seems incredibly complicated, you probably don't need anything that complex unless you're doing research.
High end vs low end.

Your garage has the luxury of being pretty assured that there is some nitwit willing to pay $1k for a brake job who will walk in the door after you leave.

The kind of shop that deals in reverse engineering stuff that's no longer available doesn't have that luxury of having a ready supply of those kinds of customers or they wouldn't be reverse engineering stuff.
I'm not sure why this would be more reliable. But it would probably fit, but at the cost of additional complexity.
Well the hacking I think is the biggest draw.

Other than that I'm looking into this cause I'm frequently away for 4-5-7 days with no one to water my plants and also live in a small apartment(in the EU) so don't really have a nearby garden as an option.

> bringing you further away from nature, not closer

Yep, I agree, however, I also feel soil is more perfect/magical than hydroponics and less fun if you want to hack around on a small scale.

I still prefer a garden but it's just not viable at the moment.
for C++ folks i can only recommend pybind11 which provides a numpy interface.

it's a breeze to use, header only.
The issue is economic incentives do not align. The fisher can bring it back to shore and probably have to pay to dispose of it in a landfill. Or they can drop it in the ocean for free, while creating a negative externality.