Threads for swaits

  1. 6

    Hackers Delight is in the category of books that I’ll always keep positioned prominently on my bookshelf.

    1. 3

      I’m writing a neuroevolution framework in Rust. It’s all from scratch, down to the neurons and synapses. I achieved the first milestone the other night, it managed to evolve a XOR solving network.

      1. 1

        Neat! ;)

        1. 2

          Yep 🙂 Will try to extend it to hyperneat somewhere down the road

      1. 18

        I use Dash on macOS for offline programming language and other programming related documentation searching and browsing (see Zeal for Windows, BSD, Linux). There are lots of docsets available for download.

        1. 4

          This is what I was going to put, I use Zeal on a daily basis. I have it mapped to a key-binding so I can search documentation quickly. Once you get used to it it’s hard to go back to just regular search engines!

          1. 2

            Since we are recommending docsets’ applications, it is worth to tell about another one: Dasht.

            I went from Zeal to Dasht because I also wanted a full experience in the terminal.

            It still uses the Dash docsets and w3m to open the docsets.

            1. 2

              I also use Dash here, without even working offline.

              I find it to be like man pages but for libraries and frameworks. If I want the doc from a Flask method, I write the name and I have it, like I would with syscalls on man pages.

            1. 4

              Also see Hacker’s Delight (2e) by Henry Warren. A wonderful book.

              1. 6

                from the pijul theory page:

                Moreover, it is easy to show that Pijul implements a conflict-free replicated datatype (CRDT): indeed, we’re just adding vertices and edges to a graph, or mapping edge labels which we know exist because of dependencies. … Pijul’s datastructure models, in a conflict-free way, the conflicts that can happen over a text file

                sounds cool, but I wonder how it handles binary files and I can’t seem to find the docs for that.

                1. 4

                  From having played with the present version a little bit, my guess would be:

                  • the underlying library/model will be able to deal with binary files (and technically changes would be binary patches – replacing offset/length by offset/length)
                  • the pijul command probably isn’t aware of / doesn’t deal with binary files yet at all
                  • a naïve implementation of binary files could have changes that just say “replace complete contents by this”, which would yield a linear dependency chain of the history of the file (until you start merging, at which point you’d introduce a conflict-resovling change that chooses one of the two options)
                  1. 9

                    It does deal with binary changes, I even have a Pijul repository of music and movies on my hard drive. Obviously, this comes with some restrictions:

                    • We don’t have a good diff algorithm for binaries yet (but feel free to help us write one).
                    • Conflicts are handled poorly (conflict markers are printed to the file). We could do better, by the way, by writing different files.
                    • Pijul can’t print diffs on binary files in text mode (but that’s sort of expected, right?).
                    1. 4

                      See bsdiff1. FreeBSD does binary diffing and patching extraordinarily well. I’ve rolled my own binary diff in the past by using a rolling hash window across the two files to identify matching chunks across both. Simple and worked reasonably well. But for something proven, look at FreeBSD.

                1. 9

                  I RTFA and didn’t find any science to support the attention grabbing headline.

                  1. 3

                    Kind of wish we could rewrite the headline here to remove the clickbait.

                    1. 1

                      I think the fact that we can’t is kind of the point. You can’t judge a book by its cover, but you can judge an article by it’s headline.

                  1. 5

                    Probably gonna branch out and see if I can cook more than spaghetti, stir fry, rice and other simple things like that.

                    I’m also having trouble waking up and coffee is having little effect. I think I might be going through the periodic quarantine “hell zone”.

                    1. 3

                      Our mothership (based in Minnesota USA) gave everyone the day off on Mon to ease the pressure a bit.

                      1. 1

                        That’s awesome. What company? :-)

                      2. 3

                        I’ve had trouble with coffee recently. I normally drink it twice a day and now I’m cutting the afternoon coffee with a couple scoops of decaf. (Down from 4 cups a day.) Only having coffee once in a day every now and then helps me de-load a bit. (Though I’m not sure why that would be. I think the half life of caffeine is only a few hours.) YMMV

                        1. 2

                          Started doing the same. I cut out afternoon coffee and instead make green tea.

                          1. 2

                            If it makes you feel any better, I’ve 100% stopped caffinated coffee consumption and only drink decaf and green tea also. I feel way more consistently stable.

                            1. 1

                              Have you found a good brand of decaf? I find it generally doesn’t have as much flavor.

                              1. 3

                                Of all the ones, McDonald’s Decaf has been the best so far. Unfortunately there is not much choice here, maybe 5 brands or less total.

                                1. 1

                                  Interesting. I would not have guessed that.

                          2. 3

                            I suggest pizza, anything with beans, and wraps. Since I’ve been cooking for myself for years, you begin to see everything is the same just presented in many different ways. Every dish is essentially wheat, veggies and meat.

                            The weekly menu I’ve created is essentially this in any order:

                            • Monday: veggie-based souvlaki-based wraps (salsa, cheese, banana peppers, red onion…etc)
                            • Tuesday: rice, veggies, chicken
                            • Wednesday: chicken, mash potatoes, peas
                            • Thursday: homemade pizza base + toppings
                            • Friday: pasta (everything pre-done…it takes too many resources to create from scratch.)
                            • Saturday, Sunday: up in the air. Sunday usually something lighter.

                            Last night I took a bunch of recipes I’ve been refining on cooking-stained paper and put them into a recipes.txt, like this:

                            Pizza dough (2): 0F 0min (1 1/2c warm water * 2tbs sugar * 8g/1pkt yeast) * 5min * (2tbsp oil) * (4 1/2c flour) * 65min * (salt)

                            It makes it super easy to write, read and share. 1 line = 1 recipe. * is left-associative :)

                            It would be cool for people to share theirs online in a distributed way. Like a web ring: https://mysite.com/recipes.txt , and at the end of each recipes.txt are links to more sites.

                            1. 1
                            2. 1

                              Check out Sam the Cooking Guy on YouTube. Entertaining, lots of swearing, while cooking very simple yet delicious food. He’s inspired me to try quite a few new things and our family is enjoying mixing up the home cooking.

                            1. 3

                              Not sure if it’s your blog. If so, 19 is XIX, not IXX.

                              1. 3

                                That’s totally on me. Thank you for pointing that out!

                              1. 1

                                The really neat thing is thumbing through this on my phone and thinking “realtime, 1mm points, fluid dynamics, shadows, sorting on the GPU, yeah, that does sound pretty advanced” and then noticing it’s from 2009. If this was possible 11 years ago there must be some truly incredible stuff you can do with particles now.

                                1. 1

                                  I wonder how far we could take this with WASM, WebGPU, and WebGL.

                                1. 2

                                  Hoping to activate my first SOTA summit. Maybe grab a movie. Work on some sewing projects. And homework.

                                  Also IKEA for some shelving and hobby room organization stuff.

                                  1. 10

                                    There’s not much to it, but I like to keep it minimal: https://bejarano.io

                                    1. 4

                                      Minimal here, too: https://soc.me

                                      (Largely articles on language design.)

                                      1. 1

                                        Love your website. The keyboard section is really cool (and the XDG migration status too).

                                        1. 1

                                          Thanks!

                                      2. 4

                                        I third your minimalism: https://awalgarg.me.

                                        1. 1

                                          I like yours

                                        2. 3

                                          I love the style, reminds me of good old https://notes.torrez.org/ - a blog design I was always jealous of.

                                          1. 2

                                            I like the design - clean and straightforward. At least on mobile. Also the way you organized your sites is also efficient, I think.

                                            1. 1

                                              Thanks!

                                            2. 1

                                              This is beautiful!

                                              1. 2

                                                Thanks!

                                            1. 2

                                              I just used this to write a mission statement for the company I work for. 95% of it was written by the AI. I wish I could share but I can’t. This is flipping amazing.

                                              1. 3

                                                I think you did share, just not with us.

                                                Rad tool. Needs to be locally instanced for lots of us to put it to good use. Very nice work!

                                              1. 4

                                                All the talk of scaling on this thread and no mention of scaling developers. What happens when you go from 1 to 10 to 100 to 1000 to N developers? Admittedly not a problem everyone needs to solve, but an axis of scaling people aren’t talking about.

                                                1. 1

                                                  I’m still stuck on PeepOpen + MacVim.

                                                  The vim-native file finders are nowhere near as nice. I’ve tried pretty much all of them.

                                                  Unfortunately, PeepOpen does not work on Sierra at all.

                                                  1. 2

                                                    fzf and its associated plugin for vim probably do all you want and more. And the performance is excellent.

                                                  1. 5

                                                    I used a LackRack for a while, but the particle board the legs are made out of is pretty flimsy. Be very careful not to over tighten. And, if you need to unscrew equipment, be very careful when reusing your screw holes.

                                                    FWIW, smaller 19" equipment racks of the same size as this are not much more expensive.

                                                    1. 5

                                                      A Lack table is £5. I find it hard to believe that any 19" rack can match that, no matter how small!

                                                    1. 2

                                                      I realize this is a release/announce kind of thing, but it’s still pretty thin. I didn’t learn much about xmake from it, like, say, what xmake actually is.

                                                      1. 2

                                                        Took an extra click to get to this: http://xmake.io/

                                                      1. 25

                                                        I learned a hard lesson several years ago in dealing with a racist, misogynist, asshole of a manager, which is strongly reinforced here: HR does not exist for the benefit of employees. HR exists solely for the corporation, executives, senior management, and keeping the company out of legal trouble.

                                                        Never trust HR. That doesn’t mean you shouldn’t bring your case to them. It means when you do bring your case to them you must document everything in the process, and record what you can.

                                                        1. 3

                                                          I taught myself programming and cut my teeth on many years of Turbo Pascal. My first computer book ever was on this language. Bought for me by my Grandma while visiting her in New Orleans one weekend. I devoured the book without the luxury of a computer or compiler in front of me; I think that helped me digest it better. I wrote code on pen and paper. Many years of fantastic memories. Thanks for the article!

                                                          Also, mistagged javascript; but I’m uncertain how to properly suggest the change.