726 karma · joined Aug 8, 2022 (4y ago) · 175 submissions
comment 4y ago · link · parent
It is a pretty standard and popular way of finding the size on an array. The only caveat is that the programmer really has to be sure that it really is an array and not a pointer to an array.
comment 4y ago · link · parent
123.
My Lisp Experiences and the Development of GNU Emacs(gnu.org ↗)
32 points · by ctrlmeta · 4y ago · 4 comments
124.
JSON-Lib: JSON Parser and Serializer for Common Lisp(github.com ↗)
1 points · by ctrlmeta · 4y ago · discuss
comment 4y ago · link · parent
Why not simply (nth 2 obj) which tells clearly that this is a function call that picks the 2nd element in obj and returns it?
Seriously though, arguing about syntax to criticize a language is such a trivial and banal activity that it detracts from any useful discussion about the true merits of a language, about its expressiveness, flexibility and paradigms it supports.
Syntax is superficial (and Lisp has very little of it anyway). What syntax someone likes depends on what syntax they are familiar with. I am familiar with Lisp syntax (the very little there is of it) and C, C++, Python, Java, JavaScript, Go, Rust, APL, etc. and I find Lisp syntax the most intuitive and clear. You might find the C/Java syntax clearer and more intuitive. And that is why a discussion about syntax is superficial and pointless.
Semantics and paradigms make much better topics of discussion when talking about programming languages.
comment 4y ago · link · parent
Do you code in Lisp? I do and I don't find it obfuscated at all. On the other hand I find it absolutely clear and beautiful.
car, caar, cdr, etc. are no more obfuscated than chmod, chown, cp, ls, etc. in shell. If you are unfamiliar with Lisp, sure they would seem obfuscated but so would those commands in shell to someone who has never done shell. But after using the shell for a while those commands become clear, concise and convenient. So do car, cdr, caar, etc. "cons" just constructs a cell. (cons "foo" "bar") constructs a cell with "foo" as its car (first element) and "bar" as its cdr (second element). It can't get simpler than that!
130.
Ask HN: Which OSS codebase can I learn that'll remain relevant after 20 years?
13 points · by ctrlmeta · 4y ago · 14 comments
comment 4y ago · link · parent
On one hand I see these classics being reposted again and again. But on the other hand we also see some posts marked [dupe]. What are the rules? What is allowed to stay and what is marked as [dupe]?
comment 4y ago · link · parent
Do I understand correctly that these are the events that happened:
* septicmk forked v6d-io/v6d to septicmk/v6d
* septicmk created a pull request from septicmk/v6d:main to v6d-io/v6d:main
* septicmk merged sighingnow's commit 61f3741 to septicmk/v6d:main (perhaps while updating their fork?)
* GitHub says septicmk merged commit 61f3741 to septicmk/v6d:main?
If so is that not right? They did merge a commit in their fork at septicmk/v6d:main, didn't they?
Does GitHub say anywhere that they merged commit to v6d-io/v6d:main? That would be very interesting and a real issue!
I agree the big "Merged" button on top of the pull request is very misleading, perhaps a UX bug! But no unauthorized merge actually happened here, did it?
comment 4y ago · link · parent
> OSS is supposed to be a collaborative environment
OSS is supposed to be what the OSS authors and maintainers want it to be for their project while satisfying the terms and conditions of the license they have chosen for their project. It does not have to be a collaborative environment. Yes, it will be great if it is. Many authors just don't have the time to do collaboration after they have made the initial few releases. But that does not stop others from collaborating on it or forking it and improving it.
I am sorry if this sounds cynical. That's not my intention at all. I genuinely like that the open source licenses gives a lot of rights to the user while also including disclaimers that the author is not responsible for troubles you face with the software. Far from being cynical, I find it very beautiful actually. It allows the authors to be creative and publish software when they can without worrying too much about support and maintenance. Of course it would be nice if the authors also support and maintain the software and many authors do but it is good to know that it is not necessary and the licenses say so too.
138.
The email that made me convert to Emacs(old.reddit.com ↗)
2 points · by ctrlmeta · 4y ago · discuss
140.
Ask HN: Which OSS codebase can I learn that'll remain relevant after 20 years?
4 points · by ctrlmeta · 4y ago · 3 comments
comment 4y ago · link · parent
This is a gross misunderstanding of what open source is. Please read the licenses that come with the OSS software you use. The authors and maintainers do not owe you anything beyond what the license says.
comment 4y ago · link · parent
I do not! You seem to be making too many assumptions in your responses both about the OP and the supporters of OP. No wonder you can't see how arrogant you are coming off in your replies. Sigh!
> I think we're done here.
I agree.
comment 4y ago · link · parent
So only inventing a 3D engine from scratch from your own brain is impressive? Learning from tutorials, books, papers, etc. is not?
I don't know how you learn a new skill but I learn from tutorials, books, papers, lectures, videos. It is impressive to me as long as someone can learn, apply and do something creative.
What is absolutely unimpressive is dissing on others' projects and accomplishments.
comment 4y ago · link · parent
I have never really seen the core of a piano or 3D rendering engine on stackoverflow. Even if there is one I am sure that is not how people learn writing a piano software or 3D rendering engine for themselves.
Funny you say college and internships as examples of long-term accomplishments. I find getting your hands dirty and building things (like piano or 3D rendering engine) as long term accomplishments because what you create, you understand and what you understand, truly understand, is going to stick in your brain for years much longer than what you learn in college.
comment 4y ago · link · parent
Make the strongest possible interpretation of the OP's post and you would end up commenting something insightful and kind, not something cruel under the false pretext of honesty and humility.
comment 4y ago · link · parent
The OP said - "I want to be one of the best programmers in the world, but I have a long way to go." This is humble enough for me. They may be misguided that there is such a thing as "the best programmers" but they realize that they have a long way to go to reach the state they would be happy with is humble enough for me.
Your comment, sir, on the other hand comes off as arrogant and bitter!
comment 4y ago · link · parent
comment 4y ago · link · parent
When the whole world of internet services began consolidating around the web and then later when the whole web began consolidating around a few powerful walled gardens, I saw how these trends began chipping away at our anonymity, privacy, web performance and software performance. Computers are ubiquitous but privacy is under attack. Hardware is faster but software is slower. Internet pipes are faster but websites are sluggish.
In all this turbulence I thought at least my software development tools are not affected by these terrible user-hostile trends. Emacs has become faster with faster hardware. While Vim was always fast, I am sure the Vim folks too would agree that they can now run Vim with a lot of plugins thanks to faster hardware. These editors do not do hidden telemetry. They don't add user hostile features. The core editor experience remains more or less the same year after year.
Even after all the disruption (I mean literally, disruption, not in some positive metaphorical way) in the rest of tech world, I have found consolation in my modest code editor, Emacs for me, Vim for some, other editors for other people. My code editor has always served my best interests. It helps me write code and documentation without any distractions. But when I read articles like this about VSCode and its telemetry, it really makes me anxious. Perhaps Emacs or Vim will never be afflicted by issues like this. But still ... If developer tools meant for ordinary software developers like me are going to start sneaking on my data and begin bundling user-hostile features, what hope is there for all other kind of software tools!