Better HN
topnewbestaskshowjobs
Log inSign up

adhami

14 karma · joined Feb 9, 2023 (3y ago) · 7 submissions

https://adhami.me
Submissions

comment 4mo ago · link · parent

it's possible to render data out-of-core with XY, allowing it to render the entirety of OpenStreetMaps (that's 10,742,674,832 nodes!) with sub-second pan/zooms. it's a bit difficult to host online but you can try it out locally: https://github.com/reflex-dev/xy/tree/main/examples/osm

comment 5mo ago · link · parent

it's possible! although many of the constraints in this blog were because we wanted to work with ast module in Python. If we were allowed to create our own types, we can do so much better. I think ruff has an even faster walk by those standards.

It seems bandit is using some decent optimizations already, looking at the `@test.checks("Call")` seems like they already captured some easy wins.

The largest win honestly would be using the same ast.walk for multiple rules, which we also did, but not mentioned in the blog.

comment 5mo ago · link · parent

only because I'm too lazy to learn how to write C with Python, if anything Rust wasn't helpful with all of those unsafes

comment 2y ago · link · parent

I was wondering how 2048 would feel like if instead of powers of two, we can merge consequent fibonacci numbers. Turns out to be a rather interesting game that is fairly forgiving and grows very slowly. I found it difficult to come up with an overall strategy. I had a simple search algorithm that was able to achieve a score of exactly 66,666 (not joking). Getting a 987 block shouldn't be difficult.

You can take a look into the code here: https://github.com/adhami3310/987 (the simple search algorithm is inside the code as well)

5.

Game 987, Like 2048 but Fibonacci(987.reflex.dev ↗)

13 points · by adhami · 2y ago · 1 comment

6.

Fuiz: A free alternative to Kahoot with enhanced collaboration(fuiz.us ↗)

2 points · by adhami · 2y ago · discuss

comment 2y ago · link · parent

I'm the tech lead! Your feedback is highly appreciated :)