skysight-inc/HackerNews huggingface dataset:
Lifetimes and references are things to consider in Lua integration code too. See luaL_ref() rationale and why you can’t lua_pop() a string that is in use. The fact that gc doesn’t happen instantly 99.99999% of the times doesn’t save you from thinking about it.

Not that this was a hard topic in a language where lifetimes are the main concern and business as usual. In C/etc you can’t hold anything without a ref or some sort of a lifetime guarantee. What makes it special wrt Lua/Python?
Neither C nor POSIX requires time_t to be signed.

The Open Group Base Specifications Issue 7, 2018 edition says that "time_t shall be an integer type". Issue 8, 2024 edition says "time_t shall be an integer type with a width of at least 64 bits".

C merely says that time_t is a "real type capable of representing times". A "real type", as C defines the term, can be either integer or floating-point. It doesn't specify how time_t represents times; for example, a conforming implementation could represent 2024-12-27 02:17:31 UTC as 0x20241227021731.

It's been suggested that time_t should be unsigned so a 32-bit integer can represent times after 2038 (at the cost of not being able to represent times before 1970). Fortunately this did not catch on, and with the current POSIX requiring 64 bits, it wouldn't make much sense.

But the relevant standards don't forbid an unsigned time_t.
What happened with the 5.4 announcement?
The QoS influences the core threads are placed on https://developer.apple.com/documentation/apple-silicon/tuni....
I think that Primeagen answers your concerns fairly directly in this video[1]

TLDR; Barely useful AI costs $5 per "bug fix" and you have to supervise it, that's the lowest compute, cheapest models... the "good" stuff is going to cost thousands per task, there needs to be 10,000:1 improvements in hardware before things really impact the market. However... code churn generated by the AI is likely to increase the need for competent programmers to sort out the mess. ;-)

[1] https://www.youtube.com/watch?v=kjOxkPl3RGo
Lua kinda has an unofficial type hint implementation (via lua-language-server). But at this point I would just use TypeScript.

> Lua's philosophy, as far as I can get it, is to be minimalist and allows for emergent features

IMO this philosophy only shines in languages with macro, e.g. lisp family.
> I don’t expect much to come except contractor 1’s would-be competitors closing the gap

That means increased competition and reduced costs for the government.

> or using this to throw stones based on existing contract code quality

That means code review, which results in improved code quality one way or another.

I fail to see the problem here.
I have this as a system-wide mapping with Karabiner. Complex modifications, "Post esc if left_alt is pressed alone".

There's never a time when I wouldn't want this to work, may as well enable it everywhere.

Edit: It looks like I misunderstood what that setting in iTerm does. But hey if you do want left option to send Esc by itself, that's how to get it.
> Large microsd cards are very cheap these days

How reliable are they? I've had a couple of cards that I was playing music off mysteriously wipe themselves over the past year so I've subconsciously labelled SD cards as unsafe for long term storage.

Is this common or was I just unlucky?

> if you ever don't have a good connection then it's worthless

Here in Vietnam, internet is more stable even than electricity. We can be in the middle of a typhoon, trees and roofs being destroyed, no power for several days, and mobile data never even drops in speed.
> On this one particular night, a lot of people were bonding, and it was amazing. But then I saw this young boy sitting in the corner by himself. Let’s call him Aditya. It was a bit dark and Aditya was trying to just get by, unnoticed. He looked overwhelmed and disinterested. I went up to him with a big smile and a lot of kindness, and said - “Hey man, what’s up? Why don’t you approach and talk to a few here? They are friendly, you know. You like Open Source, so maybe talk to that guy (pointing to a senior of mine) and ask him how he got started.”.

> His response that day still echoes in my ear. It felt like a voice coming out of a closed heart. And my words had fallen flat on him. He said, with a smirk, “I am not an extrovert”.

Maybe i am reading into this, but the author comes across as an asshole to me. You can see the condescension dripping from the prose.

To me it sounds like the author was being a busy-body and came off as rude. Introverted kid wanted him to mind his own business.
I think the syntax could probably be improved, yeah, even though it's not really bad. You could even fix default-global at that level! The nil semantics and 1-based indexing in ipairs are maybe a little tougher.
> The big picture of "native" is that Ghostty is designed to look, feel, and behave like you expect an application to behave in your desktop environment.

> On macOS, the GUI is written in Swift and uses AppKit and SwiftUI.

(https://ghostty.org/docs/about#native)
Be the Browser's Mentor, Not Its Micromanager – Andy Bell
But they're exposed to the culture all the same, and are appalled by it - the same reason Italians will argue about food even when they're unaffected by what some foreigner they'll never meet eats.
FWIW, I feel no pressure at all to do this. I want to get better at it purely because I want to get better at it. One practical benefit is that non-work social settings get easier, too. When I’m around a bunch of my kids’ friends’ parents, who are perfectly nice people who probably have a lot in common with me and I’ll probably enjoy being around, it’s nice to have some practice making conversation with a roomful of strangers.

I’m not doing this for work. I do it for me.
Leap seconds should be replaced by large rockets mounted on the equator. Adjust the planet, not the clock.
My cousin ... gosh ...

She says a reserve army of labor is great, and that if lawyers and other professionals can receive money for being on retainer and doing nothing, then so should anyone who can be considered a laborer.

I hope you have a response that will make her be quiet. I really need some peace in this house.
Not a single artist ever in the history of the world has ever said, “Bandcamp enabled me to buy a home in Silverlake and to quit my day job.”
I am not a very adept terminal user. I just hook in to tmux. So all emulators are basically the same for me. Switching windows in tmux is much faster than clicking on tabs. ghostty at least looks much nicer. It has a lot of built in fonts and themes. Command line editing is similar. Man pages for some reason are very slow to open in iterm2, but that isn't the case here. The only deal breaker for me is that it takes up a lot of cpu (in macbook air). Unless there is a simple, non-consequential config to change that will fix this, I will stay with iterm for now.
You wouldn’t realize because 24-bit colors are silently dropped. You don’t get the full experience but you also won’t “run into any issues”, unless you start using something that relies on 24-bit color coding for core functionality, like my own log viewer.
> I'm not claiming nobody is making progress. I'm claiming that most working Doctor's don't read it.

I love HN hubris. What do you base your claims on?

I assure you that most oncologists stay on top of the latest studies. I work with them on a daily basis.

> Doctors are making mistakes with imperfect and bad knowledge all the time.

That’s not relevant to the current discussion. Mistakes are not the same as not being aware of the latest research.

> In every other country a medical doctor is a 4 year bachelor's degree.

You’re all over the place in your arguments. The length of training is irrelevant to staying on top of the latest research.

> Every professional class has such requirements - accountants, lawyers, civil engineers, etc.

Not to the same degree. I don't recall too many accountants doing 3-4 years of apprenticeship. The world isn’t black and white, there is gray.

I’d suggest to stick to commenting on things you know about.
I disagree, the landing page is just fantastic.

I like the product as well, however, I need to use it for a week to comment.
Yeah, I didn't mean to say you didn't have to think about lifetimes at all when embedding Lua, just that the stack, weird as it is, seems to simplify that kind of thing rather than complicating it (even if you do occasionally have to luaL_ref). But if there's a clearly better alternative, I'd like to know about it. Constantly calling Py_INCREF and Py_DECREF isn't it.

Delayed GC seems like it might add headaches for this kind of thing rather than removing them, because your bugs may take a while to show up in testing.
People do traefik etc for the ssl mostly. A lot of selfhoated things log you out quite fast over http
Transaction Processing Facility
ha I used to love Print Shop on our Apple ][ clone. I can still hear my (dad's) old 80s tractor-fed dot matrix buzzing out whatever my young mind thought up. Signs for my bedroom door and breakfast in bed menus as examples.
unless this is just an easy money grab for billions in contractors, with senators who own the businesses, to work as hard as possible at non-compliance
Shared hosting usually doesn't have docker or a vm available to you. Often you get to upload PHP, maybe Node, Ruby or Pyhon too and accept all their opinionated defaults. Often this makes it incompatiable with anything not specifically designed for shared hosting.
With a dot matrix printer!
Search ArXiv Fluidly
It always bothers me how people frame it as a binary either-or thing.

I think the reality is way more subtle, with a wide spectrum that is highly context dependent.

I don't think labelling someone/one self as one or the other or trying to "be an extrovert at work" or whatever is productive or healthy.
A Vision for Embedded Swift
I use syncthing to sync my obsidian vault which is also a git repository between linux, mac and windows.

Works great!
You provide a convincing argument. My mind is changed.
Isn't Tinyglade mostly custom code including the renderer, just using bevy_ecs as data storage?
I see your point and have even shared it, but my experience with real-business Lua was miserable and actively laughed at. Which was, I must admit now, absolutely deserved.
I just use rcmd for that. But that iterm feature is nice.
Still trying to get a food co-op off the ground here in Boston, and I am looking forward to the annual virtual conference of live videos that are basically the latest-in-industry news and updates about patterns and more others are doing from the Food Co-op Initiative:

https://www.youtube.com/user/foodcoopinitiative
Print Shop will forever remain burned in my memory of that era along with Zork, Wizardry and Bank Street Writer.
Deciding to read a book a week was the best new year resolution I ever made
It also seems to assume that just because you don't want to socialize in some specific setting means you are an introvert or extrovert.

Everyone has people they like and people they don't. I've had co-workers i don't particularly like. Of course i am professional and polite to them at work and can work with them fine, but would i specificly go up to them at a party and chat? Probably not (i'd still be polite of course, just not specificly seek them out).
People are fed up with subscriptions and things like minipcs and docker have made this all very accessible
The Universe of Beatrix Potter
(SadServers guy here) happy to help!
Jobs Have Stopped Hiring, but Why? [video]
The most uninstalled Mac apps of 2024
LFFS: Simplicity vs. Efficiency
Well Companies are told to show either profit or growth every 3 months. That sets up where the story goes.

So we have everyone from Starbucks to McD to AT&T to Comcast to Walmart to Amazon to Netflix to Disney etc etc all trying to pull that off even as Incomes dont grow globally other than in small pockets of the world which are over targeted and over fished. Its very hard to correct these kind of runaway processes cuz "everyone is doing it" and everyone doesnt know hpw to do anything else.
Konsole is super solid. Just Works.
Show HN: I made a Unix-like kernel, Goldspace
This is my little hobbyist kernel, Goldspace! It runs on x86 processors and has been in the works for almost 6 months now! It's far from complete (can't switch to ring 3 yet), but by default, it runs using a built-in shell named Gash, which you can use to play around with the kernel!

Now, the kernel isn't all! Once I get the kernel stable and ready for user space, I'll make an OS (current name is planned to be PolarisOS) to show Goldspace's ability!

It is a multitasking kernel, preemptive multitasking to be exact. The scheduler is round-robin, which was the easiest to implement.

Developing it has been a wonderful experience, and if you like my work, leave a star on the GitHub page! :D
Show HN:Add User in a C Program
The Case for Value-Based Care
Just downloaded it because of the animation on the site. How did you make that? it's cute.

The terminal is good. I don't have any issues with the stock mac os terminal app but I'll give yours a go for a bit. I can't tell exactly how, but it does feel faster - I'm not sure exactly how it is but it looks like it renders text faster.
There are a lot of good comments here already, but I can't let this pass by the main page without taking the opportunity to rail against Lua because, no, it's not underrated. It's everywhere and terrible.

This article is fairly light on detail, only mentioning a couple table footguns, but there are MANY more. (I also disagree with it being "accessible even for beginners", but I'll stick to objective things.) For starters, the size operator `#` doesn't work on map-like tables, and there's no easy way to copy part or all of a table, or to serialise one for printing.

Lua doesn't have `switch` or even `break`/`continue`. Though it added a `goto`—years after we collectively realised that's an antifeature. You can use `and`+`or` as a ternary, but you need to remember that it works differently with bools and that `nil` is falsey ofc. And `0` is truthy. Using a variable which hasn't been declared yet or is otherwise out of scope gives `nil` rather than an error. In fact most logic errors are SILENT (yay dynamic typing), and some syntax errors are raised far from the actual cause. `<const>` isn't.

Before Lua 5.3, all numbers were floats. The patterns used for `string.match` look superficially like RegEx but they are not, despite them predating Lua. The stdlib is woefully lacking, with the official documentation seeming to taunt you with examples of how several common functions could be implemented, but it's left to you to copy them into your projects.

So yeah, Lua might be small and quaint, but that's only because so much is not included "in the box", and what is included is no good.
MathAcademy was good but I just ran out of time every day to do it, and it was way too remedial for me. I was using it to learn advanced math relevant for my work, but it was taking me over stuff for standardized testing for high schoolers. The creator is active here and I sincerely think it’s a good product, but not right for me.
Gnome is becoming the de-facto Linux DE. It's standard on Ubuntu, Fedora, RHEL, Suse and Debian.

KDE is standard on what, Steam deck? Every enterprise-y distro ditched it some time ago...
I believe the "boolean" operations is really set operations - union, intersection, subtraction, etc.
With your last sentence, you supply your own counterexample demonstrating that "tax-evasion-enabling cash or credit cards costing the merchant 2-3%, pick one" is a false dichotomy.

As I've mentioned, another counterexample is that Visa and Mastercard credit cards very much continue to exist in the EU, even after consumer credit card interchange rates have been capped to 0.3%.
Visa was originally a chaord - a strange construct jointly owned by competing banks. That idea never caught on, but worked. See Dee Hock's "Birth of the Chaordic Age".
Lua stack basically works as an arena if you aren’t eager to clean it.

I guess in C one could macro hack himself a similar arena to borrow objects from python runtime.

In C++ it’s a matter of befriending a smart pointer with ref/unref calls. It was probably done hundreds of times in all sorts of python embedding wrappers.
I am finally going to learn to play the Piano. I have tried in the past and found I really enjoy the practicing yet I would let life get in the way and fall off.
> were to offer me a discount equivalent to what my card issuing bank pays me in cashback

and that's exactly why these card networks made the merchant agree in the contract to not do exactly that.
So everything from classified material to office memos and personnel records? That's not gonna happen.

If you, at home, pay someone to do work, what exactly do you own beyond the end product?
yeah, you can combine it with % formatting operator to do stuff like `% %% % %%%`
Against a universal definition of 'type' [pdf]
whew, the "use my favorite shell-based build awesomesauce" is strong with this thing https://svn.exactcode.de/t2/tags/8.0/package/shells/bash/bas...

I also especially enjoy that the documentation cribbed so strong from the Subversion redbean book that it still says https://t2sde.org/handbook/html/index.html#:~:text=version%2...
Also, you can check out the list of UI libraries for Hotwire https://hotwire.io/ecosystem/ui-frameworks
pseudo-dupe from 22 Dec https://news.ycombinator.com/item?id=42489305
> By comparison, the lack of accountability and lack of disincentive to engage in anti-social afforded by anonymity is inherent to anonymity.

Possibly. One could argue that the problem is not nearly as closely linked to anonymity as you argue it is, but even if it was, we would still need to have anonymity, including all its drawbacks, in order to make participating in the public sphere possible to all, instead of being restricted to a privileged few.

> There's no way to get the same level of social responsibility in an anonymous space.

You do know that this very forum qualifies an an anonymous space, right?
Thank you for taking the time to try out the site!

arXiv has a keyword based search engine. It looks for words as is in the text. PaperMatch tries to find similar papers that are closer in meaning.

Here is an alternative approach: Take one paper that you like, copy the abstract from arXiv (or arXiv ID) and paste it in PaperMatch. This should help you find similar papers.
+1 for Acquired. They started out covering tech acquisitions but have branched out to covering non-tech companies with interesting stories. I particularly liked their episode on IKEA.
Merging the concepts of arrays and maps was very popular in the 1980s and 1990s. I can count at least Awk, Tcl, Lua, JavaScript and PHP as languages that went with this approach.

Looking from today's perspective, I also fail to see the logic behind it: separating arrays and dictionaries does not make your implementation more complicated than having a single backing data structure for both and taking care of all the special cases that arise from such a monstrosity.

The best explanation I can think of is that this was just a fad nobody questioned too much. Back in the 1980s and 1990s, there was a strong distinction between "scripting languages" and general-purpose dynamic languages (like Lisp and Smalltalk). Scripting languages were supposed to be used to write small scripts to automate stuff. Type-safety was not something that any mainstream language considered back then (it was a thing in niche languages like Ada, SML and Eiffel), and speed was not a concern for scripting languages.

A common philosophy (though I never seen it clearly stated) for scripting languages seems to have been to "be liberal and try to work with whatever the programmer does".

So you shouldn't require to declare variables in advance (that's a lot of hassle!) or throw an error if a function is called with the wrong number of arguments.

And what if the programmer tries to add an integer and a number written as string? Just coerce them. Or better yet, make everything a string like Tcl does. Or at the very least, don't be a spoilsport and have separate types for integers and floating point numbers!

Ok, so what if the programmer tries to use a string index? We cannot coerce non-numeric strings! Well, why don't we just unify arrays and dictionaries like we've just unified all our number types? Now you don't have to worry about invalid indexes since all indexes are converted to strings! And if the programmers want to use 0-based, 1-based, 2-based or 42-based indexes they can do whatever they want! They can even have non-contiguous arrays or mix arrays with associative dictionaries. Total freedom.

This thought process is completely imaginary. I suspect not a lot of thought was given to this type of flexibility at all back in the day. It was just a widely accepted assumption that scripting languages should be flexible, free and relaxed. And merging arrays and dictionaries (or "all arrays are associative arrays" as it was often called back then) was just one more idea that naturally fit into the zeitgeist, like type coercion and "assignment to an unknown variable sets a global variable by default".

So tldr: it was a fad.
It's been illegal for years in both the US and the EU
Scrolling Rails and Button Controls
The same could be said for fossil fuels...

https://www.imf.org/en/Blogs/Articles/2023/08/24/fossil-fuel...
Catching Up with Async Rust
You can also check out the type checker by Ruby built by Stripe https://sorbet.org/
None of those are good reasons why PR reviews are necessary. They are examples of things that it's theoretically possible a PR review might catch. But there's no information there about how likely those things are to be caught.

Without that absolutely critical information, no cost benefit analysis is possible.

In my experience across many companies, PR reviews almost never catch any of those bugs or bring any of those benefits.
I've built from source on Linux, I don't use MacOS.
No I'm referring to system level libs, that you need to install via your operating system package manager like `apt` for python packages that depend on them.
Peyote sacred to Native Americans threatened by psychedelic Renaissance
The latter I've been told, she came out a couple weeks ahead of schedule.
Walked into a drop-in salsa dance class at the Berkeley YWCA two decades ago.

Got hooked from the first class and it was a gateway drug to swing and argentine tango. Hope you have a good time.
> [...] a fighter jet was being smuggled to Gaddafi by hiding under a civilian aircraft [...]

Do you have any sources for that? The article you link does not seem to mention that theory.
> Lol, visa had network effect.

Visa, the organization, is little more than a small clearing house. Credit card issuers (banks) and credit card processors (also banks) define the network in so far as determining what organizations can be "on the visa rails" (also almost exclusively banks).

> The visa trick if any, was hiding the credit card fee and pushing it to merchants.

Merchants pay their discount rate and customers pay their interest rate. "The visa trick", as it were, was getting customer confidence in credit cards being accepted at enough merchants to warrant use.

There was never a "hiding the credit card fee." Both parties pay and always have.

There was only patience by the banks and heavy marketing to customers in order to create demand that would force merchants to have to accept credit cards.
It's a macOS-only feature, for now.
“Fight attendants” made me chortle.
Mitchell has a 5 min lightning talk discussing performance of ghostty which is worth a quick watch https://www.youtube.com/watch?v=cPaGkEesw20&t=3015s

It's one of those things that you don't realize how poor the performance is until you experience something better.

Mentioned from his blog:
https://mitchellh.com/writing/ghostty-is-coming