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

I can't imagine how it could work internationally, when people can literally migrate between countries and countries ain't sharing resources for free

They can? How many times have you migrated? Try going from the Middle East or Africa to any developed country.

You are joking right? There were handred of thousands of people that did this in last ten years or so to EU.

Are there any new big research/development in immutable database?

I know they are great... but i don't see many news around them


Small tips:

When LLMs try to do the wrong thing, don't correct it with new instruction. Instead, edit your last prompt and give more details there.

LLM have limited context length, and they love stuck to their previous error. Just edit the previous prompt. Don't let the failed attempt pollute your context.


I know. It was just me being too lazy to write proper prompt.

And code size thing is not fixed by better prompt.

It also likes to even ignore reasonable plan it writen itself just to add more code.


It need new annotations. (see the paragraph under "Comment-Based Syntax")

The article doesn't show any function lifetime annotations, only @safe and @unsafe.

Functions need annotations like "return value lives as long as argument 1" or "return value lives as long as both arguments are alive"


> The article doesn't show any function lifetime annotations, only @safe and @unsafe.

It does, but it's under the "External Annotations" section:

    // External annotations go in a header file
    // @external: {
    //   strlen: [safe, (const char* str) -> owned]
    //   strcpy: [unsafe, (char* dest, const char* src) -> char*]
    //   strchr: [safe, (const char* str, int c) -> const char* where str: 'a, return: 'a]
    //
    //   // Third-party libraries work the same way
    //   sqlite3_column_text: [safe, (sqlite3_stmt* stmt, int col) -> const char* where stmt: 'a, return: 'a]
    //   nlohmann::json::parse: [safe, (const string& s) -> owned json]
    // }
> The where clause specifies lifetime relationships—like where stmt: 'a, return: 'a means the returned pointer lives as long as the statement handle. This lets the analyzer catch dangling pointers from external APIs.

The GitHub repo also has an annotations guide with some more info [0]. The general syntax appears to be:

    // @lifetime: (parameters) -> return_type where constraints
[0]: https://github.com/shuaimu/rusty-cpp/blob/main/docs/annotati...

`@lifetime` seem to be what I was referring to, strange though it wasn't mentioned at all in the article.

The ones in `@external` seem to be limited to C++ definitions outside the user control.


I had assumed the lifetime syntax with the `where` clauses would not be specific to @external blocks, to be fair.

Ah, I see! Thank you!

> The frustration, for Hamkins, goes beyond mere incorrectness—it’s the nature of the interaction itself that proves problematic.

I would assume pairing LLMs with a formal proof system would help a lot. At the very least, the system can know what is incorrect, without lengthy debates, which frustrate him most.

This won't help the system discover or solve new math, but it make the experience far more endurable.


That itself may be tricky. Suppose you proof system tells that the proof is correct — how do you verify it is proof of the assertion you want, unless you have beforehand written the "test harness" by hand? At least in programming, formally checking that the code does exactly what is required is orders of magnitude harder than simply writing code that compiles.

Agree.

Let time I visit the USA, many shop don't have changes for $100 bills. I found $20 bills the easiest to use.

(I am not an American, was on a work trip)


> removing human labor from production

Karl Marx would argue this evil because this take away the value and job satisfaction from the labour.

https://en.wikipedia.org/wiki/Marx%27s_theory_of_alienation


You might notice that Karl Marx isn't exactly the pinnacle of economics.

Quoting Marx is a bit like quoting Aristotle or Ptolemy.


> In 2026 it does not.

There are no ISP providing ipv6 for home and mobile users here in hong kong


That is an unusual luxury, especially mobile providers still using IPv4.

Mobile providers have been the first and most aggressive to migrate to IPv6. Probably helped along by the cost and difficulty of running CGNATs when your network clients are constantly moving around. At least in the UK all the mobile providers are IPv6, and I think a handful are IPv6 only.


The hardware support is very likely already there.

I live in the USA and my ISP doesn't support ipv6

The same API needed for Little Snitch can be used for surveillance. See Facebook/Onavo.

I'm sure no API and only built-in control is more favorable. Digressing, built-in mixer is nice to have too.

You can't change the device class.

It would be an vulnerability on the host stack to accept that.


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

Search: