Hacker News new | past | comments | ask | show | jobs | submit | johndubchak's comments login

I'm no linguist, but the question does seem unambiguous, or quite clear, to a reasonable observer. The context is "voting in a US election" AND the subject is "an illegal immigrant" WITH an assumption that the illegal immigrant has, in fact, illegally emigrated to the US.


After running that code on both a Windows SB3 and major souped up Lenovo running Ubuntu...I just feel inadequate.


Above anything, this shows the performance gains from 3.10 -> 3.11:

  >> python3.10 create_task_overhead.py
  100,000 tasks   185,694 tasks per/s
  200,000 tasks   165,581 tasks per/s
  300,000 tasks   170,857 tasks per/s
  400,000 tasks   159,081 tasks per/s
  500,000 tasks   162,640 tasks per/s
  600,000 tasks   158,779 tasks per/s
  700,000 tasks   161,779 tasks per/s
  800,000 tasks   179,965 tasks per/s
  900,000 tasks   160,913 tasks per/s
  1,000,000 tasks  162,767 tasks per/s

  >> python3.11 create_task_overhead.py
  100,000 tasks   289,318 tasks per/s
  200,000 tasks   265,293 tasks per/s
  300,000 tasks   266,011 tasks per/s
  400,000 tasks   259,821 tasks per/s
  500,000 tasks   251,819 tasks per/s
  600,000 tasks   267,441 tasks per/s
  700,000 tasks   251,789 tasks per/s
  800,000 tasks   254,303 tasks per/s
  900,000 tasks   249,894 tasks per/s
  1,000,000 tasks  266,581 tasks per/s


Python 3.11 running in a-Shell on an M1 iPad Pro

    Python 3.11.0 (heads/3.11-dirty:8d3dd5b9647, Dec  7 2022, 08:17:48) [Clang 14.0.0 (clang-1400.0.29.202)]
 on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    [~/Documents]$ python test.py
    100,000 tasks    127,992 tasks per/s
    200,000 tasks    115,960 tasks per/s
    300,000 tasks    117,205 tasks per/s
    400,000 tasks    113,131 tasks per/s
    500,000 tasks    109,609 tasks per/s
    600,000 tasks    116,649 tasks per/s
    700,000 tasks    110,743 tasks per/s
    800,000 tasks    111,361 tasks per/s
    900,000 tasks    109,688 tasks per/s
    1,000,000 tasks          117,064 tasks per/s


Ubuntu:

  100,000 tasks   155,257 tasks per/s
  200,000 tasks   138,569 tasks per/s
  300,000 tasks   134,779 tasks per/s
  400,000 tasks   144,371 tasks per/s
  500,000 tasks   135,672 tasks per/s
  600,000 tasks   135,299 tasks per/s
  700,000 tasks   146,456 tasks per/s
  800,000 tasks   139,192 tasks per/s


Windows SB3:

  100,000 tasks    177,778 tasks per/s
  200,000 tasks    150,588 tasks per/s
  300,000 tasks    152,381 tasks per/s
  400,000 tasks    134,031 tasks per/s
  500,000 tasks    160,804 tasks per/s
  600,000 tasks    129,293 tasks per/s


M2 Macbook Pro 16GB 16-inch 2023

100,000 tasks 184,167 tasks per/s

200,000 tasks 160,964 tasks per/s

300,000 tasks 165,278 tasks per/s

400,000 tasks 149,577 tasks per/s

500,000 tasks 160,593 tasks per/s

600,000 tasks 168,098 tasks per/s

700,000 tasks 161,837 tasks per/s

800,000 tasks 160,364 tasks per/s

900,000 tasks 149,479 tasks per/s

1,000,000 tasks 155,919 tasks per/s


Make sure you set your cpu frequency governor to "performance".

If your Linux machine is working an order of magnitude slower than you'd expect from the hardware, that's the first thing I'd check.


I love that you include the BNF-ish grammar. Grammars are so straight-forward to read, I wish my eyes didn't glaze over during those times I've tried to sit down and create one.


Adding the snake case does move it more to the Python idioms, for sure.


Cool, thanks for sharing your github link.


That doesn't only exist in Victoria and that busy-body group isn't only about building and housing. They are active against many things. I live in California and they complain about people walking down the street, water restrictions, lifting water restrictions, cleaning your driveway with water, not being able to use water, it goes on and on.

It does touch on building, but it's mostly about, "NOT IN MY BACKYARD!"


There’s a certain street in SF across from a shopping mall where there are fatal accidents involving pedestrians every year. Consequently, the city planned on building a crosswalk. Well, the NIMBYS blocked it because it would ruin their view.


+1 (I am Sisyphus!)


This is my first intro into such a thing - pretty cool...now how do I hack the kernel? LOL


It's open source -- feel free to clone from github and hack away!

Not quite sure that anything could be called a Kernel by any measure, but there's certainly a lot of stuff in there.

Oh, and I apologize in advance for your loss of brain cells. Some of that code is around seven years old.


I would agree. The saying, "Idle hands are the devils playground" can be appropriated as, "An idle mind is the fertile soil of the depressed."

Although the reality is the mind is anything but idle for those predisposed to depression. The rumination, negative thought patterns and self-critical thoughts are worse than a prison sentence of solitary confinement.

For those who may not understand this, imagine standing over a 5 year old constantly berating them, in a horrifically negative way, for every action they take, good or bad. Now imagine the effects of that over years or decades.


This cannot be overstated - the uplifting effect of the written word feels much more potent than hearing it from a friend or scouring YouTube videos.

I have found this book (https://tinyurl.com/4k27x6s9) to be a wonderful resource. I know there are many more to recommend, but I would start with the basics.

*EDIT - spelling.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: