851
190
852
-7
853
113
854
7
The Unix Binary wants to be a Smalltalk Method, Not an Object (programmingmadecomplicated.wordpress.com)
855
445
submitted 7 months ago* (last edited 7 months ago) by Wazay2@sh.itjust.works to c/programming@programming.dev
856
22

Im on windows i would like to have a .exe file which is a 3d viewer, similar to blender.
Which language do i code it?
Which libraries would i need to use?
Note: when i mean creating my own 3d engine i mean that i would do myself the maths, i dont want a prebuild one Thanks

857
16
858
44
Worst of Breed software (worstofbreed.net)
859
39
Rosetta Code (rosettacode.org)

Rosetta Code is a programming chrestomathy site. The idea is to present solutions to the same task in as many different languages as possible, to demonstrate how languages are similar and different, and to aid a person with a grounding in one approach to a problem in learning another. Rosetta Code currently has 1,339 tasks, 397 draft tasks, and is aware of 984 languages, though we do not (and cannot) have solutions to every task in every language.

860
168
861
95
862
10
submitted 7 months ago* (last edited 7 months ago) by dr_robotBones@reddthat.com to c/programming@programming.dev

Is it even possible? It seems every third-party tool that did it is abandoning the feature and I can't get the deprecated but still present feature to work in Detekt or ktlint. I didn't realise the biggest challenge with Kotlin would be detecting unused import statements so I can easily remove them.

Edit: Thanks for the help everyone, but I could not get anything working so I eventually just did it manually with a little help from the android linter.

863
22
WebGL CRT Shader (blog.gingerbeardman.com)
864
14

cross-posted from: https://lemmy.ml/post/41409887

I've been building a bytecode VM in Rust and recently implemented NaN boxing for value representation. Sharing here for anyone interested.

I needed all VM values (booleans, integers, string pool indices, bytecode references) to fit in 64 bits (stack is Vec).

My implementation encodes 5 distinct types using a 3-bit tag and 32-bit payload, all within a single u64. It also has 15 unused bits, they may be used later for types expansion.

I'm using a 64-bit layout:

  • Bits 63-51: Quiet NaN signature (0x7FFC...)
  • Bits 50-18: 32-bit payload (integers, string pool indices, etc.)
  • Bits 17-3: Unused/ (15 bits)
  • Bits 2-0: 3-bit type tag

So it allows me to have 5 tagged types: TRUE_VAL, FALSE_VAL, STRING_VAL, CALLDATA_VAL, U32_VAL

865
-15
866
17
867
-7
868
122
869
-8
The grief when AI writes most of the code (blog.pragmaticengineer.com)
870
29
Software craftsmanship is dead (www.pcloadletter.dev)
871
43
872
30
873
10
The Birth & Death of JavaScript (www.destroyallsoftware.com)

This science fiction / comedy / completely serious talk traces the history of JavaScript, and programming in general, from 1995 until 2035. It's not pro- or anti-JavaScript; the language's flaws are discussed frankly, but its ultimate impact on the industry is tremendously positive.

874
389
875
37
submitted 7 months ago* (last edited 7 months ago) by codeinabox@programming.dev to c/programming@programming.dev
view more: ‹ prev next ›

Programming

28304 readers
591 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS