skysight-inc/HackerNews huggingface dataset:
I am part of the Hollywood Accounting system... I know how it works better than you do.

The numbers are not manipulated; that would be fraud and most Hollywood studios are publicly traded, so there are constraints on the accounting methods they can use.

What people refer to as "Hollywood Accounting" is actually just dividing up accounting line items across multiple entities. Production costs are put in one entity, rights (and licensing profits) in another, and marketing is handled by a third company owned by the distributor to extract profits.
Stores used to process card payments before they had digital registers. So it’s not required. And now I suspect even cash won’t work without power.
Indeed; this is called Kernighan's Law:

> Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?

https://en.wikiquote.org/wiki/Brian_Kernighan
The Mystery of the Disappearing van Gogh
A central payment system is absolutely not a tool of oppression. Case in point: don't like it? Don't use it. People are still free to not use it just like it even didn't exist. For everyone that chooses to, there is now an instant and free payment method. Where is the oppression?

In your hypothetical scenario of nazis taking the gov, lets assume there is no central database. Nazis would go: ok banks give me your databases or else. Banks gives databases because they care about money. There, now nazi have central database. And in this scenario you have deprived the people of enjoying a really nice service.

Where is the win here I don't see it. Let's not do good thing because, oh, in a doomsday scenario good thing might be bad. Like, shouldn't we channel efforts in ensuring doomsday never comes to reality in the first place? This way we all enjoy good life with ever improving services.
You didn't even bother following the link to the Twitter thread.

The photo of the Apollo 11 display shown in the thread was taken from Wikimedia Commons, uploaded in 2008 [0].

The other one, with Pope Benedict seated next to a red-tiara'd flag comes from archivio.quirinale.it, the official archives of the Italian presidency [1].

[0] https://commons.wikimedia.org/wiki/Category:Vatican_City_lun...

[1] https://archivio.quirinale.it/image-h/Ciampi/grandi_immagini...
This ABC footage feels different than the outrage edit:

https://www.youtube.com/watch?v=OTxbq7MTQYY

Bezos listens to an overwhelmed Shatner for close to 10 minutes, hugs, etc.

It may be that he was suddenly thinking of "optics", as someone said, or maybe he wasn't.
Even on revered terminals such as xterm or rxvt (and variants) it's often possible to modify the displayed characteristics of ANSI colour sequences, see:

<https://invisible-island.net/xterm/xterm.faq.html#color_by_n...>

Researching this comment I found it's also possible to toggle urxvt colour themes on the fly, via Stack Exchange: <https://unix.stackexchange.com/questions/296257/different-co...>

I'm not sure that this is also possible on, say, the Linux console itself, though I suspect it may be.

I too had a first impression over a quarter-century ago the first time I saw a colourised 'ls' output on my first freshly-installed Linux system that they were garish, and have often griped about dark-blue-on-black (which is how I'd discovered the palette configurations referenced above). But I quickly found the feature useful and helpful and miss it when on a true monochrome device (of late: an e-ink tablet with Termux installed for a Linux userland).

On Linux, if something annoys you, there's almost always an alternative or configuration to alleviate that.
I use !!:$ occasionally.

If I wanted to do the cat/vim switcheroo you described, I'd more likely do:

<UpArrow><Esc>vcwvi<Esc>:wq<Enter><Enter>

Which is a greater number of keypresses, but more flexible and requires less thought.

...as they say: Unix is user-friendly — it's just choosy about who its friends are.
Dude - the chargers near me use NFC — but only for their own card! I open Apple Pay and pull up their card and tap it. Accepting a credit card cannot be difficult at that point
Everything reminds me of my ex.
1. You don’t have to use those features if you don’t want to.

2. Every other modern language makes this work, only rust makes excuses.

3. Rust already has default generic type arguments and “named parameters” for struct constructors (which in fact are mandatory), for which the same criticisms also apply to.

Rust is already tedious enough to work with as is, and the last thing it needs is more builder pattern or manual name mangling. You already need mut/non mut for getters, sync/async, etc. just look at [serde](https://docs.rs/serde/latest/serde/trait.Deserializer.html) or polars or ndarray. Ugliest language ever.
I would go a step further and teach them how to read code before teaching them how to write it
Depends, was the horse sold to you with a potentially fatal, albeit financially acceptable, defect?
The constraints and incentives for agencies like the FBI have changed a lot since Hoover (in no small part due to the abuses under Hoover.)

“Read about J. Edgar Hoover” is a handwave, rather than an argument, and its made worse when it supposed to support a position on the current state of affairs.
The 1987 paper about superoptimizers is well worth the read, BTW. It's quite short. Even the first example on its own (writing the sign function without any conditionals) is a mind-bender but becomes straightforward once you see the trick used: https://courses.cs.washington.edu/courses/cse501/15sp/papers...
I think they’re lazy. It’s one more thing that will break since maintenance seems to be low on the priority list
Hi, I am George, co-founder at LiveDemo.

I have decided to build LiveDemo initially as a chrome application that records all chrome application backend requests and then is able to replay them on demand to re-create the recorded application 1-to-1.

Unfortunately that didn't work well, since it worked very well for simple SaaS applications but for more complex WS applications it didn't work.

I have pivoted to capturing screenshots, videos and webpages to create the livedemo as a combination of screens.

It took me 1.5 years

Ask me anything
That’s an interesting take... Like, you can write any book you want using the English language, as long as you use Kanji to write it down? You wouldn’t consider that a problem?

But regardless you are only reinforcing the point that it was a real ban. The fact that they were banned and the books they didn’t want banned were encouraged really only continues to make my case.
Come on everyone, we all know that "most of the work that goes into software engineering isn't writing code", that "it's impossible to create a working system in one shot", etc etc etc, and therefore this tool will not give a realistic idea of what it would cost to build a system with nothing but GPT-4.

No one here (including the author) is under the impression that you can just ask ChatGPT to "write a Unix-like kernel" and get Linux spit out the other side.

That said, I am really curious what it would cost, as a theoretical lower bound, to pay OpenAI to write the Linux Kernel. 10 grand? 100 grand? I have no clue, but I'm glad someone wrote a tool to make it easier to find out!
Actually you have no problem initiating the connection with port forwarding. Brief reading suggests it would work better/faster with it enabled as some peers may not be able to initiate with you.
A resourced adversary relentlessly publicizing them?
Yes.

It ends where someone else's rights begin.
My favorite is when a survey result is presented with “as many digits as my calculator showed”, often allowing me to derive how many responses were likely received.
> And this is kind of an example of why it will be impossible to mitigate Climate Change.

I find it very interesting (genuinely!) that your reaction to the linked article was to conclude (I think?) that it will be impossible to mitigate climate change.

Is your position, broadly stated, something like "because these days many more things require electricity than at some point in the past, our demand for electricity will be too high, and this will prevent us from mitigating climate change"?
Processing fees aren't inherently expensively. They're low in Europe, and high in the US only because they go to rewards programs. You're paying 2% more but getting 2% back. Legislation could easily regulate them to eliminate rewards programs and bring them back down low.

Chargebacks are supposed to be expensive because they're a deterrent to businesses acting in ways that will lead customers to attempt chargebacks. And then they usually have an element of manual review which costs $ as well. Chargebacks being expensive is a feature not a bug. And they're an easy consumer protection option that isn't even a possibility with cash.
Read this shitty secret management story
in a software project we named a sync primitive a "rummy": true, false, null, waiting.
If I understand correctly, with the remaining words from the list. Guess it’s meant as a point of reflection, whether, and in what way, those adjectives might apply.
You may be right— My knowledge of these languages does not run very deep (although I am enthusiastic about them and am learning).
Maybe the Olympics have done worse but your link isn’t Olympic-related.
> Also a countertop swivel chair physicist, my understanding is that Higgs bosons are recruited as virtual particles all the time to bestow other particles their mass.

Physicist here: nope. The coupling between the Higgs field and other particle fields is what creates the phenomona of mass. The Higgs particle is just an excitation of that field.

Virtual particles aren't "real" in the same way that the first order Taylor series of sin(x) being x doesn't max x a real sinusoidal wave. All it does is let you make your calculations "close enough" for your accepted definition of "close enough."
Remind the rest of the class please.
I’m an arm chair “arm chair physics layman”, it seems like this will help with defining the meaning of the universe, and will await till this observation is useful enough to have real physicists explain this in layman terms
Many languages have string interpolation, which looks more similar to C++'s << than to printf

puts "You have #{itemCount} items of type #{itemType}."

print(f"You have {itemCount} items of type {itemType}.")

console.log(`You have ${itemCount} items of type ${itemType}.`)
Author provides a good example. Linear scripts are a horror to maintain but a project with too many abstractions are a horror to understand.

I'd rather maintain the latter because I just need to understand the code once and figuring out abstraction layers is fun at the cost of my employer's dime.

> the older version better

Better in what aspect? Better to maintain? Better to debug? Better in solving the business needs? If the answer is all of them then congrats you have poorly done refactoring.
Bioactive Glass
Texas Passes Ban on DEI Offices and Tenure Reform at Public Universities
This is also not entirely true, HP only wants official HP ink on printers that customers opted into HP+. If you don't opt your printer into HP+, you don't need official ink, and 3rd party cartridges work just fine.

For clarity:
- inkjets: the customer chooses during setup if they want HP+ (they trade the ability to use 3rd party inks for +1 year warranty... lol); or keep it HP standard (no forced limitation on inks, 1 year warranty)
- laserjets: if the customer buys an HP+, it comes "preactivated". I think HP sells non-HP+ models of the same printers, and customers are free to use whatever cartridges they want.

Very nuanced, and they make it complicated. Fan of the Instant Ink service (I'm grandfathered into the old free plans), but not a fan of the way HP+ is pitched.
> convince ChatGPT not to explain every choice it makes

I assume this is a major issue, because it tends to be more talky than my ex which is a real feat.
all your mony, as you never would have reached a complient program

maybe with GPT-6 or so, we will see, but not with GPT-4
The entire premise of this thing is wrong too because what if you need to regenerate something? Which even with the mighty gpt4? Still happens a lot… It’s almost akin to me asking a co-worker how fast he types and calculating how much of his salary it is for him to generate code based on that without any other factors. Also pointed out but why is this even a package? It seems like the definition of bloat when this should have just been a blog post tool or something. It’s all completely unnecessary and seems to try and cash in on hype.
Not among your friends.

I use cash for every single in person transaction I do, and only use a card for Amazon and whatever other online things o buy every so often.
Speaking for myself I think FP is going to have its moment and it will be when average devs can ignore the syntax and theories in the abstract and just solve problems.

Pretty much everything is better with FP and walking a reasonable line when showing benefits _without_ immediately diving into all the esoteric parts wins people.

We need the MVC of FP type of trendy bandwagon. The FP rails.

I am optimistic about Roc and hope Rust also continues to help make FP style programming more commonplace even if I still dont know how to implement a monad.
Starting around the mid 2010s I think, I started seeing needless use of "Design Patterns" all over the place (mostly by CS graduates). Factories, adapters, observers in places where it was just plain overkill and needless extra lines of useless code.

I started referring to it as cargo-cult programming.
Are we really thinking food trucks need more than the 3.3-6.6kw that a typical outlet can deliver? Just make them EV chargers as those companies already exist and have the stuff figured out. No reason to run an ICE.
This correlates very well with what Matt Strassler says:

https://profmattstrassler.com/articles-and-posts/particle-ph...

https://profmattstrassler.com/articles-and-posts/the-higgs-p...
The only thing important part is “these books are banned” and “these books are encouraged.” That you don’t care about the specifics says more about you than the ban.
This is getting even more fantastical by the moment.

I’m also pointing out not-that distant past events, and you’re also just completely ignoring them.

Good luck! Just don’t do it in my economy.
I’ve got code barely touched in 15 years still in day to day production use.
I feel sad for you. Your lessons are good ones but you don’t mention at all whether or not you’ve had any formal mental health care eg therapy, counselling, psychiatry. Without wanting to turn this thread into a flame war on the merits or not of medical intervention, I can strongly recommend the benefits of active, continuing and ongoing mental health care. No one is an island and the belief that we are all meant to solve our own problems single-handedly is a lie. Asking for help is probably the bravest thing you can do. All the best.
> No one here (including the author) is under the impression that you can just ask Chat GPT to "write a Unix-like kernel" and get Linux spit out the other side.

I really don't see such a thing being far off. GPT-4 is already pretty good at writing small modules ("write a disk IO queue for my custom kernel in C"). With a little more work in allowing GPT-4 to test out code it has written and iteratively make changes, allowing it to use debuggers, benchmarks, and sanitizers, allowing it to write its own tools, and then put modules together, I think we could very soon be asking it to "write me a Unix-like kernel".
I don't know about superoptimization, but JetBrains does have a HoTT-based language and proof assistant called Arend for doing mathematics in.
The knots HN ties itself into bashing "EU regulations", but then easily deciding to impose arbitrary regulations on payment companies is a sight to behold.
So, a challenge here is that SQLite is designed for single-writer scenarios. One writer performing a transaction necessarily has to block any other writer from proceeding in the meantime. (There are some experimental approaches in the works to solve this, like "BEGIN CONCURRENT", but it's still limited compared to a typical multi-client database.)

This is all fine when the application is using SQLite as a local library since any particular transaction can finish up pretty quick and unlock the database for the next writer. But D1 allows queries to be submitted to the database from Workers located around the world. Any sort of multi-step transaction driven from the client is necessarily going to lock the database for at least one network round trip, maybe more if you are doing many rounds of queries. Since D1 clients could be located anywhere in the world, you could be looking at the database being write-locked for 10s or 100s of milliseconds. And if the client Worker disappears for some reason (machine failure, network connectivity, etc.), then presumably the database has to wait some number of seconds for a timeout, remaining locked in the meantime. Yikes!

So, the initial D1 API doesn't allow remote transactions, only query batches. But we know that's not good enough.

To actually enable transactions, we need to make sure the code is running next to the database, so that write locks aren't held for long. That's complicated but we're attacking it on a few different fronts.

The new D1 storage engine announced a couple weeks ago (which has been my main project lately) is actually a new storage engine for Durable Objects itself. When it's ready, this will mean that every Durable Object has a SQLite database attached, backed by actual local files. In a DO, since the database is local, there's no problem at all with transactions and they'll be allowed immediately when this feature is launched.

But DO is a lower-level primitive that requires some extra distributed systems thinking on the part of the developer. For people who don't want to think about it, D1 needs to offer something that "just works". The good news is that the Workers architecture makes it pretty easy for us to automatically move code around, so in principle we should be able to make a Worker run close to its D1 database if it needs to perform transactions against it. (We launched a similar feature recently, Smart Placement, which will auto-detect when a Worker makes lots of round trips to a single back-end, and moves the Worker to run close to it.)

Sorry it's not all there yet, but we're working on it...
> Figure out how to do tax loss harvesting. Figure out what a back-door IRA is. Figure out how to take out a loan on your 401(k).

I'm not convinced any of those things is "smart". For example, if LT cap gains is your lowest-rate taxable income, why would you want to offset it? I make sure when I have a cap loss for the year, I have no LT cap gains and keep it to around $3K (which offsets higher-tax-rate ordinary income). Loans against 401(k)s are rarely a good idea, you shouldn't put in money in the first place if you need it before retirement. And I've always thought that (assuming I have any pre-tax Trad IRA money, which would be the case if a ever leaving a job and rolling over the old 401k), it's more effective to use my annual $6K after tax money to pay tax on a larger Roth conversion than to simply go though extra steps to get the $6K into the Roth (greater leverage).
> Maybe the language should work the other way around and everything should be constexpr by default and functions should opt out of constexpr-ness, but that's 40 years too late for C++.

That's how lambdas behave in C++, so it's definitely feasible. gcc has a flag, -fimplicit-constexpr I think, that does this for regular functions, and it doesn't appear to cause any significant issues. I think there has been some talk around making this the language behavior at some point in the future.
Is there evidence that any amount of "sensor help" can somehow overcome the lack of a limited "brain"?
I’m the opposite. I think you just need to realize life is short and not a moment should ever be wasted.
One feature I haven’t seen people write about is the ref2vec capability. I find this to be an interesting way to get some knowledge graph-like capabilities out of Weaviate.

Posting here to see if someone sees it by happenstance and writes an awesome article about it someday so I can read it.

https://weaviate.io/blog/ref2vec-centroid
xfstests are not unit tests, they are integration stress tests, and their coverage is quite poor. Nothing in that suite exercises `xfs_bmap_btalloc_at_eof` particularly. That's the kind of unit test you want before undertaking a large refactor. There are several testable postconditions that would be trivial to test, if this code had an easy way to add and run unit tests. It has two mutable (in-out) parameters and a comment that says allocation returns as if the function was never called. And that is where the bug lies, according to the patch (which also adds or modifies no tests).
Whoever is downvoting this please ask yourself when the last time Kuwait hosted the Olympics was...
> (And if you are doing CPR, the breathing part is less important than the chest compressions. Blood flow is more important than oxygenation. But always/only follow current guidelines/training.)

The problem is that this advice is situational.

If electrocution is what caused the cardiac arrest, it is much better to give breaths than compressions. The heartbeat system resets itself before the respiratory system. The problem is then that the heart is back, uses up all its energy reserves, but there is no oxygen to replenish and the heart goes back into arrest.
Is this that hard of a tool? Why is it a package? Seems like something someone with a few lines of code could do. OpenAI is transparent and fairly open about pricing per token… it seems like it’s just adding bloat.
Heraldic rules should apply to flags, insofar as it is centuries of graphic design knowledge about what can be distinguished from a distance, and in low-light.

Politics aside, the white-blue-white flag is simply a better design than the current flag of the Russian Federation, because color on metal is easier to distinguish. But the French tricolor looks great, because it follows the rules.
now, was this written ... by GPT-4?
How flywheels can speed up EV fast-charger roll-out
> So Higgs particles don't exist under normal conditions

Eh. That's like saying fully constructed lego kits don't exist under normal conditions. Yea sure, my normal life conditions don't entail me having just finished putting together a lego rollercoaster. But calling that "normal conditions" is a weird way of describing the situation.

I'm being kinda nitpicky, but as a physicist who understands the phenomena I'd just definitely never say "under normal conditions" here. The LHC just provides more potential interactions in a highly regular way and thus more opportunities to measure it.

The Higgs boson is just heavy and unstable and less probabilistic to be created via most particle interactions.

> So Higgs particles don't exist under normal conditions, they're just proof that the Higgs field exists and explains how mass exists

This Higgs particle doesn't explain how mass exists. The construction that explains how mass works predicts that a Higgs boson exists.
Is TL really the same site it used to be? I have a vague memory of losing my account and the site shutting down 10+ years ago. When they came back, they offered open sign-up now and then. Made me avoid it.
If you havent read it already it may be worth reading why the AWS libs are built that way. Definitely a problem at a certain scale.

And if you havent seen it already you would probably appreciate Project Cambria from Ink and Switch.

https://www.inkandswitch.com/cambria/

Editing to add: and "schema driven development" with tools like Buf

https://buf.build/
Yeah I was using godbolt too and wondered why I could not get it to compile. Just funny the article is about c++17 but you need c++20 on there to get it to compile.

My c++ is super old. But thanks that is great I could not figure it out.