Live data from Hacker News

What do I think about Lua after shipping a project with 60k lines of code?

blog.luden.io

21–30 of 146 posts

Re: What do I think about Lua after shipping a project with 60k lines of code?

#21
post #7
post #5

With dynamically typed languages I feel it's better to wait until you've tried to maintain the code for a while before you consider the languages effectiveness. I had to maintain a very large Lua codebase that has been active for several years. One big problem with Lua was how it will happily take more or less parameters to functions and continue to execute compared to something like Python where it is an error to pa…

> dynamically typed languages like Python or Typescript You likely mean JavaScript. Typescript is very much statically typed, unless you allow everything to be `any` and `unknown`. Typescript is mentioned in TFA as a desired (but not available) option, because of the great static typechecking support.

I guess I mean both. In that you can take something dynamically typed and add type definitions to make it more typed over time. JavaScript would not be what I'm talking about without the existence of Typescript.

Re: What do I think about Lua after shipping a project with 60k lines of code?

#22

Earlier quoted context omitted.

Last 50 years? Have you studied Software Engineering? They discuss LOC in depth and many academic papers on KLOC are in SE literature.

I can write a program that is 1,000,000 lines of code, and a program that is 200 lines of code, and to the end user they would be doing the same thing. Now, if you start establishing some rules about the type of code I'm allowed to write, then your statement becomes truer. But by no means do people actually follow that in the real world all the time.

The number was given just so we have a sense of scale of the project being talked about. Its not a competition nor are measures being made.

If you wrote a program that is 1,000,000 lines of code you could also write a blog post about your thoughts on "writing 1,000,000 lines of code".

You could also write a program that is 200 lines long and write a blog post about "writing 200 lines of code".

One is not better than the others, you are just informing your audience of the topic under discussion.

Re: What do I think about Lua after shipping a project with 60k lines of code?

#23

Earlier quoted context omitted.

Last 50 years? Have you studied Software Engineering? They discuss LOC in depth and many academic papers on KLOC are in SE literature.

I can write a program that is 1,000,000 lines of code, and a program that is 200 lines of code, and to the end user they would be doing the same thing. Now, if you start establishing some rules about the type of code I'm allowed to write, then your statement becomes truer. But by no means do people actually follow that in the real world all the time.

You can assume the measurement is “Lines of Code that matter” then.

Re: What do I think about Lua after shipping a project with 60k lines of code?

#24
post #11

Earlier quoted context omitted.

Much like C++ then — the machine code to which it translates lacks types! A TS compiler will reject an ill-typed program. You of course can just strip the type syntax and get a valid (though buggy) JavaScript code.

> Much like C++ then — the machine code to which it translates lacks types! Ehh, not exactly. Most C++ compilers won't output machine code for inputs they don't understand. Though of course, you could simply translate some C++ code yourself into machine code and then say C++ is just like TypeScript in that way. "If you turn C++ into machine code, the machine code lacks types!" "If you turn TypeScript into JavaScript,…

I would argue that machine code is typed, but this will be up to interpretation. I.e. you can add two 32 but floating point numbers or two 16 bit integers or store an 8 bit value. It's just doesn't require you to purposefully type pun in some circumstances (e.g. where floating point and integer registers are shared).

Re: What do I think about Lua after shipping a project with 60k lines of code?

#25

Earlier quoted context omitted.

Last 50 years? Have you studied Software Engineering? They discuss LOC in depth and many academic papers on KLOC are in SE literature.

I can write a program that is 1,000,000 lines of code, and a program that is 200 lines of code, and to the end user they would be doing the same thing. Now, if you start establishing some rules about the type of code I'm allowed to write, then your statement becomes truer. But by no means do people actually follow that in the real world all the time.

Sure, but, assuming you are actually only counting lines of code and not whitespace or comments, if that end user asks for a new feature, it's probably going to be a lot easier to figure out where to put it in 200 lines than in 1,000,000 lines.

Re: What do I think about Lua after shipping a project with 60k lines of code?

#29
post #10
post #5

With dynamically typed languages I feel it's better to wait until you've tried to maintain the code for a while before you consider the languages effectiveness. I had to maintain a very large Lua codebase that has been active for several years. One big problem with Lua was how it will happily take more or less parameters to functions and continue to execute compared to something like Python where it is an error to pa…

> With dynamically typed languages I feel it's better to wait until you've tried to maintain the code for a while before you consider the languages effectiveness. True for any language really. There's an entire category of blog posts: "I used language X for 2 weeks and here's my hot take". Okay, great. But what do you really know? For every language I've used for a serious amount of time I've changed opinion over tim…

This is what makes Java underrated these years. Some annoying stuff pays off over a decade several times. You can make insane complexity with ease.

Re: What do I think about Lua after shipping a project with 60k lines of code?

#30

Earlier quoted context omitted.

How do you configure awesome plugins for helix then?

Did I miss something? Plugins for helix? Since when?

Likely soon: https://github.com/helix-editor/helix/pull/8675#issuecomment...

My initial point was just that it's kind of nice to have something that's usable from the get-go. I don't miss my gigantic neovim config one bit.

Post reply on HN