Solemarc

joined 2 years ago
[–] Solemarc 7 points 10 months ago

Mojo is a Python superset, Python is written in C therefore mojo is written in C.

I don't know what that rust library they benchmarked against is but given that they claim to have performed 50% better I would be sceptical. Given that most sources benchmark rust, C and C++ at about the same level.

[–] Solemarc 13 points 10 months ago (1 children)

Either I come up with a new project or I rewrite an old project in the new language.

I used to do those old school language tutorials where we start with how to write a variable, then how to write a function, etc. but I think that's better for complete beginners just starting out.

[–] Solemarc 16 points 11 months ago

Would it be better to use A's and B's? We could half the necessary length of a symbol by assigning a certain combination of A's and B's to a symbol. And if characters take up too much space we could use 1's and 0's instead!

[–] Solemarc 1 points 11 months ago

Your completely correct but Google also tells me that, at least in the case of Uber, it will calculate the tax for the ride and you just have to report it to the government at the end of the month. Also there are some really cheap accountants you can use over here and I'm sure they exist overseas as well, but I suppose I don't know OP's financial situation and neither of these are free.

[–] Solemarc 71 points 11 months ago (11 children)

In Australia my employer reports my income and does all the tax before I get paid. Then at tax time I go to the Aus tax office website; review it, add any claims I want to make and submit it.

This is an American solution to an American problem.

[–] Solemarc 39 points 11 months ago

I didn't know we even had dynamic compiled languages but a quick google search tells me Lisp counts. Wonder if Musk actually knew that or if this screenshot is taken mid dunning-kruger.

[–] Solemarc 2 points 11 months ago

My most loved and hated feature in PHP is associated arrays. I've seen an associated array that uses 16gb of memory before, it was as beautiful as it was horrifying.

[–] Solemarc 24 points 11 months ago

If you think this is more structured than traditional SQL, I really disagree. Is this a select * query, it's ambiguous. Also what table is being queried here there's no from or other table identifier.

[–] Solemarc 8 points 1 year ago

Ahh yes, the privacy company which required you to give them your email in order to download the browser.

[–] Solemarc 8 points 1 year ago* (last edited 1 year ago)

My brain goblin is a big fan of performance. Recently I reviewed a teammate's code. It was a small 100ish line PR and he calls the same function twice in a row with a tiny variation. My brain goblin went "you could consolidate these into one call", "since it's only one call you could inline it".

A couple hours later when he came to ask me what I'm smoking I realised my proposed solution had more LoC and was more complex to read. If we needed better performance, step 1 should've been to offload this task to an API that wasn't made with python. Not to mention the next thing this API does is string manipulation and then write to file.

[–] Solemarc 2 points 1 year ago (1 children)

Well if you can't break out of anything then I guess you will just have to return instead. I'm sure this will result in code that is much easier to read.

[–] Solemarc 9 points 1 year ago* (last edited 1 year ago) (1 children)

Most GUI libraries in rust are in some version of 0.x. this isn't like flutter or Avalonia where our GUI libraries are mature. Wasn't Iced basically a one man show before system 76 started using it for their desktop environment and made huge contributions to it?

I think for now your best bet is probably a webview framework like tauri or dioxus. I'm sure things like iced will get there. But by using webview these frameworks have offloaded a lot of dev work. They've made painting pixels on the screen someone else's job

view more: β€Ή prev next β€Ί