Комментарии:
Opa, Brasil mencionado.
ОтветитьLua best language ever ❤
ОтветитьYou broke Lua. It doesn’t use Zero because it’s meant to be a machine independent scripting language.
ОтветитьSadly I've never used Lua but, as soon as I heard "hacking it to make it better", I thought about the array thing. lol
ОтветитьRepair it, it is stoping length of table by nil
ОтветитьRawr unprotected.... I really think you should be using protection 😁
Ответитьrawr unprotected
Ответить"lua" is literally the Portuguese word for moon
ОтветитьTJ will be happy to see that the 1-based was fixed hahaha
ОтветитьU are literally the best programmer Livestreamer on yt in my opinion
ОтветитьI had to translate a lot of matlab code (that is 1-indexed just like lua) into python/numpy code. Since then I have a very solid disgust against any 1-indexed language.
Ответитьguys i think he fixed lua
Ответитьok now fix python
ОтветитьImpressed. I agree, knowing & being able to follow logic is so much more important than the actual language itself. Instead of finding int begin, end with luaK_getlabel then looping through luaK_code, I wonder if you can simply do block(ls); block(ls);
ОтветитьWhenever I used Lua, I used Luajit - what about that?
ОтветитьDo you have plans for LuaJIT?
ОтветитьLua devs should add compile time parameter to tell what the first element of array should be. So that I could make game whose scripting engine starts arrays with -2 or with 5.
Ответитьcan you do a tutorial of how to make a progeamming language in c++ im stuck
ОтветитьAnd now, think of something useful to extend the language with...
Ответить- "fixing lua"
- ruins one of the most sensical changes in coding ever done, that, for some reason, almost NOBODY thought of beforehand
I FKN LOVE THE POWER OF SIMPLICITY!!!
ОтветитьI wonder if it would have been possible to backup the lexerstate and effectively run the lexer over the double body twice to get the goto statements into the internal backpatching system.
ОтветитьYes Portuguese is Latin based, and Lua is our word for Moon yes.
It's to note that Lua (the language) was made in Brazil where Portuguese (of the Brazilian variation (duh)) is spoken. Reading the wiki tells me that there were some trade barriers on software importation which lead to its creation, also seems that Lua was preceded by a language called SOL (Simple Object Language) but in Portuguese Sol mean Sun, so Sun and Moon.
I was considering doing something similar to this for my capstone and this guy just sits down and does it in 2 hours lol. Talking the whole time as well. I spent an hour just getting to understand the parser an gave up lol
ОтветитьYou fixed Lua? Why? It's part of the experience!
ОтветитьSo… you made Lua—
ОтветитьDo you know of any resources on how to write and build a website in Lua ?🙏
ОтветитьThe Roblox people went off and wrote luau-lang which is an "improved lua". Remains to be seen if it'll gain any traction.
ОтветитьCan you hack into Rust and fix what’s wrong with it?
ОтветитьIs the code for emacs lua-mode longer than the actual lua interpreter?
ОтветитьWaited for double block inside another double block
Ответитьwhat if you jump into the double block?
or even jump into a condition or a function or a loop.
So basically goto is weird
With the complication of non-local jumps and `goto`, my first thought was to instead just transform `double` into `for i=1,2 do`, i.e. make double less a macro and more a loop so it plays nicely with the relative jumps. I probably would've done this from the start, but it's neat to see you took the code duplication approach first and found out interesting things about the byte code.
(edit: I clicked post about 5 seconds before you mentioned the easy solution was to implement it as a loop, forgive me for my hubris haha)
I write my neovim config in lua
ОтветитьI’d love to see you write an lsp for porth
ОтветитьJebated. You've actually only broken things
ОтветитьGonna take note of, Asserting dominance, when joining a new project.
ОтветитьImpressive, very nice.
Now lets see Paul Allen's fix for Javascript.
This lua-mode for emacs 💀
ОтветитьCan you work on your text editor again soon :) I really enjoyed that project.
Ответитьcan you fix python and make True -> true, and False -> false
ОтветитьMan... Цoding... what a guy!!!
ОтветитьAlmost 100k wtf
Ответить> Doesn't fucking matter so that's important
xDDDDD
Pogroming
My life