Hacker News new | past | comments | ask | show | jobs | submit | greener_grass's comments login

Why is it so expensive?

Is it cost of production being passed on or did the marketing department decide to do some "prestige" pricing?


Batteries? Assuming a $150/kwh cost for batteries, that would be $14,700 for a 98 kwh pack, or $19,650 for a 131 kwh pack. I think the rumor is that GM is hoping to hit ~$100 for their batteries in 2025. It will be a game changer once batteries get below $50/kwh. And some Chinese batteries are getting close.

> not viable for games

> Unity devs run into

So it's viable but not perfect


I wonder if image based screen sharing (e.g. Google Meet) is the "worse is better" here?

Zed collaboration sounds great, but what about all of the other apps I use?

Image based sharing supports everything (poorly) automatically.


A bit of the beaten path, but F# with Fable is a very powerful combination.

On the server you can run ASP.Net using Giraffe, which is a Functional Programming layer with comparable performance to C#.

On the front-end, you can write React in an true Functional Programming language.

And of course you can share F# code between frontend and backend.


An architecture I've been using lately is writing a functional core in F# and importing the library in both C# API backends as well as React frontends. As you know, Fable can compile to TS which you can import into your node application.

This means that you can have a team of C# developers writing in a language they are familiar with, a team of node/TS developers writing React and a team of F# developers working on a pure functional core with all of the business logic. Write your validators in F# can you can share the same logic for a form in the UI and an API endpoint on the backend.

In my opinion having type inference, discriminated unions, computation expressions, et al., makes for a very concise and expressive way to model the core logic of an application.


The Netherlands seems like the most sensible country on earth. How did they manage it?


That changed in the last decade, among other things the population is dissatisfied with immigration.

I cannot tell you if that is justified, but I can say from personal experience that in some cases the praised Dutch directness turned to racism. Things like, people not believing that you have a phd, or refusing to take your credit card because the color of skin does not match the ethnicity of the name.



> but I can say from personal experience that in some cases the praised Dutch directness turned to racism

It always was a thin line. What has changed is that victims are now speaking up, and a silent majority realizing that brutish-directness always was a subgenre that somehow kept being taken as representative of directness.

One can be direct and courteous (and not racist), but the Netherlands (as in Holland) isn't the best place to find that.


> The Netherlands seems like the most sensible country on earth.

> population is dissatisfied with immigration.

I don't see the contradiction.


Low population and high income from natural resources.


The Netherlands has a higher population density than the US (520 people per square km vs 37) and lower GDP per capita ($62k vs $82k), so I'm not sure if that framing is exactly useful. In absolute numbers, yes, there's fewer people, but they're packed into a very small area so you have to be smart about how you do that.


Also natural resources in the Netherlands? At least 20% of the country is reclaimed land, and more than half is under high tide water levels.

I think GP confuses the Netherlands and Norway.


When it comes to resources Norway and the Netherlands are radically different. But it's in how the resources were used not in whether they existed. The Dutch had a lot of North Sea gas but they, like the UK, squandered the income from it. Norway was lucky to avoid what has become known as the Dutch disease partly because Norway was later to the party.


Squandered is a bit much be built the Delta works, among others things.

There's more than one way to invest money. Though I agree they could've put at least some of it in the stock market like Norway.


Yes, on reflection I should have tried harder to think of a somewhat less inflammatory word.


The Netherlands lives on trade. From slaves and spices to the Rotterdam port as entry to the waters of europe and Schiphol Amsterdam airport.


Yep, parsing error on my part. Too tired today. Norway also being a country that seems to do most things right.


Education.


CPS might be the underlying structure, but that doesn't mean that CPS is the interface.


Is there a variant of Prolog that is less dynamic with AoT compilation?

Imagine if you can be in "dynamic mode" where you can add rules, facts, etc. in an adhoc way.

Then, once your game is better defined, you can compile the Prolog to native code so that it is highly optimized, executed in parallel, etc. The compiler could apply all sorts of optimizations we see in commercial game engines automatically.

This compiled object could then be embedded into a game engine with native performance.

Done right, this could even outperform imperative game engines, but be very easy to debug and modify.


So much of the "magic" with Prolog and similar relational languages necessarily happens with dynamic data at runtime (especially in a game engine where entities move around, etc so the state of relations changes significantly) I'm not sure how much static you could get with it.

That said, there's plenty of research in the DB world on precompiled and JITted query execution plans. All of that would apply to a Prolog or Datalog engine as well.

Also, a personal interest of mine I keep wanting to come back to is how much one can make use of GPU and TPU hardware to accelerate the joins that go on in these systems. There are people working in this space already: https://arxiv.org/html/2311.02206v3 but I believe their emphasis is on large scale data sets (e.g. big data graphs) whereas I'm curious to see if there's a way that an approach using HW acceleration could make low latency "OLTP" type applications possible for applications like robotics/vehicle autonomy/games, using complex rule sets.

I watch my son play Dwarf Fortress and I'm like... it needs a Prolog.


The most similar thing to a "static" Prolog would be Mercury[0] or Turbo Prolog[1]. OTOH, if you want an embed-able logic programming library there is the mini/microKanren family[2].

[0] https://en.wikipedia.org/wiki/Mercury_(programming_language)

[1] https://en.wikipedia.org/wiki/Visual_Prolog

[2] https://en.wikipedia.org/wiki/MiniKanren


Some tech influencers pushed Zod - that's basically the entire story


Why would you need A/V on an air-gapped system?


I didn't expand on that but actually that system was part of a global network; entirely separate from the Internet. There was MS Outlook installed on the terminal nodes. One can see how somebody could become nervous about not having AV on the nodes and come up with a "protection" scheme like the one I described.


Air-gapped doesn't mean no data transfer. If there is data transfer, then viruses could get on it which will use up system resources.


1. Structural sharing - most data doesn't change so you create a copy that reuses much of the original structure

2. Garbage collection and lexical scopes - you clean up memory quickly and in batch

3. Compiler optimizations - you turn functional constructs into imperative ones that reuse and mutate memory at compile-time, where it is provably safe to do so

Roc Lang might interest you: https://www.youtube.com/watch?v=vzfy4EKwG_Y


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

Search: