1. 3

    Really fascinating. I’d love to see inline C as a first-class feature in Python, much like inline ASM in C/C++

    1. 2

      I thought it was easy? Drop information as the program is translated into another form, basically, all compilers do this (as well as programmers as we write the code to solve a problem that’s not codified yet).

      Brainfuck wasn’t hard to invent, it’s basically just a Turing machine.

      1. 5

        Would it make sense to use concat(sha1, sha256) hash algorithm? This wouldn’t change the prefixes while improving the strength of an algorithm (by including SHA256 in a hash).

        1. 10

          No, because trees are hashes-of-hashes, so if you change anything at all about them, their hashes will change, and therefore commit hashes will change.

          1. 2

            I don’t think that a different the prefix is a problem anyway. The problem is backwards compatibility and doing a large overhaul of the entire source code, which contains the hashes as hardcoded arrays.

          1. 4

            At Carnegie Mellon University there is a similar course called Great Practical Ideas for Computer Scientists. It started as a student-taught course, but was adopted by the university after they saw how useful it was. You can find it here: https://www.cs.cmu.edu/~15131/f17/

            1. 1

              I used to love the mac keyboard. Of any non-Apple laptop it was superior. This was until I tried out a ThinkPad. Now, I honestly don’t think I could own anything other than a ThinkPad from now on for the keyboard alone.

              1. 2

                I find directions incredibly annoying while driving in areas I’m familiar with and there’s no way to stop the directions. Other things I hate:

                • I can’t compare multiple modes of transportation on the same map. E.g. driving vs. walking vs. transit.

                • There’s no way to optimize for minimizing left turns, especially onto busy streets.

                • Multi-destination route optimization is not available. E.g. I need to go to the mall, the grocery store, and the bank, what’s the sequence of destinations and route that minimizes travel time.[1]

                1. 1

                  Multi-destination route optimization is not available. E.g. I need to go to the mall, the grocery store, and the bank, what’s the sequence of destinations and route that minimizes travel time.[1]

                  There’s a name for that - vehicle routing problem which in turn is a generalisation of a travelling salesman problem.

                  Some info:

                1. 3

                  Being aligned with teammates on what you’re building is more important than building the right thing.

                  I surely don’t believe this. I’m not even sure these things can be placed in opposition (or at least tension). It makes for a nice soundbite but I don’t think it withstands scrutiny.

                  I’ve seen and worked in teams where all members were aligned and we worked really well together but, at the end the day nobody bought the product. This means we didn’t build the right thing. Now, if you take a team and then assign them to build the right thing you have something really powerful.

                  1. 4

                    I’d love to see some benchmarks comparing HTTP/1, HTTP/2 and HTTP/3. Does anyone know where I can find them?

                    1. 11

                      A visual comparison between HTTP/1 and HTTP/2 can be found here :)

                      1. 3

                        It’s only one use case though, the very that HTTP/2 tries to solve. Basically you are “benchmarking” the fact that browsers do limit TCP/HTTP connections. Now instead of creating TCP connections you add streams on top of HTTP.

                        One might ask how that would work for individual requests or for serial requests using HTTP/1.1 keep-alive or how HTTP/1.1 pipelining.

                        1. 1

                          True, if you find one I am very interested !

                    1. 5

                      The regex as a value generator, as used in this book, is really quite good. I’ve been dying to see somebody write it up and stick it on CPAN.

                      1. 3

                        Which chapter? any link?

                        1. 6

                          I think parent comment mentions the Infinite Streams chapter of the book: https://hop.perl.plover.com/book/pdf/06InfiniteStreams.pdf (see page 18 in the link).

                          1. 4

                            Section 6.5 on page 272 for those just peeking in a browser. Good stuff! Thank you.

                            1. 2

                              Thanks! much appreciated.