HNHacker News
TopNewBestAskShowJobs

mmmkkaaayy

38 karma · joined June 9, 2020

submissionscomments
mmmkkaaayy··on China bans for-profit school tutoring in sweeping overhaul
Am I missing something obvious? How does after school study have any connection with birth rates? Is it something along the lines of "a less educated population is more likely to have more children"?
mmmkkaaayy··on Pynguin – Generate Python unit tests automatically
There wasn't much info on the GitHub repo about how it actually works. Here's the paper from the authors: https://arxiv.org/abs/2007.14049

From what I gather from the paper, they frame the problem of test generation as a search problem. An evolutionary algorithm randomly mutates a randomly generated test suite. The evolutionary algorithm optimizes for greater branch coverage.

Excerpt from the abstract:

"Our experiments confirm that evolutionary algorithms can outperform random test generation also in the context of Python, and can even alleviate the problem of absent type information to some degree. However, our results demonstrate that dynamic typing nevertheless poses a fundamental issue for test generation, suggesting future work on integrating type inference"

mmmkkaaayy··on Launch HN: Athens Research (YC W21) – Open-Source Roam Research
Could you please share some of your experience/plans regarding implementing cross-device sync?

eg:

* Which db is the source of truth?

* How will conflicts from offline editing be handled?

* Will you be able to see edits made in realtime across the devices?

mmmkkaaayy··on How Tail Call Optimization Works
One sentence summary: "(in the x86 ISA) Tail call optimization happens when the compiler transforms a call immediately followed by a ret into a single jmp"
mmmkkaaayy··on A browser plugin for Unity
But what was the vulnerability? It's not mentioned in the post.
mmmkkaaayy··on Syntax highlighting is a waste of an information channel
If you haven't before, I'd recommending giving Intellij's semantic highlight a look: https://blog.jetbrains.com/pycharm/2017/01/make-sense-of-you...

Every variable name is assigned its own color, so you can track the data dependencies in your function using color. Similar to what the author suggests as "Type Highlighting"

Some might consider it distracting/overstimulating, but I find it both useful and it makes the code look a bit more 'artistic'.