Better HN
topnewbestaskshowjobs
Log inSign up

devnull3

819 karma · joined Aug 2, 2021 (5y ago) · 273 submissions

Submissions

comment 2w ago · link · parent

Here is what I propose:

1. Start a new version (lets call it v2) with clean slate.

2. Retain the re-usability of v1 code in v2 in the same manner as FFI (i.e v2 code will wrap v1 code). But it will be much more smoother as it will be designed in v1 in mind.

3. Leverage AI to make the transition to write this v2 -> v1 code.

comment 3w ago · link · parent

Where Rust scores over Go is not so much on the speed but memory usage. As memory is becoming expensive (and likely to stay for sometime), the appeal for Rust increases.

The large disk space usage for Rust is much more solvable than speed-up in Rust compilation as long as crate remains the lowest compilation unit.

Barring this, even for AI based development Golang is much better language. But Rust's long term payoff is too good at this point.

comment 1mo ago · link · parent

The load shedding was a chronic problem. It lasted months if not years.

Example from year 2003 (city = Pune) [1]. Its hard to read

Excerpt:

The load shedding schedule is as follows:

  Group A: Monday 8 am to 11 am, Tuesday 11 am to 2 pm,Wednesday 3 to 6 pm, Saturday 11 am to 2 pm: Navi Peth, Gultekdi I and II, Dhankawdi, Padmawati, Old Parvati I and II, SNDT, G Block, Parsi agiary, City Apollo, Sant Tukaram, Kharalwadi. 

  Group B: Monday 11 am to 2 pm, Tuesday 3 pm to 6 pm, Friday 8 am to 11 am
[1] https://timesofindia.indiatimes.com/city/pune/mseb-announces...

comment 1mo ago · link · parent

> unplanned power cuts

Actually load shedding is planned power cuts. I have seen a schedule published in a newspaper with different regions of the city (not Delhi) and times when no electricity will be available. This is for ppl to plan their day

comment 4mo ago · link · parent

Yeah this combo fits as easily as a custom sized/fitted gloves would.

I would add a-h/templ for templates and it has Datastar support as well.

It is staggering how Datastar is not more popular.

comment 4mo ago · link · parent

Datastar has evolved into a suite of tools [1]. If anything the gap has widened.

Off-course these additional tools are not free [2].

[1] Rocket for WebComponents, Stellar for CSS

[2] Nothing wrong in charging but $349 is a tad too expensive for me. I will happily pay if it was in double digits.

comment 5mo ago · link · parent

Its fascinating to see these code conversions. I reckon its easier for LLMs because the existing code acts like a precise spec and double up as prompts which the user does not have to provide.

comment 5mo ago · link · parent

I am actually impressed by the gov.uk websites. Its minimal and just about right for its purpose.

May I ask what tech is used for mobile apps? I am guessing not a full mobile app but it uses webview.

comment 5mo ago · link · parent

How do these ideas work for domains which need encryption at rest? (e.g Healthcare, fintech, etc)?

Lack of native encryption in indexedDB is a dealbreaker for certain use-cases.

comment 8mo ago · link · parent

I wonder how many tokens are spent generating: if err != nil {return err} for large programs and over a long period of time.

May be this is good incentive to improve error handling in Go.

11.

You Were the Smart Kid, So What Went Wrong? [video](youtube.com ↗)

2 points · by devnull3 · 10mo ago · discuss

comment 11mo ago · link · parent

The points I had written are from an individual p.o.v.

I agree with what your implying, but my take is that Brits cannot (and should not) wait for Govt to come to its senses.

I am saying take inspiration from Brits of few generations back who ventured out, took calculated risks and endured sea travel for months to reach far out places to find opportunities. I mean do the modern equivalent of this. They did the grind so that the next few generation benefited.

Also, industrial revolution happened because of individual brilliance and not some govt policy. The only thing govt did was not get in the way.

Not everyone will be able to do this but sometimes it takes few people to inspire millions.

comment 11mo ago · link · parent

I am not sure I understood but the above is written from average Joe pov.

> It's not like the other European countries are any better off

Agree. As I said at the start this is applicable to other rich nations as well like the France.

In short, the UK will go down from 1st world to 2nd world (if one does not like the term: 3rd world).

comment 11mo ago · link · parent

> Accepting low wages isn't a 'sacrifice' that is eventually repaid

It is not a question of being eventually repaid. It is to survive to fight another day. There are countless examples of how first generation immigrants (across all ethnicities) have to struggle and sacrifice so that they can provide the foundation for the next generation to thrive.

This is the mode Brits will have to enter into unfortunately.

comment 11mo ago · link · parent

> is behind forever.

This completely depends on the policies of the future govt. There are many examples (like South Korea, China, India) where the current generation is much better off than previous.

Another example is cliched "American Dream". There is/was some element of truth that if you are sincere and ready to work hard you can still make it in the life. However, I will agree that this can become much harder now.

comment 11mo ago · link · parent

I had written this on SM sometime back. I realized it is applicable to other nations as well and not just Brits (like French)

-------------

UK's situation is akin to someone who used to be rich and but that wealth has been steadily eroded. But that person still insists on having the same standard of living.

There is a generation of Brits who do not know what true sustained shortage is or what rationing is. They have never experienced blackouts or lawlessness. (What is being experienced right now is just a trailer)

So there are only two options really:

1. Insist on maintaining the standard of living

2. Willfully accept to lower the standard of living

Brits want (1) but the govt doesn't have the money and yet they don't want to pay for it.

This results into govt looking for every opportunity to tax. This results into passionate discussions on whether this is fair or not.

These debates even though understandable at times loses the sight of fact that this is a result of choice (1).

As for taxes, the govt will squeeze anything which resembles a pot of money which was untouched so far. Also the expenses (due to choosing (1)) are going to rise every year.

What will be left for the govt to tax next year or 5 years from now? The govt will run out of things to tax eventually. This is clearly not sustainable.

I think also the law of averages is catching up with Brits i.e. after so many generations (since the colonial era) there will be come a few generations which will be worse off.

__What is the way forward?__

This is not a solution to the problems but to accept the hard reality that there are going to be few generations of people who will have to make peace with a lower standard of living, work hard without getting much in return, so that their grand children will enjoy a much better life.

In other words, the current generation (and maybe next) has to swallow the hard pill.

These sacrifices on families come in multiple forms like:

1. Low wages, increased work hours

2. Prepare to go abroad for work to earn a little extra, just like skilled migrants from less developed countries do.

3. Make the best with what you have

4. Living within means.

5. Become less materialistic

6. Prepared to do work which Brits did not like and passed on to the immigrants

7. Pay for healthcare

8. Substantial reduction in benefit amounts.

9. Everyone in family has to work

(This does not talk about what govt should do, which should be a different post)

comment 11mo ago · link · parent

Server Sent Events [1]

[1] https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...

comment 11mo ago · link · parent

> the model has to re-run the generation, and the client has to start receiving tokens from scratch again.

I don't understand. The payload can be designed to have sequence number. In case of reconnect, send the last known sequence number. Sounds like a application level protocol problem and not transport. Am I missing something?

The pub/sub mentioned in the article essentially does the same thing.

comment 11mo ago · link · parent

I think the cost of prototyping has definitely gone down.

Developing production grade software which you want to people to rely on and pay for it is not gone down so much. The "weak" link is still human.

Debugging complex production issues needs intimate knowledge of the code. Not gonna happen in next 3-4 years atleast.

comment 11mo ago · link · parent

I think there is a wide spectrum between small-homelab and google scale.

I was surprised how far sqlite goes with some sharding on modern SSDs for those in-between scale services/saas

comment 11mo ago · link · parent

That is exactly what I am doing with sqlite.

Have a table level seqno as monotonically increasing number stamped for every mutation. When a subscriber connects it asks for rows > Subscriber's seqno-last-handled.

comment 11mo ago · link · parent

> HTML rendering requires you to be connected to the internet

Not really. One can always generate a self-contained html. Both CSS and JS (if needed) can be inline.

comment 11mo ago · link · parent

With all the advancement in AI, shouldn't it be easier to create new fonts?

comment 11mo ago · link · parent

> which provided a link to the live version

Even if that is the case, the backend must validate.

comment 11mo ago · link · parent

To add, (in UK atleast), the parking space in some spots could be really small [1]. I have seen bulky cars parked leaving no room for neighboring slots.

[1] https://www.driving.org/uk-cars-are-outgrowing-parking-space...

comment 12mo ago · link · parent

The ability to ask "stupid" questions without feeling embarrassed is a superpower IMO.

I had the sweetest manager once. Someone stared talking about iphone and she [1] casually asked "what is iphone?" (this is after 6-7 months after iPhone was launched). Everyone's jaw dropped ... what? In which world u live in? ... to which she said with a wide smile and not an ounce of embarrassment .. "what? I don't know what iphone is?"

But she was otherwise so good in every other aspect ...

[1] She is/was mother of 4 kids and that left her very little time for anything else.

comment 1y ago · link · parent

There is a fundamental trade off between (1) Memory Safety (2) Zero cost abstraction/Performance (3) Ease of use

Rust attempts to solve this trifecta and that is where the complexity arises. If the problem at hand does not need async, then Rust has done commendable progress in dealing with the above trade-offs.

Async is in Rust can be hard because the problem it is trying to solve is hard.

All the above may be fine but when it comes to choosing the language in practice we need to think of trade-offs and guarantees that are suitable for problem at hand.

There is a reason why C++ reigns supreme in HFT and Gaming as memory safety is not super critical.

Disclaimer: I like Rust.

comment 1y ago · link · parent

This has been an old problem with Legion laptops. All this will be available free of cost to everyone! Mad respect for people who are pledging their own money and the person who fixed it.

Also, Lenovo Legion Pro 7* are not cheap (not that this would have been justified for cheap laptops).

Shame on Lenovo/<big company> who should have fixed this years ago.

comment 1y ago · link · parent

In this case, I had to search for the word died/dead/"no more" to even know who is no more.

comment 1y ago · link · parent

Meta: I think such black strip moments should be pinned at top of the hacker news while it lasts.
12345
10