Better HN
topnewbestaskshowjobs
Log inSign up

never_inline

897 karma · joined Aug 26, 2022 (4y ago) · 561 submissions

Submissions

comment 7mo ago · link · parent

Dude, that sort of transmission is only applicable to the four vedas (and even they exist in rescensions, some have later insertions eg: Maitrayani samhita, and the meter is generally lost due to language shifts). When you say "Vedic" those are the texts which count. Rāmāyana and Mahabhārata are not really "vedic" nor subject to such accurate transmission rules.

So they exist in many rescensions across India each with their own edits and interpolations. Some attempt has been made to create "critical" editions by taking the intersection of existing manuscripts but since there's no expectation of fidelity in transmission, we will never know what the original stories were.

So you can get even the western indologists to agree the battle of 10 kings mentioned in Rigveda very likely happened, and a Vasishtha and a Vishwamitra and a Trasadasyu existed in real life. However the epics leave out or conflict in many details with the aforementioned Vedic texts. Eg: a shantanu finds mention in Rigveda, a Parikshit and Janamejaya are mentioned in later samhitas. However there's no mention of pāndavas, kāuravas or a grand scale war. Neither there is a mention of a vyāsa / krishna dvaipayana in vasishtha's lineage in the accurately transmitted texts. It's very difficult to take Mahābhārata as an accurate historical document.

comment 7mo ago · link · parent

1. Is this actually based on any textual analysis or just AI generated? The popular understanding of the epic material is rather poor and the AI is stupid on it.

Eg: Indra would have a much larger role in original versions of mahābhārata and rāmāyana compared to Hindu popular conscience. In Ramayana he defeated kabandha, lent weapons to Rāma, and the hero is frequently compared to him as "Indra among men" - making him technically the most mentioned God in Valmiki's text (https://manasataramgini.wordpress.com/2017/02/12/the-ramaya%...).

In Mahabharata he fights equally with the krishna-arjuna in the burning of khandava episode until a truce is reached (and for reasons beyond the present redactions of the epic and owing to his prominence as ārya national god, the new capital of pāndavas is named.... Indraprastha!).

This kind of stuff is virtually unknown to AI, which reinforces the present pop understanding of the epics, which is to say super shallow and not very interesting.

comment 7mo ago · link · parent

What do you like so much about Kotlin type system, and document / testing of elixir?

comment 7mo ago · link · parent

Try iterm2 which has mouse reporting

comment 7mo ago · link · parent

> Murder = Bad. No disagreement across cultures.

Numbers 31.17-18

comment 7mo ago · link · parent

You might want to try this, one step ahead of Ctrl+K

Define the interface and functions and let the AI fill in the blanks.

Eg: I want XYZ class with methodFoo and methodBar which connects to APIabcd and fetch details. Define classes for response types based on API documentation at ...., use localLibraryXYZ for ABCD.

This is the way I found to work well for me. I maintain a tight grip over the architecture, even the low level architecture, and LLM writes code I can't be bothered to write.

I find tab completions very irritating. They're "almost" correct but miss some detail. I'd rather review all of that at once rather than when writing code.

comment 7mo ago · link · parent

I don't know what you meant by pausable background threads in IPython, but if anyone is trying out - I have had some success with VSCode + IPython: https://mahesh-hegde.github.io/posts/vscode-ipython-debuggin... -

(you can theoretically pass "reload": true (or similar option) in launch.json for auto reload, tho I haven't felt the need to use that in my workflows.)

comment 8mo ago · link · parent

Well, pnpm solves the storage issue, which is a more pressing reason to use it. (I don't know about deno/bun)

comment 8mo ago · link · parent

I am no web developer but whenever I built the UIs, re-rendering a page by doing some big DOM change through JS as always led to stutter. So maybe its just inefficient and can't be optimised.

comment 8mo ago · link · parent

I fix it by micromanaging it. Which class, method, function, module - I dictate the low level structure and features. I dump my all my hard earned coding opinions in a profoundly crafted markdown file.

comment 8mo ago · link · parent

Opera Mini used to load many pages in <20kb.

comment 8mo ago · link · parent

UBO also let's you limit attachment size. Eg you can configure it to block anything larger than 100KB. Not sure what it does without Content-Length header though.

comment 8mo ago · link · parent

> Unlike in (say) Python, where annotations are effectively functions wrapping the function they annotate, in java they're more akin to a customisable preprocessor.

I find that Python decorators can do as much magic as an annotation processor - due to the dynamism of Python. Annotation processors, in most cases, produce a new class based on annotations on existing class / interface. The injection of that class is done by the DI container (unless it's a standalone annotation processor like mapstruct).

> And using any modern framework relies on these a lot.

To be fair to language designers, it's hard to avoid code generators. And they're a compelling thing compared to building proxy objects / DI / decorator / dataclass etc.. kind of functionality in language and getting it wrong.

> ... then you have to dig into source to figure out

Agree. It's not a "boring technology" yet.

> For all it's called micronaut, the produced packages are pretty huge.

How huge? And jlink or graal vm? Just curious.

> A lot of this seems to be down to hibernate,

With micronaut atleast, I remember using Micronaut Data JDBC. Anything is better than hibernate.

> In general I think that serverless is such a different paradigm from a long-running server.

Agreed.

comment 8mo ago · link · parent

It was a while back (when I was a worse programmer) I found both Micronaut and Quarkus dev experience more palatable than spring.

what did you dislike? Pervasive DI? Annotations? configuration mess?

comment 8mo ago · link · parent

1. AI Slop Post

2. """You define Pydantic models for your API, then define separate ORM models for your database, then write converters between them.""" So you could've written something that let you convert between two. That would not warrant a whole new ORM.

3. """But infrastructure stuff like SQL generation, connection pooling, and row serialization is where a systems language makes sense."""

This makes no sense to me (except row serialization - maybe, but you're incurring a messagepack overhead instead). Unnecessary native dependency.

comment 8mo ago · link · parent

Which reinforces my point that LLMs are really bad at class and module level design.

comment 8mo ago · link · parent

I would suggest not delegating the LLD (class / interface level design) to the LLM. The clankeren are super bad at it. They treat everything as a disposable script.

Also document some best practices in AGENT.md or whatever it's called in your app.

Eg

    * All imports must be added on top of the file, NEVER inside the function.
    * Do not swallow exceptions unless the scenario calls for fault tolerance.
    * All functions need to have type annotations for parameters and return types.
And so on.

I almost always define the class-level design myself. In some sense I use the LLM to fill in the blanks. The design is still mine.

comment 8mo ago · link · parent

I think this is just anthropomorphism. Sub agents make sense as a context saving mechanism.

Aider did an "architect-editor" split where architect is just a "programmer" who doesn't bother about formatting the changes as diff, then a weak model converts them into diffs and they got better results with it. This is nothing like human teams though.

comment 8mo ago · link · parent

> This isn’t just academic elegance, it kept phone switches running with five nines of availability.

Hmm....

> Erlang is the strongest form of the isolation argument, and it deserves to be taken seriously, which is why what happens next matters.

OK I think I know who wrote this.

> The problem isn’t that developers write circular calls by accident. It’s that deadlock-freedom doesn’t compose.

Is there a need to regugriate it in this format? "two protocols that are individually deadlock-free can still combine to deadlock in an actor system." This is the actually meaningful part.

> Forget to set a timeout on a gen_server:call?

People have pointed out its factually wrong in the thread. Eh

> This is the discipline tax. It works when the team is experienced, the codebase is well-maintained, and the conventions are followed consistently. It erodes when any of those conditions weaken, and given enough time and enough turnover they do.

I know this is an LLM tell, but can't point out. It makes me uneasy to read this. Maybe the rule of three? Maybe the reguggeiation of a elementary SE concept in between a technical description? Maybe because it's tryhard to sound smart? All three I guess.

I could go on, but sigh, man don't use these clankers to write prose. They're like negative level gzip compression.

comment 8mo ago · link · parent

Didn't want to hear the grok thing from handle named "dyauspitr". My day is ruined.

comment 8mo ago · link · parent

* gwern

* lesswrong

comment 9mo ago · link · parent

Amazon has been quite useful for me as a single bachelor living in an Indian metropolitan city.

1. I get very useful items at very good prices, many of which I would have to wander the city for hours to find, or couldnt find at all: - Eg: I got a pair of adjustable dumbbells at <2K INR. Some of you would call it a cheap knock. But it has been super useful and I would have not bought it if it cost 8k INR. I brought a whole bosch repair toolkit at good price and it has been invaluable for fixing electric/plumbing etc.. issues. I got a high volume travel bag - I didn't even know 40L travel bags existed and wouldnt have brought one if not for amazon. I could go on.

2. Amazon Fresh is usually cheaper for groceries and maintain consistent quality compared to local supermarkets. I will also avoid the need to walk long with the grocery bag.

3. Electronics are significantly cheaper on amazon and again the need to search.

Maybe all of this can be even better as you said. But bottom line is that their operations look pretty efficient to me. Their catalogue is pretty much unmatched. (They may be losing money on retail business - but that's not my position to care as a customer. As other commenter pointed out, it may not even matter much for stock price.)

12345
19