Better HN
topnewbestaskshowjobs
Log inSign up

viralpraxis

12 karma · joined May 21, 2023 (3y ago) · 23 submissions

[ my public key: https://keybase.io/viralpraxis; my proof: https://keybase.io/viralpraxis/sigs/_hQ2XWkUCiEn888serGHcY9YhIPIjO4EQmDD6uA8kI0 ]
Submissions

comment 3mo ago · link · parent

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

2.

Show HN: Pg_disorder – shuffle or reverse unordered SELECT results(github.com ↗)

1 points · by viralpraxis · 3mo ago · 2 comments

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

I don’t know, 210 is a lot. I’d expect him to solve the P =? NP problem during his morning coffe

comment 1y ago · link · parent

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}

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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

comment 1y ago · link · parent

Even if that’s true, it still doesn’t mean vibe coding is safe. :P

comment 1y ago · link · parent

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?)

comment 2y ago · link · parent

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. :(

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Can it be used to trace containers with «host» network driver?

comment 2y ago · link · parent

Incompetence

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Yep. You could also open in-game console and use a command to force checkpoint

comment 2y ago · link · parent

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?

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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)

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

That’s simply not true. This method is monkeypatched by json gem

comment 3y ago · link · parent

Your definition does not make any sense. Imagine defining « prime numbers » as {2,3,5} set