News for hackers. Stuff that matters.

sepeth

Re:Stacked PRs are now live on GitHub on Thursday July 30, 2026 @01:57PM (#49113394)
One of the nice things about jujutsu related to this is that when you update a branch, it rebases other branches started off of that branch. I often switch to jj if I want to split my work for easy reviewing, and it works great colocated with a clone created with git.
Re:Undo in Vi and Its Successors on Tuesday February 17, 2026 @10:38AM (#47048668)
I haven’t been using Emacs for a long time now, but isn’t the Emacs way better? With undo tree you don’t lose any history, but the same is true for what Emacs does by default and it is much easier to navigate the history, since every change is part of a linear history and undos and redos also get added to it.
This is why I believe GPL v3 is important.
Re:Why is it so hard to see code from 5 minutes ago? on Friday February 19, 2021 @10:36AM (#26194230)
This this this. It was the first thing I missed in Vim when I switched. You also don't lose in Vim, as it keeps it the history as a tree, but it is harder to navigate the tree than Emacs' linear history.
I tried this with VSCodium, but it doesn't work. The recommended extensions are not in open-vsx marketplace. I installed the foam extension from the VSIX file, and it asks to reload VSCodium but I don't see it in my installed extensions after.

I would love to help to get it working for VSCodium if it doesn't depend on anything VSCode specific.

I agree with the first part, but not with the second part. I believe equating John's behaviour to a chef who has told a customer off is just as distant as mine.

If I was looking exact equivalent, I would just send the same link to the same email.

I am using empathy here. I don't know you guys, you may feel ok if you get shouted when you do wrong when contributing to a project, but I would feel bad, and as a human, I don't think my feelings are not important. If it is coming from an important person like Linus Torvalds, this would hurt even more, and really I don't see anything disrespectful to anyone in John's email.

And to the people who actually help you.

Not only your users are important, people who help you are also important.

> If you ask nicely and people don't do it, or keep ignoring it then you up the tone

I am sure it can be done much better with a little effort. Being smart, or being someone who has done something important shouldn't exempt you from being nice to other people.

How? Really? Ask that to a child beaten up by their parents in the street. I am sure that child won't make the same mistake again. I am not interested about if Linus is right or wrong, many other people have done that already. I am more interested the way that he speaks. I am gonna go ahead and say it. The way he speaks in this email is ugly, wrong, and should never be encouraged. The language we use is important, even though sometimes it takes more effort, love takes effort, good things take effort, and good communication takes effort too. We should at least try to be nice. Otherwise life would be kak.
Re:IPv6 Support for EC2 Instances in Virtual Private Clouds on Friday December 02, 2016 @04:00AM (#13087167)
They are public. When you create an AWS account, you will have a default VPC (this wasn't the case with the classic EC2), and when launching an instance, if you don't specify anything else, the instance you launch will be in the default VPC.
Do you really think that it is that simple?
Re:The Math Myth on Saturday September 03, 2016 @09:04AM (#12419040)
Let's replace some of Math with dance!

https://youtu.be/iG9CE55wbtY?t=8m40s

Re:Announcing TypeScript 2.0 Beta on Monday July 11, 2016 @01:53PM (#12072887)
"Non-nullable Types"

This is the first filter I check when I am deciding to learn a programming language these days. Almost all real world code I saw have had random null checks everywhere.

Re:An Incremental Approach to Compiler Construction (2006) [pdf] on Wednesday December 23, 2015 @06:26PM (#10786273)
A bit old and it is in Pascal, but still, Let's Build a Compiler by Jack Crenshaw is also fun to read:

http://compilers.iecc.com/crenshaw/

Re:Integer overflow in glibc strncat on Wednesday December 23, 2015 @06:16AM (#10782852)
Ah sorry, I was misreading it from the beginning :(
Re:Integer overflow in glibc strncat on Tuesday December 22, 2015 @08:54PM (#10781571)
It puts zeros to unused bytes in the destination. Here's a note from its man page:

Some programmers consider strncpy() to be inefficient and error prone. If the programmer knows (i.e., includes code to test!) that the size of dest is greater than the length of src, then strcpy() can be used.

One valid (and intended) use of strncpy() is to copy a C string to a fixed-length buffer while ensuring both that the buffer is not overflowed and that unused bytes in the target buffer are zeroed out.

They are part of the GNU system.

http://www.gnu.org/help/evaluation.html

Btw, some projects are hosted on nongnu.org domain, those are not part of the GNU system.

Re:Best practices for a new Go developer on Wednesday September 02, 2015 @07:57AM (#10158593)
Not directly related, but there's one tweet I like:

"No no no no. The voice of newbies is one of your biggest assets. Why don't they understand? What is the confusion?" John Resig

https://twitter.com/jeresig/status/584030561313943552

Re:The Rise and Fall of CORBA (2006) on Monday August 31, 2015 @07:19AM (#10146290)
How CORBA compares to Apache Thrift, or Google's protobuf? or do they try to solve different things?
Re:My husband needed therapy after working for Amazon on Wednesday August 19, 2015 @07:00AM (#10084675)
> I just turned down an offer because of something like this.

One question, was this offer from amazon? I mean, are the things the guy said for amazon?

Re:Pulsar: Concurrent framework for Python on Thursday August 06, 2015 @08:06PM (#10020261)
You should use highest protocol of pickle, here are the numbers in my machine:

    In [5]: %timeit pickle.dumps(a)
    1 loops, best of 3: 724 ms per loop

    In [6]: %timeit pickle.dumps(a, protocol=pickle.HIGHEST_PROTOCOL)
    100 loops, best of 3: 12.4 ms per loop
Re:Strange C Syntax on Sunday August 02, 2015 @04:10PM (#9992220)
I also used this in a similar situation, it helped me to save a lot of memory in my skiplist implementation:

https://github.com/sepeth/python-skiplist/commit/00ae7f94246...

Redis's skiplist is also using the same feature:

https://github.com/antirez/redis/blob/unstable/src/server.h#...

Re:The 'No True Programmer' Fallacy on Saturday August 01, 2015 @05:48AM (#9986498)
> Note that you can be a programmer without ever having touched a computer, people have been coming up with algorithms and integrating them into systems for ages.

Slightly different, but the first episode of SICP videos helped me to reach the same conclusion:

https://www.youtube.com/watch?v=2Op3QLzMgSY

We can even say Newton, or Euclid wrote programs. Maybe not by sitting in front of a computer, but they described a process to calculate something.

Re:Nand to Tetris 1 on Saturday May 23, 2015 @03:41PM (#9594077)
I haven't read 'Code' yet, but I think starting from NAND gates is right; it has to stop at some level. I feel CMOS, MOSFETs, semiconductor physics.. are all interesting topics, but this book is already too broad.
Re:Virtual Structs Part 1: Where Rust’s Enum Shines on Tuesday May 05, 2015 @12:46PM (#9493469)
FP languages have algebraic data types for this. Why do they call it virtual structs? How are they different than ADTs?
Re:Can you solve the mystery of the Gold/Blue Dress? on Friday February 27, 2015 @04:33PM (#9121497)
does that mean camera have seen it as blue?
Re:Introduction to Facebook's Flux architecture on Monday February 23, 2015 @12:15PM (#9095443)
Is there a way to get rid of flux boilerplate? I don't want to write three different files (a file with actions, another file with constants, and the actual store). For example, I can achieve the same effect with just a simple array and some functions to modify it. I guess I know what the benefit of embracing flux is, but it still looks too much, and I am mostly lazy.
Re:Show HN: Smart pointers for the C programming language on Wednesday January 14, 2015 @03:40PM (#8888870)
I first thought about wrapping malloc to register all allocated data, and then free everything before exiting, but it wasn’t a satisfying solution.

Quick question, Isn't this the same with just leak all the memory that you've allocated. Because, after a process died, operating system will just take it back the memory it used.

Re:Errors are values on Tuesday January 13, 2015 @12:49AM (#8878369)
I think Peter Norvig's quote "Design patterns are bug reports against your programming language" is a perfect fit for this situation.
Re:Safe way to upload files to Dropbox from an untrusted computer on Thursday December 18, 2014 @06:51PM (#8770384)
I didn't know about SQRL, but from what I understand from the author own post on medium, this authentication idea isn't something that he invented:

https://medium.com/@frontsideair/a-summer-spent-studying-par...

Older »