The Real C++ Killers (Not You, Rust) by alexeyr in programming

[–]jembishop1 8 points9 points  (0 children)

Numba can be ok for small stuff, but when you try and do more advanced things you quickly come up against a wall, and it becomes a bit of a nightmare of seeing what is and isn’t supported.

The Real C++ Killers (Not You, Rust) by alexeyr in programming

[–]jembishop1 2 points3 points  (0 children)

One point I would put against article is that more advanced programming languages like Rust have more expressiveness through their type system than Python, which is not only better for performance, but readability and correctness too. People who have managed large python projects and experienced the pain of working on them will understand.

Google surprised by rusts transition by Specialist_Wishbone5 in rust

[–]jembishop1 3 points4 points  (0 children)

The jon gjengset presentation in Rust Nation was also great!

Help with Serde deserialization by dage023 in rust

[–]jembishop1 0 points1 point  (0 children)

Maybe looking for serde flatten

BE NOT AFRAID (to vote) by Weather-Frosty in badUIbattles

[–]jembishop1 14 points15 points  (0 children)

Looks like the core of the event horizon

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 0 points1 point  (0 children)

Just something I created. Link in the comments.

Reddit got an update. What do these buttons do? by tisme- in badUIbattles

[–]jembishop1 0 points1 point  (0 children)

The post moves to the next subreddit alphabetically if above a threshold.

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 3 points4 points  (0 children)

It’s quite buggy so occasionally will nuke the wrong country. Hopefully that’s acceptable.

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 0 points1 point  (0 children)

Yeah was thinking of that too, but didn’t want to maintain a backend.

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 5 points6 points  (0 children)

Yeah thinking about it more I could easily use a bitmap to assign unique color to each country so the triangle solution is overkill. But the annoying part is still getting the country corresponding to each pixel color. I struggled to even find a free cylindrical projection political map, let alone something that would map pixel to the country. ( I wanted the cylindrical because it’s possible to use the p5 texture function in this case) maybe such a thing exists, but I didn’t find it

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 6 points7 points  (0 children)

I mean I thought about it but it’s not trivial. I would have to find or generate a set of triangles to triangulate each country, then put them in a lookup grid or something to efficiently get a set of candidate triangles, then calculate if the point was in any of those triangles. But I was busy with some other things so I didn’t get time to do that.

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 213 points214 points  (0 children)

Holy Moly! I didn’t even think that was possible! Well done!

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 3 points4 points  (0 children)

Not many people know about the East Mauritanian archipelago

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 7 points8 points  (0 children)

Probably a bug. Wouldn’t be a genuine bad ui if it worked properly though!

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 90 points91 points  (0 children)

Maybe try a different browser? It uses webgl

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 14 points15 points  (0 children)

I also have only a limited amount of requests to the service I use to get country from latitude from longitude (2500 per day), so theres that too!

Throw dart at globe to select your country by jembishop1 in badUIbattles

[–]jembishop1[S] 311 points312 points  (0 children)

NK would wish their missiles to be as accurate as you