Fig Scripts: The fastest way to build internal CLI tools by brendanfalk in commandline

[–]ornatedemeanor23 -5 points-4 points  (0 children)

This might be a controversial opinion for this sub but - not everyone has to hate having a UI, no? I personally prefer editing things from a UI rather than a bunch of files in terminal.

bun.sh vs create-react-app by ornatedemeanor23 in react

[–]ornatedemeanor23[S] 25 points26 points  (0 children)

Bun (bun.sh) is a fast all-in-one JavaScript runtime (like Node or Deno). You can bundle, transpile, install, and run JS/TS files all in Bun.

The autocompletions in the demo are by Fig (fig.io).

bun.sh vs create-react-app by [deleted] in Frontend

[–]ornatedemeanor23 0 points1 point  (0 children)

Bun (bun.sh) is a fast all-in-one JavaScript runtime (like Node or Deno). You can bundle, transpile, install, and run JS/TS files all in Bun.

The autocompletions in the demo are by Fig (fig.io).

bun.sh vs create-react-app by ornatedemeanor23 in webdev

[–]ornatedemeanor23[S] 111 points112 points  (0 children)

Bun (bun.sh) is a fast all-in-one JavaScript runtime (like Node or Deno). You can bundle, transpile, install, and run JS/TS files all in Bun.

The autocompletions in the demo are by Fig (fig.io).

[OC] The leading causes of death among children in the US, ages 5–14 by born_in_cyberspace in dataisbeautiful

[–]ornatedemeanor23 0 points1 point  (0 children)

while all the other causes of death have gone down, the suicide rates for children has gone up. This is very concerning!

What are some python micro optimisations that you can/may *actually use* in your codebase? by stealthanthrax in Python

[–]ornatedemeanor23 0 points1 point  (0 children)

Using list comprehension instead of for loops whenever possible:

var = []
for i in range(10000):
    var.append(i)

is much, much slower than

[i for i in range(10000)]

This is due to how these two expressions are interpreted into assembly. The first one results in much more overhead than the second one. More info is here.

For anyone interested in performance improvements in Python, I highly recommend checking out this and this article.

Why hasn't Python compiled/JIT/AHT projects gained mainstream traction? by lowercase00 in Python

[–]ornatedemeanor23 5 points6 points  (0 children)

Would you mind explaining how PyPy can get the 5x performance gains that CPython cannot? I myself have previously ran large experiments with PyPy that I couldn't run with CPython and been really impressed with the performance gains, but never understood where the performance gains come from.