Better HN
topnewbestaskshowjobs
Log inSign up

ctrlmeta

726 karma · joined Aug 8, 2022 (4y ago) · 175 submissions

Living in a buffer
Submissions

comment 4y ago · link · parent

> It also uses sizeof to calculate the size of an array which would be good in any language except C

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

This does not look like SLIME. It seems to be just copying the text from one text buffer and pasting it to another Vim buffer which is running a REPL. That is not what SLIME is really! I can't even call this a poor imitation of SLIME because it is not SLIME in any sense of what SLIME is. There is no Swank server this connects to. There is no understanding of Lisp's s-expressions. It would happily copy any random text into any random REPL and call it job done! It is weird that they have chosen the name "SLIME" for vim-slime project when it is not SLIME in any way.

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

How do you use SLIME in Vim? Isn't SLIME written in Emacs Lisp which runs only in Emacs? Honest question how you could run an Emacs package in Vim?

comment 4y ago · link · parent

I think the parent comment is suggesting that a comparison of CL vs. Clojure is more useful than the current comparison of CL vs. Racket.

comment 4y ago · link · parent

What abomination of a syntax is that! What does [ and ] do? Why does the 2 go between the brackets? What does a[2] do? Is it making a function call? It is a statement? An expression? Or some other magic? Why deliberately create such cryptic and confusing syntax?

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

> Not deliberately obfuscated, true. But any code that contains tokens like "CAR", "caar", "CDR", "cdar", "CONS", "caddr", etc

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!

comment 4y ago · link · parent

I had not read that. Thank you for linking to it and quoting the part that answers my question.

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

Emacs with *tex-mode(s)

comment 4y ago · link · parent

What do they gain by this? Do they have any affiliate links? Adverts? Just trying to understand what their motivation behind this is.

comment 4y ago · link · parent

I see that many links were posted to like 5 times, 8 times, 11 times. What are the rules around reposts?

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

This is really valuable. Already found some good articles in the list that I have bookmarked for reading/learning in future.

comment 4y ago · link · parent

I get it that OP's projects do not stand out in your eyes. They do stand out in my eyes! They are impressive to me! I don't have to find something impressive by your standards just as you don't have to find something impressive by my standards. Good day to you too!

comment 4y ago · link · parent

Can someone explain what we are looking at? Perhaps a simple point by point explanation of what was done, what the expected behavior is and what we observe instead?

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

Since you agree that the maintainers don't owe us shit, we are on the same page. I guess I took issue with this -

> 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

comment 4y ago · link · parent

I don't understand why it needs me to install a browser extension. That's a very weird requirement to sign up for an email address? Could someone explain why an extension is needed or why it was designed like this?

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

> OSS is supposed to be a collaborative environment where everyone can contribute a little, not a “fuck you, pay me” environment.

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

> Why do you place "insightful and kind" diametrically opposed with "false" in that sentence?

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

How do you know what he used? Have you met him or talked to him?

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

Building a piano for web browser, 3D rendering engine, mapping, routing and geometry algorithms stand out pretty well IMO.

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

There is nothing honest and humbling about this feedback. It deliberately makes the poorest interpretation of the OP's post and offers a poor feedback. It speaks more about the commenter's mindset than the OP's earnest request to better themselves in the programming journey.

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

What a mean-spirited comment! The OP's accomplishments are impressive to me.

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

The last time I checked the remote startups were not even willing to pay me half of what companies with brick-and-mortar offices were willing to pay me. Sorry, I can't see how remote startups will win the top talent with such less pay!

comment 4y ago · link · parent

I can very much believe it. A CEO can, if they play their cards right, block the CTO from accomplishing what the CTO set out to do. Budget is not the problem. Approvals and alignment with board members are the problems. And if the CTO still decides to push forward, the CEO can still fire the CTO for underperformance which is exactly what you see in this story.

comment 4y ago · link · parent

I am one of those who began coding in Notepad and then quickly moved on to Vim and then to Emacs.

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!

comment 4y ago · link · parent

Why not preserve the original title?

"Smoking and other risk factors cause almost half of cancer deaths, study finds"

Accurate or not, that's the original title of the article.

123456