skysight-inc/HackerNews huggingface dataset:
Show HN: Tack, a fast lightweight scripting language for games and embedding
https://github.com/PlumeCat/tack

Hi HN!

Tack is a scripting language I've been working on sporadically for the past year or so, and intensely for the past few weeks. It originated out of a desire for something that was like Lua, but with a more familiar syntax, and without some of the other surprises in Lua such as the 1-indexed tables. It's also been a great learning project, and a very satisfying challenge! While the current version is early beta at best, I hope to continue working on it and maybe see some adoption.

Despite the relative lack of optimization, I'm very pleased with the performance so far - although I haven't done a huge amount of benchmarking, it seems to be significantly faster than the stock Lua 5.4 interpreter for the quicksort test, and the btrees test (copied from the Computer Language Benchmarks Game).

The language is designed for embedding in C++ programs, and is written in C++ more or less from scratch including the handwritten recursive descent parser, and a register-based compiler/interpreter. The only dependency other than the standard library is my C++ adaptation of the khash library used for the object type - a from-scratch hashmap seemed not worth the trouble.

Quick code example - more examples in the repo!

fn quicksort(arr) {
const n = #arr
if n <= 1 { return arr }

" find the midpoint "
let l = min(arr)
let r = max(arr)
if r == l { return arr }
const mid = (l + r) / 2

" split array into upper and lower "
const upper = filter(arr, fn(x) { return x < mid })
const lower = filter(arr, fn(x) { return x >= mid })

" recursively sort the upper and lower sub-arrays and join the result"
return quicksort(lower) + quicksort(upper)
}

let A = []
for i in 0, 1000000 {
A << random()
}
let before = clock()
let B = quicksort(A)
let after = clock()
print("Time taken: ", after - before, "seconds")

Building requires just cmake and a C++20 compiler - tested with MSVC 2022, g++11 on WSL and Clang 15 on M1

https://craftinginterpreters.com was a great help with implementing closures, as I had gone down a blind alley with my first approach for locating the closed-over variables. However I have taken a slightly different approach towards boxing.

As I do intend to use this for some small games myself going forward, there is a standard library already, and plans to expand it. I also intend to release a GLFW-based mini game framework along with precompiled binaries, so hobbyists (and younger relatives!) may use it without needing a full compiler toolchain.

I would love if anyone is interested enough to try it out!

James
There is not one singular meaningful app or feature that doesn't work on X at this point.
No you are not, Linux and BSD fully replace firmware on boot. Plus BIOS boot is just a pass through to the OS and the OS does its thing.
Your arrays and buttons example appears broken - after the first item is added to the todo list, typing new items in the input field leaves the add button looking disabled (although it works when you click it).

I think it only gets enabled when focus leaves the input field.
Here's the biggest and most important reason (besides the obvious ones like grids, energy, etc.): most people >cannot< afford an EV compared to say, a SH good(and often better) vehicle. EVs are not even competitive to their equivalent fossil-based cars that are new.

Idealists should often take their heads out of their asses and understand most people don't have their privilege, ironically the most privileged ones screech about privilege while ignoring their own. Go ahead and tell developing countries to switch to EV-only, setting them back at least 10 years in terms of industry and economic growth.
This is HN. Headlines are full of jargon - it's an expectation for a diverse technical forum.
> 1. Heat in the winter, this will reduce you range, some just a little, but in places like Minnesota in Feb, a lot.

Better inform the folks in Norway (75% EV share), Iceland (45%), and Sweden (32%):

* https://www.weforum.org/agenda/2021/02/electric-vehicles-eur...

* https://en.wikipedia.org/wiki/Climate_of_the_Nordic_countrie...

> 2. Stuck in traffic. If you are stuck in grid lock, that will cut in range, there have been cases were gridlock could last hours.

As opposed to being stuck in track in an ICE vehicles?

> To me, better off moving to very good public transportation.

Perfect is the enemy of the good:

* https://en.wikipedia.org/wiki/Perfect_is_the_enemy_of_good

If we're stuck with cars (in the short- or long-term), we might as well try to reduce carbon emissions.
This seems like a great way to develop or exasperate mental illnesses like OCD.
This is one of the things that really annoys me. We have so much data and case studies of the effects of automations (of different levels of sophistication) and user interfaces and how those interact with other things including distractions through FAA investigations.

To say nothing of other safety critical industries.

We know what works ok. We know what’s dangerous. We know what’s lethal. There are lessons to look at.

And yet Tesla and a lot of people seem content to re-learn the same lessons through blood over and over again. Like this is 100% incomparable to anything that’s ever happened before.
"intense concentric reduction of the visual field in both eyes, accompanied by triple vision of a single object, flat color vision (colors appear as detached from objects), central color-blindness, loss of ability to notice movement, inverted vision, and a disorder that allowed him to read letters and numbers, both in normal and inverted position, stating that in both cases the position is identical".
"in an alternate reality" (/s) some media conglomerate invented equivalents of YouTube, reddit, and Twitter, and they never have to ask for permission to use your content in their pieces because it's part of the TOS for those sites anyway.

Kinda glad they didn't
> maybe they were a journeyman piece for bronze crafters

If this were the case, shouldn't there be makers' marks on them? Something to identify them as being the work of a journeyman level artisan hoping to use it to prove their worth? Otherwise, one could fraudulently present someone else's work as there own, and undermine the system.

I feel that if they were really part of a 'graduation portfolio' for crafters, it would be much more obvious. Something like an inscription that says "crafted by Albertus in the 14th year of the Emperor Foo".

I like your fizz-buzz theory. If the object is a one-and-done throw away, then you might not bother to put your mark on it.
"There is emerging evidence that tyre wear particles and other particulate matter may contribute to a range of negative health impacts including heart, lung, developmental, reproductive, and cancer outcomes."

https://www.sciencedaily.com/releases/2023/02/230222210553.h...
How do you recommend strengthening your postural muscles
You are manufacturing your own outrage.
This is very strange reasoning. Whatever I might have thought if he had said that, he did not say that, therefore it is not relevant.

He didn't even say antivaxers "should be segregated", the writer added that.

But clearly arguing in good faith is but a distant memory at this point. Let's just make up imaginary scenarios and argue about those, I guess.
It would be great if it could summarize topics of bundled individual news over time. Often a single news really is part of a wider context and doesn’t make sense to be read in isolation without knowing the context before.

I believe Google News does some bundling of topics.

Though I also recognize that topics are hard to define as they could be chosen arbitrarily wide. Everything could be a topic. The ultimate topic would be “The Universe” which contains everything.
Sounds like a very good person to have in that position. Being a single pilot in an aircraft, she would not only have years of experience relying on automation, but also risk-reward decision making involving life or death. Self-driving cars are not a "restart the container" situation.
I really hope they manage US availability some time soon. The FairPhone seems like it'd be a really good Android app dev test device, representing the average Android device well, being repairable (when the battery inevitably dies due to being plugged in frequently), and I would imagine being more friendly to third-party Android distros once official OS updates stop being provided.
The problem isn't robots taking our jobs, but the robot owners taking our incomes. The problem is that culturally, we still too often believe that you need to work to eat, and that makes robots doing our work a threat. But surely the ideal future here is that robots do our so we don't have to. For that to be possible, it's essential that everybody benefits from this automation.

Tax to discourage robots is the wrong approach. Encourage robots, but tax the rich in order to divide their wealth more equally among everybody. It shouldn't be considered a problem when someone doesn't have a job. It should be considered a problem when someone can't afford to live and eat, while others have too much.
Maybe this is where "I can feel it in my bones" comes in
I felt the same way, but ended up learning tmux because you can't make asciinema span multiple tabs or panes, and sometimes you want to make an asciicast with more than one shell.

It's handy to know sometimes, but if I have a sane window manager at hand then I don't use tmux. They're not common, sane window managers, so I use it occasionally.
VDH on why National Review was a little too far to the left for him:

https://www.realclearpolitics.com/video/2021/10/05/victor_da...
How is this the first that I am finding out about this?!?

I've been looking for such a tool for _forever_!

Thanks!

Any notable forums/discussion areas for this?

(I will note the name makes it hard to search for --- maybe that's why I didn't find it?)
Sorry, degrowth is a nonsense, unless you want to see millions of people dead due to mass famine thanks to deindustrialization which needs to go hand in hand with degrowth.
I tried those expensive chairs and sitting up straight and it gave me back pains.

After I read a study about slouching being better for you I got a gaming chair and switch between slouching and standing and have no more back pain and can concentrate for longer periods.

Posture is over rated.
Decoding the Chemistry of Fear(2018)
From the preface: Is the result of a dice roll truly random or dependent on physics: angle, velocity, surface ?
Label Studio – Free multi-type ML data labeling and annotation tool
I think most of these arguments are going to become moot when we really hit the recession and all these CEOs start wanting to slash their rents.
Catching a Liar (2012)
Looking at Transformer model architecture and their training schemes to understand how they think misses the point. You wouldn't gain insight into how Doom game works by just looking at schematics of an x86 processor.

These systems are Turing complete and they can execute any computation. To see what they actually execute requires looking at what happens in memory while Doom runs, in the activations when the Transformer model executes.

At this time we don't have good tools to extract the actual algorithms and submodels these LLMs execute, but there are reasons to believe there are better algorithms learned in there for example for reinforcement learning than what we have ever been able to engineer.

See for example my research: https://github.com/keskival/king-algorithm-manifesto#readme
If the “hoarded” wealth you mention is just getting plowed into assets like existing real estate and the stock market I tend to agree with you. All it serves is to drive up those asset prices, which really doesn’t seem to have much effect and is low velocity. The tax code should discourage this type of investment but actually seems to support it currently.

No more 1031 exchanges, less depreciation allowed or depreciation over some longer period, etc.

However, investment in new projects, new businesses, new building, etc is very stimulating. This is what the tax code should heavily incentivize.
Well, I didn't get any training like that when I worked there, but it was a long time ago and I don't know what they're teaching Nooglers these days.

I suppose you might be referring to diversity training, but it's not the same thing.
I guess you mean road cycling.

I would advise to get bike fitting service, it's not that expensive and will save you a lot in long term.
The article does not back that claim with a citation.

One should be active and mobile every day, in my opinion.
olav mentioned elsethread:

>And, of course, https://gpblocks.org/

which looks to be exactly what I was looking for.
Depends on the definition of simplicity. People say they want simple, but then really want easy. The most easy is always somebody doing the work for you. I got tired of hearing people mention easy when really they probably mean some combination of fearful and/or lazy, so I chose to define easiness:

https://github.com/prettydiff/wisdom/blob/master/Easiness.md

If developers really wanted simplicity or to be done with work faster they would just learn the primitives of their environment: DOM, functions, and events. Most of the frameworks have APIs that are huge, so clearly simplicity isn't what's wanted.
Frederick Matthias Alexander (of the Alexander Technique fame) used 3 mirrors to diagnose and fix his bad posture leading to vocal rsi, so I am certain that this is a great idea. It would be nice if someone came up with a more smarter solution for this.
My apologies for the confusion for the vt100 year. I should have checked instead of assuming it was a rough contemporary of ascii.

With these clarifications, I now understand your reply better, and it is indeed accurate: emojis are too limited.

However, their frequent use in text interfaces demonstrate the need to transmit more information density that regular text can carry.

Personally, in terminals I suggest the use of sixels, since they work well enough.

Bandwidth is never an issue for local terminals: playing videos with mpv demonstrates that.
As a person with ADHD, I hope this misrepresentation does not become a common saying.
What do they stand to lose? Cushy industry jobs.
What are the best noise cancelling headphones to work in cafes?

Im using Bose Quiet Comfort II and I always wish they would cancel better.
What about turning the cloud vm off except when you're actually using it?
Because the USA is a country ruled by large corporations and/or wealthy individuals, not by the people. The large corporations wants to be free to do self driving experiments, so they do it.
It's not that simple unfortunately. Some jobs have onboarding, which can last for weeks or even months. While in theory you can figure out if you're being screwed by an employee during onboarding, it would make the entire process a living hell for the employee. So most of the times you go with "they're new, they're learning, let's keep them for X months". If the person decides to slack it off after onboarding than you've just given someone free money for nothing.

Also firing people is not easy everywhere. In EU this is a complex process that can involve unions, trainings etc. While it's mostly a ton of paperwork that you just do it just adds up to spending money on a person who didn't want to work there anyway.
Wish we could see the control center video of the team when this was confirmed.
When Driving, Tires Emit Pollution. and EVs Make the Problem Worse

https://news.ycombinator.com/item?id=32689058
1 day ago: Stuck antenna freed on Jupiter-bound spacecraft https://news.ycombinator.com/item?id=35924758
You're positing this with way too much confidence, like GPT. We absolutely do not understand what thinking is. As far as I'm concerned, we are at least self-correcting, conscious, aware statistical predictors.

It's not only prediction either. Some of it is direct response or autonomous behavior (your heart doesn't beat because it tries to predict something).
> 2. Stuck in traffic. If you are stuck in grid lock, that will cut in range, there have been cases were gridlock could last hours. Granted maybe EV stop power usage in this case. But under very hot or cold weather, you will lose AC and Heat. So if you have health concerns, TFB.

EV energy usage is linear with speed. The slower you go, the longer the range.

This part doesn't make any sense unless you have something specific to share.
dXX!
Anyone know if these are prone to creaking? I've had to give up on otherwise great headphones because they developed a loud plastic-friction creak which I had no luck repairing. My Sennheiser HD4.50 so far seems immune to that, though has some drawbacks.
You tried to help a sex worker with chatGPT? Care to explain more on this use case lol? Curious minds want to know.
I felt the same way about the article. Large amounts of conspiratorial conjecture presented, little to show for it.
They already have a TWS set. Not repairable sadly

https://shop.fairphone.com/en/true-wireless-stereo-earbuds
Most experiments in science rely on correlation in controlled environment. To prove something entirely true you'd have to control all variables in the universe. As for theoretical science well a lot of it is just a choice of faith. Just listened to Wolfram in his first interview with Lex Fridman, like he said some things about evolution we'll never be able to prove. He also said evolution is kind of a religion itself which I'd agree with. If you can 100% invalidate some religion why should it change? What's the purpose for it to exist - to satisfy some spiritual need like any other material need? The pupose of church was to hold the truth in it's absolute form. If that's not the case you're merely a support group, a social club/community.
>> Facebook is originally PHP

> I doubt it's success was based on its tech,

It is, if it let them iterate quickly onto product market fit. Had they chosen something with the dev speed of Rust it is unlikely that they would have iterated fast enough to be successful.
Noise cancelling only really works for constant sounds (like airplane engines), not for background music/chatter.
Here's how monospace ligatures work in real life: the width of a glyph is strictly proportional to how many ASCII bytes it represents. A 1-byte glyph like `m` gets 1 cell. A 2-byte glyph like `->` gets 2 cells. A 3-byte glyph like `===` gets 3 cells.

1 ASCII byte, 1 cell. That way ligatures don't change the width of the original text. If a line used to require 42 columns, it still requires 42 columns. That's why we call them "monospace": each ASCII byte requires the exact same width, even when it's part of a ligature.

> a compacting ligature for "www" —

Is obviously out of scope. We're discussing monospace ligatures here, not compacting ones.
>That's not what's going on. GPT4 can't know the real reason why it wrote anything.

Boy do I have news for you.

People can't recreate previous mental states, it's all plausible post-hoc rationalization.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3196841/

And the rationalizations aren't always grounded either. The brain is just fine making up completely bogus explanations you believe to be true but couldn't possibly be so.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4204522/

https://pure.uva.nl/ws/files/25987577/Split_Brain.pdf

The conscious self is at best a co-pilot. A Co-pilot that has shockingly little insight into the operations of the plane but thinks he knows much more.

Even your senses gets some pretty big post-processing by your brain you're consciously unaware of.

For example, ever wondered why the first second seems longer when you suddenly look at a clock ?

Human beings may not have the best visual acuity, but we are quite good at distinguishing colors and exceptional at processing visual information. A significant portion of our brain is dedicated to processing the visual stimuli from our binocular vision.

Nevertheless, binocular vision necessitates that both eyes focus on a single point. Our eyes can track a focused target as it moves, but they are unable to smoothly scan across our visual field. This is too difficult to process, so our eyes naturally jump from one point to another. Yet, during these jumps, known as "saccades," our brain does not even attempt to comprehend the blurry sensations that come in. In effect, you temporarily go completely blind!

However, you don't feel like you went blind, right? Your vision doesn't go black or anything, and it seems like you could see the entire time. This is because our brains fill in the lag while our eyes are moving, creating the illusion that we were seeing something instead of being blind during that time. Strangely enough, our brains fill it in with *what we see when they stop*! In other words, our brains go back and edit our memory of a split second ago to make it seem like we were looking at our new point of focus the whole time our eyes were moving to actually see it.

This phenomenon occurs when you look at the second hand of a clock. When you glance over at the clock, your brain tells you that you were looking at it for longer than you actually were, adding the time your eyes were moving but not yet seeing the clock. If the second hand was moving during this time, your brain will believe the second hand was in its new position longer than it actually was. Based on this flawed memory, it will appear as if the second hand stayed in that position for longer than a second.
The Sony XM5's are touted by most reviewers as the best for noise cancelling and calls in noisy environments, although Bose, Apple, Sennheiser etc. are right up there. Each model has it's pros and cons.
How old is that headphone? My $100 sennheiser works well for 5 years now, without any sign of battery dying... Although it does not have noise-cancelling.
This is Enterprise Standard/Plus. You could get truly unlimited storage for about $15/month. Lots of people/companies have been taking advantage of this for quite a while. Many users with 1 PB+ of data. Lots of users with hundreds of TBs.
Core and back stuff. Dead lifts, planks, rows, climbing.
‘Former pilot’ seems like a fairly irrelevant part of the resume of a human-autonomous vehicle interaction researcher with a PhD in systems engineering and a series of professorships either side of an NHTSA advisory position.
I got the alpaca 65B GGML model to run on my 64GB ram laptop. No GPU required if you can tolerate the 1 token per 3 seconds rate.
> my rescue iso is custom-made with archlive so that it supports zfs. I could probably just write it to some extra partition and boot it directly.

Interesting! Would you like to share it somewhere (or at least the build instrunctions?

It would be faster than a ubuntu live, which needs to start Gnome, while I often only need gdisk, dd, efibootmgr and zfs!
Why would the number of cars grow by 5% for the next 100 years? Currently there are 1.4 billion cars. Projections say the world population will peak at 10 billion. Even if everyone would have a car, that’s only a sevenfold increase.
RIP Metaverse, we hardly knew ye. An obituary for latest to join tech graveyard
> > How did we get to the current state of software?

> You mean how did we get to a point where :

> - I don't have to mash Ctrl+s because software crashers constantly

Office 365 would like to dissagree. Not constantly but not reliable either.

> - segfaults are not a daily occurrence

Just because Teams just dies without writing something on the console.

> - any random executable can't crash the OS (hell modern windows can survive a GPU driver crash)

Yes, but a docking station is the last straw. Power management on USB is hard.

> - I can use the internet relatively safely

Relatively

> - I don't need to restart my device after every install

But after every update ...

> etc. ?

We are living on a planet that's revolving and evolving ...