Hacker Newsnew | past | comments | ask | show | jobs | submit | f311a's commentslogin

Yeah, especially when a CSS library makes $1M a year. I guess they have no incentive to improve funding.

Temporary splits to run code close to the editor, tmux popups (they open lazygit or file manager on top of the current tab). Debug runs, where I want to preserve their output for some time, so I keep them in separate tabs.

Battery life and performance on MacOS

Guido gave up the idea of keeping CPython interpreter simple. It's now a complex beast with JIT and a lot of small optimizations.

It’s still pretty profitable, more than $100k a month

Revenue is not profit

With TC of $250k. There is a lot of room for optimization.

People overestimate the impact of toxicity on number of monthly questions. The initial growth was due to missing answers. After some time there is a saturation point where all basic questions are already answered and can be found via Google. If you ask them again they are marked as dups.

That would be true if no new technologies were created every year (even more often).

There are new technologies, but if you look at the most viewed questions, they will be about Python, JS, Java, C, and C++ without libraries.

You do not find the 2009 jQuery answer satisfying?

   > Strings
   >The rule of thumb for strings is the core string object takes 41 bytes. Each       additional character is 1 byte.
That's misleading. There are three types of strings in Python (1, 2 and 4 bytes per character).

https://rushter.com/blog/python-strings-and-memory/


In Go, hashmap implementation is pretty low level. Even linker carries some parts of its implementation details.


Huh, that's pretty cool. Do you happen to have any links pointing at any of that stuff?


https://github.com/golang/go/blob/7ecb1f36acab7b48d77991d58d...

Here linker relies on the current memory layout. Changing it requires updating linker code as well.


From original repository:

     Verified Compliance: Passes all 9k+ tests in the official html5lib-tests suite (used by browser vendors).
Yes, browsers do you use it. But they handle a lot of stuff differently.

    selectolax  68%  No  Very Fast  CSS selectors C-based (Lexbor). Very fast but less compliant.
The original author compares selectolax to html5lib-tests, but the reality is that when you compare selectolax to Chrome output, you get 90%+.

One of the tests:

  INPUT: <svg><foreignObject></foreignObject><title></svg>foo
It fails for selectolax:

  Expected:
  | <html>
  |   <head>
  |   <body>
  |     <svg svg>
  |       <svg foreignObject>
  |       <svg title>
  |     "foo"
  Actual:
  | <html>
  |   <head>
  |   <body>
  |     <svg>
  |       <foreignObject>
  |       <title>
  |     "foo"

But you get this in Chrome and selectolax:

    <html><head></head><body><svg><foreignObject></foreignObject><title></title></svg>foo
    </body></html>


This is a namespacing test. The reason the tag is <svg title> is that the parser is handling the title tag as the svg version of it. SVG has other handling rules, so unless the parser knows that it won't work right. I would be interesting to run the tests against Chrome as well!

You are also looking at the test format of the tag, when serialized to HTML the svg prefixes will disappear.


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

Search: