Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

Starlark is for config, not scripting.


I'm not sure what you think the difference is.


You can say that for everything, after all if it's turing complete you can do anything.

But practically, the difference is intention, which drives design and ecosystem.

E.g: starlark is very oriented toward idempotence and limiting side effects to get reproducible config data. By default they discourage reading files: https://github.com/bazelbuild/bazel/issues/13300

But rhai is not particularly oriented toward config, and the doc promotes an extension to read files: https://rhai.rs/book/lib/rhai-fs.html

The tutorials, stdlib, language design anf tooling will all reflect this.

You probably don't want to use starlark to automate much action, but it will be well suited to describe states.


IIRC starlark is intentionally NOT turing complete. It doesn't allow recursion, or general loops.


And rhai is, it allows infinite loops.


Have you ever seen how Starlark is used in the real world? The rulesets for Bazel and Buck could be described as "scripting". It quite literally automates actions.

Take a look here: https://github.com/facebook/buck2-prelude

Also, you are confusing how bazel uses starlark with starlark itself. It's trivial to expose an open or read_file function.


I'm a strong proponent of using LLM and use them extensively.

But this is a fireable offense in my book.


Not the first, but the general idea that the usa behave like ignorant entitled kids with too much power is indeed very worrying for the rest of the world.


They don't know. The average american is super uneducated and can barely read a graph. Most of the ones that heard about it probaly did thanks to the netlix adaptation to the 3 body problem, but certainly not school.


Fifty-four percent of Americans now read below the 6th grade level.


> The average american is super uneducated

What makes you think this? Vibes?


Reading this feels like seing a guy getting his first car in 1920 and complaining he still has to drive it himself.


To me it's more like a guy getting his first car and complaining that the car is driving him in a direction that may or may not be correct, despite his best efforts to steer it where he wants to go. And the only way to know whether he ends up in the right place is to get out of the car, look around, and maybe ask more experienced drivers. Failing that, his only option is to get back in and hope to be luckier in the next trip.

Or he can just ditch the car and walk. Sure, it's slower and requires more effort, but he knows exactly how to do that and where it will take him.


The beer brewers in my home town used to have a self-driving horse and cart which knew the daily delivery route going by all pubs and didn't really need a human to steer it or indeed be conscious during the trip. Expectedly, the delivery guy would get drunk first thing in the morning and just get carted about collecting the money.


Pony & trap could be largely self-driving, after an initial training period. That would have been a distinct negative to "upgrading" for some, I'd imagine.


It's speed and load capacity vs self-driving.

If we could imagine wiring a pony to control a car, its brain, while good at navigation, would likely be inadequate at the speed that a car attains.


Sell that guy probably got carried home by his horse after drinking half a bottle of whiskey, so maybe he had a point.


Or maybe calling a cab and telling the cab driver each direction to get to the destination instead of the cab driver just taking you there.


It's like saying there is good and bad diseases because some solve other problems like space in nursing home.


Depends on the product being advertised. I don't see how you can compare a product that enhances someone's life to a disease.


No, it isn't.

People want to buy things, especially the ones that make their life easier, but you got to get to know them somehow, right?


Stealing is raking billions every year as well, yet I wouldn't call it productive.


Then you have to stop watching any competition of anything because the winners are always among the ones sacrifying the most.

Then stop reading about start up on HN as well.

In fact, forget about any extra ordinnary human achivement.


> Then you have to stop watching any competition of anything

Done. Easy.

> stop reading about start up on HN as well

I don’t think there the motivation is to create entertainment though. But i don’t care much about that kind of content either.

> forget about any extra ordinnary human achivement

I disagree with that. Plenty of extraordinary human achievements were created under circumstances I find acceptable to celebrate and watch.


Let's not scale mountains, explore the oceans, cross the poles, or go to space. Why be heroic when we can all hold hands and be safe.

"""They have left the regions where it is hard to live; for they need warmth. One still loveth one's neighbour and rubbeth against him; for one needeth warmth."""


> Let's not scale mountains, explore the oceans, cross the poles, or go to space. Why be heroic when we can all hold hands and be safe.

In terms of exploring the oceans my hero is Admiral Rickover and not Stockton Rush. Different kind of heroism. Not the lack of it.


Yeah, because scaling a mounting or exploring the ocean is exactly the same as "punch me in the kidney bro, it'll be funny".


no armin created rye then gave it to astral


Node hasn't solved this mess because it doesn't have the same mess.

It has a super limited compiled extensions ecosystem, plugin ecosystem and is not used as a system language in mac and linux.

And of course node is much more recent and the community less diverse.

tldr: node is playing in easy mode.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: