897 karma · joined Aug 26, 2022 (4y ago) · 561 submissions
comment 7mo ago · link · parent
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
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
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
(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
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
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
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
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
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 9mo ago · link · parent
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.)