I'll be doing a compiler demo today at 2pm PDT. Will post the link when it starts. Primary topics are the new macro system, and the new way to define iteration for custom data types. There's so much to say about the macro system that there will be a second demo later.
-
-
It looks like you have a bug in the for_expansion for Bucket_Array. The it_index always goes from 0 to n-1, even for the reverse mode. Would have expected the index to be reversed too (which the bit array iterator does!)
-
Yeah, that's on the to-do list!
End of conversation
New conversation -
-
-
Lots of good stuff, but this in particular is so simple, clear, and incredibly useful that it boggles the mind why it's not a part of more languages. Maybe in time for C++29?pic.twitter.com/cX3HobfTMl
-
1) both swift and rust have this (but in those languages it works by referring to an optional label that you put on the loop rather than a variable that you declare at the top of the loop, as in Jai) (i'm not sure it matters whether you do it the swift/rust vs the jai way...?)
-
2) "Maybe in time for C++29?" No. Please stop. C++ isn't going to get substantially better compared to the time/effort required to improve it. C++ just needs to be frozen, and people need to accept this sunk cost.
-
Yeah I meant it as a joke :)
-
sorry; poe's law applies, and i've listened to/read way too many real proposals
End of conversation
New conversation -
-
-
This is looking very promising!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Hello Jon I think it is better also to use backtick (') with defer inside the micros. 'defer = defer in the parent defer = local defer Bcz now it is very Confusion
-
Another thing, Also we can use better syntax for vars exports/imports inside the micros by replace backtik. to improve the read ability For example. -> value "this mean this micro will is useing value from its parent" <- value "... Wil Update this value. <-> value " for both"
-
my_micro :: (a: int)
#expand { \\ on top for better read ability -> foo; <- bar; <-> hao; \\ now our micro code \\ valid
\\ invalid
foo := 2
foo = 2
bar := 5 + foo
bar = hao - foo
hao = 15
// local defer
defer blabla();
// parent
<- defer goodbye();
} -
Or we can simplify the code for the compiler and humens. .. [-> foo, <- bar, <-> hao] ... Or ... -> foo, hao <- bar, hao .. Thanks.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.