1. 3

    I recently moved to a new place. I’m going to uproot a tree and build a raised bed in its place. Also plan to ride down to the library to pick up Ashley’s Book of Knots.

    1. 1

      Finishing up packing and getting ready to drive cross country. Moving is not fun!

      1. 1

        In 2019, though, Python 3 has finally (mostly) become the default version of the language for new Python development, and many companies and projects are using the top features of Python 3: f-strings, Path, type hints, asyncio, and, of course, Unicode rendering.

        Wait, what parts of Python 3 does Unicode rendering?

        1. 1

          str objects are unicode objects (utf-32 iirc) rather than byte strings as they were in python 2. That change was the single most painful point for my own code transition.

          1. 3

            Yeah, I know python 3 strings are unicode, but what does that have to do with rendering?

            1. 1

              Oh…. I missed the word rendering. Not sure.

            2. 2

              I believe the default is utf8.

              1. 1

                After a bit of reading it looks like you are correct. PEP393 changed it from something (utf-32?) to a flexible internal representation which defaults to utf-8.

          1. 2

            Starting a project in Rust for shits and giggles (something to keep documentation in sync with code); cleaning my apartment and deciding what I can get rid of in advance of a move I’m making in a couple of months.

            1. 3

              Writing up a presentation on using mypy to enforce types in python.

              1. 1

                For public consumption at some point? I’d love to pitch python as a safe language at my company! We are 95% modern C++.

                1. 1

                  I’ll perhaps share it here. I’d need to get my blog working again. But we’ll see.

                  What would you use python for that you currently do with C++? I always assume that if you’re using C++, performance constraints pretty much make using python (at least normal cpython without any fancy interpreter or jit compilation) impossible.

                  1. 1

                    We have an informal and cultural directive to do everything in C++ because it’s ‘safe’ (typed) and peformant. Unfortunately this gets used as a crutch, as devs assume it’ll be fast because it’s C++, not because of the design of algorithms. End result is slow, bloated, tech-debt-heavy C++ GUI apps (because verbose, coupled C++ code is harder to change than python IMO).

                    So to answer your question, we’d use python for rapid prototyping, and GUI development, and ideally C++ for the low level algorithmic stuff.

              1. 4

                I saw a talk for this at Strange Loop, and I have to say it is delicious. I can’t wait to show it to my team and put it into use next week. Maybe I’ll write my first emacs minor mode to employ it.

                1. 6

                  This does sound like a good strategy, and if someone reached out to me this way I’d definitely be happy to schedule some time. I enjoy talking shop with interesting people.

                  I would like it if this was done with less focus on career advancement, though, and more about learning from people for the sake of learning. At least personally, a career is a nice way to put food on the table, but the learning and tinkering is what really interests me.

                  1. 6

                    I also believe shifting the emphasis from career to discussing interesting things and making friends or meeting peers would improve this post. As it stands, it reads as if the primary reason a person has for reaching out to people is transactional: I’ll buy you this coffee so you can help me develop my professional chops.

                    That’s fine as far as it goes, I guess, but I personally am more likely to respond to someone who is merely interested in a topic than someone who is interested in learning enough about it to climb the ladder.

                  1. 3

                    Two and a half days of work, then heading to St Louis for Strange Loop!

                    1. -1

                      The fact that print ‘foo’ no longer works in python 3 is the most annoying change. There’s no reason for it, and almost 100% of my code would run fine on python 3 if not for it.

                      Python is so lucky they won the mindshare war. This upgrade has been a mess.

                      1. 36

                        Speaking as someone who is going through a long delayed upgrade from 2 to 3 at the moment, if print becoming a function is the biggest issue you will have, you would have no problem just running 2to3 and being done with it.

                        But print is probably not the issue. For us, it’s been the distinction between bytes and string (or, that our codebase relied on the lack of distinction in python 2).

                        1. 3

                          Ah yeah, excellent point. I’ve run into that too, especially with stdout/stdin.

                        2. 11

                          … almost 100% of my code would run fine on python 3 if not for it.

                          Then use 2to3 and continue with Python3.

                          1. 5

                            Fixing mistakes is often like that. :-/

                          1. 4

                            Gonna read through the Strange Loop program and decide which talks I wanna see next week! Also, doing a DnD one off (my first time as a DM).

                            1. 13

                              Yet, the Space Shuttle is grounded.

                              1. 1

                                I’m taking a break from programming and learning to repair stone walls which have collapsed on the edge of my garden. It’s coming along nicely. http://0x0.st/zVss.jpg

                                1. 2

                                  Excellent. I have a dream of building a series of drystack retaining walls, and then planting espaliered plants along them.

                                1. 4

                                  Flying to California for a week of camping and hanging out with old friends on the beach and in the trees.

                                  Speaking of which, any book recommendations? Genre or subject is irrelevant so long as the book is good. I just loaded Hallucinations by Sacks onto my ereader but that will probably not last the week.

                                    1. 2

                                      Thanks for the suggestions! I’ve never read Simmons, but I’ll check this out. And Vonnegut is always fun.

                                      1. 1

                                        Thanks, added to the list.

                                        1. 1

                                          This seems pretty interesting. Thanks!

                                        2. 1

                                          The Three Body Problem Trilogy. My favorite Sci-Fi series.

                                          1. 1

                                            I’ll download it and add to the list. Thanks!

                                        1. 2

                                          Going with my wife to her former workplace (a very nice seafront touristic village). She will hang out with former colleagues, I will relax reading “Deep Learning” by Goodfellow, Bengio and Courville and improving my Golang scraper.

                                          1. 1

                                            How do you like scraping in go? I have done tons of scraping with python, and I imagine (perhaps wrongly) that not having a REPL to create scrapers is pretty difficult. Of course, ease of concurrency might make up for it.

                                          1. 4
                                            1. Et cetera
                                            2. Lib, rhymes with bib.
                                            3. Care as in care free, bears.
                                            4. Like physic.
                                            5. Schema (sounds like schemer); pluralized like schemers.
                                            1. 2

                                              I would come by if I am in town.

                                              1. 4

                                                Going to seen an opera in a graveyard.

                                                1. 4

                                                  This week has been grueling so I am gonna take some time to do very little, almost nothing. Mess with plants, do some yoga, climb, cook.

                                                  1. 1

                                                    I just got an ergodox ez, and… man, I do not like the column layout.

                                                    I’m undecided on whether I should attempt to power through what feels like typing through sludge, or if I should just eat the cost of shipping it back :/

                                                    1. 3

                                                      Give it at least two weeks. It took me about that long to unlearn my bad habits from decades of typewriter-style staggering, and once you do it’s so much more comfortable.

                                                      1. 1

                                                        I might buy that, but even then, I have to/will use other, normal keyboards in the interim.

                                                        1. 5

                                                          Yeah, you should give it more time. When I first used the Atreus I was afraid my fingers would break, and was really slow. But that turned upside down when I got more comfortable with. Typing now is faster, more accurate and a lot more smooth then with the classical typewriter layout.

                                                          And surprisingly, typing on a normal keyboard is not going to much worse when you get used to ortholinear. Although, for some reason, I mix up ‘c’ and ‘v’ on regular keyboards much more often now.

                                                        2. 1

                                                          This is the thing I keep trying to do with my Ergo EZ, I will use it in bursts but then switch back to my staggered so I feel productive. I just need to be super strict for longer and completely embrace it

                                                        3. 3

                                                          It took my about six weeks to get used to the ortholinear layout on my DIY board. Now that I am used to it I much prefer it to a normal row staggered keyboard. But it was very much a slog for the first several weeks to a month.

                                                          1. 3

                                                            do some typing tutorials / games, deliberate practice

                                                            it was very uncomfortable but i got used to it very quickly with a bit of practice

                                                          1. 3

                                                            I have a coop shift, so I’ll be shelving produce and cans of food. Outside that I’ll do a bit more of the Little Schemer for my lisp study group and probably head to the plant center to pick up some things for some starts I brought back from TX.

                                                            1. 3

                                                              I think I am now bannished from the coop, but I guess it doesn’t matter since I no longer live on that side of the country. Please send my love to the produce coolers and the belt—I miss those things.

                                                              1. 3

                                                                I will say hello to the coolers and the belt!