Lojcs

joined 2 years ago
[–] Lojcs@lemm.ee 6 points 1 month ago

Mister fantatic, iceman, spiderman, havoc, harry potter and cyclops

[–] Lojcs@lemm.ee 1 points 1 month ago (2 children)

I have no idea about c/c++ statics, does c even have statics? What kind of a scope could statics even have?

I'm very much novice myself and I never liked the idea of trusting the compiler with figuring out the correct overload and neither do I like not being able to tell which version of a function is being called at a glance. Named constructors ftw

[–] Lojcs@lemm.ee 1 points 1 month ago* (last edited 1 month ago) (4 children)

I'm assuming static members are bad because globals are bad

"[] for arrays" is because they want to reserve it for generics once <> is retired

I think the oveloading thing is about the c/cpp thing where you can define the same function multiple times in the same namespace which yeah sucks imo

[–] Lojcs@lemm.ee 4 points 1 month ago* (last edited 1 month ago)

I have and they are not addressed, that's why I commented as such. How would I know that one of the reasons you think <> are hard to read is because they are used as comparison and bitshift or that you intended () to be indexing syntactic sugar if I hadn't read them? As for the second, I didn't think how different languages managed to parse them matters as long as it doesn't impact compilation times significantly, hence my comment.

[–] Lojcs@lemm.ee 5 points 1 month ago* (last edited 1 month ago) (6 children)

Also dropping here the list of contrarian views op listed in the next article:

Language Design: Popular, but Wrong

  1. static members
  2. properties
  3. <> for generics
  4. [] for arrays
  5. Type ident instead of ident: Type
  6. having if-then-else and switch/case and a ternary operator
  7. having both modifiers and annotations
  8. async/await
  9. separate namespaces for methods and fields
  10. method overloading
  11. namespace declarations doubling as imports
  12. special syntax for casting
  13. using cast syntax for things that are not casts
  14. requiring () for methods without parameters
[–] Lojcs@lemm.ee 8 points 1 month ago* (last edited 1 month ago) (9 children)
  1. <> is hard to read for humans

Not really. <> is unusually pointy among the brackets and comparisons / bitshifts are used in different places than generics are so I've never confused them.

  1. <> is hard to parse for compilers

I guess? Does this meaningfully increase compilation times?

  1. It makes the uses of brackets confusing and inconsistent

No. A language that uses () for parameter lists, literals and indexing is much more mentally taxing to parse

[–] Lojcs@lemm.ee 27 points 1 month ago

I don't think those two facts are related? Your isp doesn't need to connect to its servers from within your local network to track your internet usage. Something else in your network must be trying to connect to that domain

[–] Lojcs@lemm.ee 3 points 1 month ago (1 children)

To 95% of all games??

[–] Lojcs@lemm.ee 4 points 1 month ago (4 children)

What am I supposed to know?

[–] Lojcs@lemm.ee 4 points 1 month ago (1 children)

Wow why is the latest ubuntu so much faster than last year's?

[–] Lojcs@lemm.ee 1 points 1 month ago

I'll bite, how do koreans keep themselves cool if they can't sweat?

[–] Lojcs@lemm.ee 14 points 1 month ago

Next you'll tell me mainstream is not niche

 
 
 
 

Getting 30-40 fps on a modern system. It's using ~30% of all CPUs but little to no GPU (although nvtop says it is using vram). It feels like it must be doing software rendering or something.. Tried both linux native and proton versions. Does anyone here have any idea how to make it perform better?

Edit: It just started working fine on the linux version.

 
 
 
 
95
Model (lemm.ee)
submitted 4 months ago* (last edited 4 months ago) by Lojcs@lemm.ee to c/196@lemmy.blahaj.zone
 

I like comparing how different formats compress images. The original is 43.08KB png. Lossless jxl is 15.87KB (lemmy won't let me upload) and best lossy is webp at 10.96KB

 
 
 
view more: ‹ prev next ›