HNHacker News
TopNewBestAskShowJobs

viralpraxis

12 karma · joined May 21, 2023

[ my public key: https://keybase.io/viralpraxis; my proof: https://keybase.io/viralpraxis/sigs/_hQ2XWkUCiEn888serGHcY9YhIPIjO4EQmDD6uA8kI0 ]
submissionscomments
viralpraxis··on Show HN: Pg_disorder – shuffle or reverse unordered SELECT results
Every project I tested (mid- to large-sized) had some flaky tests caused by relying on the default row order. In my evaluation of 10 popular PG-based projects, most of them (6 or 7, although its hard to say for sure before sending patches and getting feedback) had at least one application-level bug related to this assumption. This probably isnt a very representative sample, but it at least shows that this is not a purely theoretical issue
viralpraxis··on Ruby Was Ready from the Start
I’ve seen large Ruby projects with hunders of developers working on it for >10 years with almost 100% sorbet coverage. It’s just that in Ruby you have to pay (ie spend extra time) for decent degree of type safety.
viralpraxis··on Voyager 1 is about to reach one light-day from Earth
I was always wondering if there’s some sort of limitation in science. Just like in some games you can’t fly according to the rules (science), so there’s just no way to do that without cheating. What if e.g. in 5k years we will reach the limit? Basically like after playing a couple of months in minecraft the only thing you can do is to expand
viralpraxis··on 210 IQ Is Not Enough
I don’t know, 210 is a lot. I’d expect him to solve the P =? NP problem during his morning coffe
viralpraxis··on Sampling and structured outputs in LLMs
You can specify `minimum` and `maximum` property for these fields. So this schema

  {
    "$id": "https://example.com/test.schema.json",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "Person",
    "type": "object",
    "properties": {
      "hp": {
        "type": "integer",
        "description": "HP",
        "minimum": 1,
        "maximum": 15
      }
    }
  }
is converted to this BNF-like representation:

  hp ::= ([1-9] | "1" [0-5]) space
  hp-kv ::= "\"hp\"" space ":" space hp
  root ::= "{" space  (hp-kv )? "}" space
  space ::= | " " | "\n"{1,2} [ \t]{0,20}
viralpraxis··on Geedge and MESA leak: Analyzing the great firewall’s largest document leak
I’m not a parent, so it might be I completely do not understands some important aspects of this due to lack of expirience, but I hope I’ll be more smart than my parents. It was quite easy to google things my parents were silent about, but I still remeber that feeling of guiltiness. It affected me much more than knowing what the bdsm is
viralpraxis··on We put a coding agent in a while loop
I’m sorry for an off-topic, are there any non-determenistic compilers you can name? I’d been wondering for a while if they actually exist
viralpraxis··on Replit's CEO apologizes after its AI agent wiped a company's code base
Even if that’s true, it still doesn’t mean vibe coding is safe. :P
viralpraxis··on How to create value objects in Ruby – the idiomatic way
One thing people usually do is

D = Data.define do E = new end

which is wrong since ’E‘ escapes (it becomes ´Object::E´)

also, I agree that its kinda weird to use Ractor API but for us (service object gem) it was the best way to check if an argument is immutable (via Ractor.shareable?)

viralpraxis··on Looking for a Job Is Tough
Now, imagine this situation taken to the extreme: searching for a job with relocation opportunities while residing in a country that many avoid for ethical reasons. :(
viralpraxis··on JPlag – Detecting Software Plagiarism
One of the key outcomes of my master's thesis was the development of an extendable solution for Code Clone Detection (CCD), primarily focused on code and tested with undergraduates at my university [1]. Although I didn't have time to complete the adapter for JPlag, I believe it would be highly beneficial.

Interestingly, whenever I discussed my thesis, the first reaction from others often revolved around moral concerns.

[1] https://github.com/studyfair/studyfair

viralpraxis··on Show HN: Trayce – Network tab for Docker containers
Can it be used to trace containers with «host» network driver?
viralpraxis··on Leaked admin access token to Python, PyPI, and PSF GitHub repos
Incompetence
viralpraxis··on AI-powered conversion from Enzyme to React Testing Library
Can someone elaborate if the term “AST” is used correctly in the article?

I’ve been playing with mutation-injection framework for my master’s thesis for some time. I had to use LibCST to preserve syntax information which is usually lost during AST serialization/deserialization (like whitespaces, indentation and so on). I thought that the difference between abstract and concrete trees is that it’s guaranteed CST won’t lose any information, so it can be used to specific tasks where ASTs are useless. So, did they actually use CST-based approach?

viralpraxis··on CamelCase vs underscores: Scientific showdown (2011)
I wonder if we could move from sharing original (plaintext) source code to some sort of intermediate representation (mostly like AST). So if you publish the AST anyone can “render” and modify it with his own preferences
viralpraxis··on 20 years ago Far Cry was released
Yep. You could also open in-game console and use a command to force checkpoint
viralpraxis··on Self-Printing Machine Code (2005)
Are there any non-determenistic compilers? I mean if we freeze source code and compiler flags, will binary result (compiled program) always be the same?
viralpraxis··on Ask HN: Why do half of Internet users think we are living in a simulation?
Are there any other options available? Like, what is it all if not a simulation?

Religion can be seen as a special case of God’s simulation

viralpraxis··on "Useless Ruby sugar": Argument forwarding
I’ve been using the same structure for years :)

But I prefer to replace ‘raise NotImplementedError’ with ´raise “Not Implemeneted”’ because that exception has different semantics (method unavailability on the current platform)

viralpraxis··on Alexei Navalny's lawyers are arrested
I believe it does not represent the actual state of affairs.

Firstly, many people wouldn't say they'd vote for Navalny -- that's just against the self-preservation instincts.

Secondly, there are many people who are not "in love" with Navalny, his team and personal views, but still think he'd be a much better president than Putin.

I'd personally estimate the count of people here (in Russia) that are neutral/neutral-positive/positive about Navalny at 15-25%. And much higher at hightech giants and top univesities at Moscow/Saint-Petersburg.

viralpraxis··on Ask HN: What are some of the most elegant codebases in your favorite language?
That’s simply not true. This method is monkeypatched by json gem
viralpraxis··on KeyDB – A Multithreaded Fork of Redis
Your definition does not make any sense. Imagine defining « prime numbers » as {2,3,5} set