Dynamic Typing in Nim

2024-01-23 Thread termer
I don't remember if I implemented the negative operator, but if I did, you can

Dynamic Typing in Nim

2024-01-23 Thread Lantos
cool, can i "0" == -null Run though?

Dynamic Typing in Nim

2024-01-21 Thread ElegantBeef
Remember friends don't let friends ask a LLM solve the halting problem on the off chance Skynet frowns upon it.

Dynamic Typing in Nim

2024-01-21 Thread alexeypetrushin
I think there's lots of confusion of how the problem is formulated. This whole thing - "static vs dynamic typing" is confusing itself. It should be restated as "if correctness of program validated instantly by the compiler or not". Current compilers can't do that for some class of programs (what

Dynamic Typing in Nim

2024-01-21 Thread xigoi
Language models can’t validate anything, only speculate about it.

Dynamic Typing in Nim

2024-01-13 Thread Araq
It didn't "came back". It never went away.

Dynamic Typing in Nim

2024-01-13 Thread pietroppeter
Somewhat relevant to the discussion, a nice presentation by Richard Feldman: [Why Static Typing came back](https://youtu.be/Tml94je2edk?si=nMQfJa7_JJT4mQPF)

Dynamic Typing in Nim

2024-01-12 Thread termer
That sounds very similar to what I'd have to do for wrapping procs. Thanks for the link, I'll take a look at it

Dynamic Typing in Nim

2024-01-12 Thread nimaoth
I've done something similar for my plugin system, except with JSON. I use a macro to create a wrapper function for any nim function which then takes a JsonNode and returns a JsonNode and does the conversion. The code ain't pretty but maybe it helps: (

Dynamic Typing in Nim

2024-01-12 Thread Isofruit
This project appears to be best described as: "If 'I want to watch the world burn' were a project"

Dynamic Typing in Nim

2024-01-12 Thread Araq
Why would you want to do that though? Got some time to burn? :P

Dynamic Typing in Nim

2024-01-12 Thread termer
I spent a few hours making a library seeing how far I could push things with dynamic typing. I ended up making a type called `DynVal` that's basically a box for all primitives and ref values inheriting from RootObj. It uses converters and operator overloads to make DynVal usable in any place whe