1. 24

This is the weekly thread to discuss what you’ve done recently and are working on this week.

Please be descriptive and don’t hesitate to ask for help, advice or other guidance.

  1.  

  2. 12

    Make Rust’s regexes faster.

    Over the long weekend, as a birthday treat to myself, I also started messing around with a multi-producer/multi-consumer queue with “select” in Rust. It’s grotesquely inefficient, but I’m more interested in the abstraction at this point (and seeing how far I can get without unsafe).

    1. 8

      Getting the MVP of Roost, my package manager and build system for Swift, ready for prime time. If Apple really is going to free Swift from the limits of Mac and iOS apps then the community will need an open, extensible platform for developing, building, and deploying Swift programs.

      1. 2

        The Venmo iOS team will love this. Do you want an intro?

        1. 1

          Sure! Would love to get other people’s input on this and make something really useable for the community.

      2. 7

        Inspired by Bunnie Huang’s DIY laptop, I am researching low-power displays in order to create a mobile device with extreme battery life.

        The best “traditional” display for this purpose is probably the Pixel Qi, originally developed for the One Laptop Per Child project. They are color TFT monitors, but can also operate in greyscale mode if you turn the backlight off. Power draw is roughly 5W with the backlight on, and 2W with it off.

        The more interesting and difficult option is to use an epaper display. Information on driving these is sparse, and the displays are becoming cheaper but are still quite expensive.

        The blog post Kindleberry Pi was the first to pique my interest in epaper displays, however repurposing a Kindle that way does not suit my needs. The Kindle is still running independently, it merely provides an SSH terminal view on top of Amazon’s software. I would prefer the epaper screen to be attached directly to my device, as the primary screen.

        I would rather avoid mucking about with waveforms and voltages to drive the epaper display manually. That leaves very few options. Some of Freescale’s i.MX line of processors have integrated “EPD” (epaper display) controllers, but I have no idea which displays they are compatible with, or how to connect them to any given Freescale board.

        If I had to purchase an epaper display right this minute, I might get an MpicoSys display with included controller. They only support 1-bit color (black or white, no greyscale), but can be driven via SPI and are the only “easy” way to get started that I’ve yet found.

        I may just wait until Freescale’s upcoming i.MX 7 line begins production in November. They’re anticipated to revolutionize the e-reader industry by implementing all your epaper controlling needs directly in hardware, including dithering, animation support, and so on.

        1. 2

          I’ve been looking for a usable 8+“ eInk-ish display for a while (another backburner project, never seem to run out of those), but nothing so far. That MpicoSys panel looks nice and SPI is pretty easy to work with. It’s a bit smaller than what I wanted but it looks to be the best I’ve seen so far.

          If you find anything bigger, I’d be keen to hear about it; I don’t mind building a controller for it.

          1. 2

            MpicoSys also has a 10.2" display, but the only supplier link that works is Densipaper, who is currently charging £298 GBP ($465 USD). You could save a little by building your own controller, but the display alone is still $385.

            On the upside, MpicoSys seems to have pretty solid documentation (PDF).

          2. 1

            This thread is perhaps as good a place as any to collate information.

            I’ve done a little more research in the past four days, for example looking into “fast mode” for the B&N Nook. I’m not sure how it works at a low level. Although I did find Java source code to one “hack” which enables the setting, it appears to just toggle a hidden option. My guess is that B&N, Amazon, and other e-reader manufacturers have experimented with this but leave it disabled and closed-source. I’m not sure of the impact on battery life, or whether it will wear out the screen.

            I did find a great blog post by another person on the quest: http://bke.ro/attempts-source-large-e-ink-screens-for-a-laptop-like-device/

            Bunnie/Xobs of the Kosagi Novena open laptop project clued me in to the fact that the iMX6 SoC present in the aforementioned device contains an EPD (Electronic Paper Display) controller. Although the pins on the chip likely aren’t broken out to the board, it gives me hope. My hope is that in the future devices such as the Raspberry Pi, CubieBoard, or other single-board computers will break out the controller to a header on the main board.

            It sounds as though there is no way (yet) for DIY makers to use an i.MX 6 to drive an epaper display. I’m still hopeful for the i.MX 7, though. God forbid I have to find a way to print my own PCB.

          3. 7

            I’m back at work(ish) two weeks after the baby was born. Right now, I’m catching up on what other people have done while I was running silent, and repatching some local OpenCV related stuff that broke in the last few builds. I’m also piecing together the bits for a big SP CUDA machine for the house, which means reading a lot of semi-literate, overly paginated “reviews” on “enthusiast” tech sites. It’s … a thing.

            In non-work stuff, mostly trying to sleep and spell my wife who is the one who’s really doing the work around here. I’m also writing up a (finite but unbounded) list of iTunes bugs and misfeatures, just because.

            1. 1

              congrats on the new arrival! also - here’s a bug that drove me up a wall where sync was failing to work properly. not sure if it’s still present or not. http://apple.stackexchange.com/q/162525/7087

              1. 1

                Congratulations on the new arrival!

                1. 1

                  I think I’m safe in saying that she’s better than a billion C++.

              2. 6

                Today I:

                • brought in dead sheep (and dead sheep’s smell)
                • mowed a field because it was full of weeds
                • wrote most of a submission for ICFP SRC (more of my undergrad work)

                Tomorrow: meetings in town.

                Rest of week: reading, ‘riting, not much 'rithmetic. Def some farm stuff too.

                1. 5

                  Full speed on generating really cool coasters via a genetic algorithm!

                  I’ve written basic mutation and crossover algorithms, there are two components of the project left:

                  1. Writing a good fitness function! Any coaster needs to have its fitness evaluated, so we can evolve our way toward better coasters. There are three core parts to this:

                    • Is the coaster a complete loop? Bigger penalties the further the end of the track is from the back of the station platform
                    • Can the coaster make it all the way around the track? Need to do a basic speed/acceleration approximation. Bigger penalties the more times the speed goes negative.
                    • Does the track intersect itself? Bigger penalties for more intersections.

                    After this there are more interesting pieces of evaluation, like G forces (sharp turns at high speeds make people sick), number of drops, more things that line up with the in-game rating system.

                  2. In-browser coaster viewer - I built a super basic in-browser coaster viewer using three.js, but it’s hard to see vs. a frame of reference, there’s no zoom/rotate, etc. Would be super cool if this could give you a good sense for what a coaster looks like - just needs some tweaking to get the view parameters right.

                  If you want to get involved, please get in touch via Lobsters message or at kev@inburke.com. Super cool opportunity to play around with Go code, learn a little more about genetic algorithms, etc, and most of the background dirty work has been done already. Now just need to write a good fitness/search function to find those cool coasters :)

                  1. 1

                    Any screenshots of generated coasters?

                    1. 1

                      not yet… will share when I have them!

                  2. 4

                    My company’s aiming for partial Haskellization (10% developer mind share would be success, and 20% would be fantastic) and so we have a lot of programmers who want to learn Haskell. What started as an intern class ballooned into an all-dev class, then spread beyond the company, and is now getting posted to Youtube. Slides and video for the first 2 classes are on Github here.

                    Currently, I’m trying to unbreak a broken Lisp interpreter (I tried to do something clever with macros, it didn’t work) that will be featured in next month’s lab exercises and I’m finishing up Lecture #6 (wherein I finally attack Mt. Monad).

                    1. 4

                      I haven’t chimed in on one of these in awhile.

                      I’m pleased to report I’m working more on Hython again. I’d like to clean up what I have, as it’s quite messy. Luckily, it’s not huge (interpreter portion is about 1.5 KLOC). I’m playing with using free monads to implement the interpreter guts (name resolution, exceptions, etc) and pull it apart from the evaluation of expressions and statements. How well this will go, I’m not sure. (If it goes kablam, I can always use a vanilla Interpreter monad).

                      I’m moving this week, so we’ll see what happens. I kind of enjoy having time to mull things rather than type. I expect to be quite tired; I don’t tolerate change well.

                      1. 3

                        I’ve just put together a Docker image for Google’s Deepdream. I know, I know - a gazillion people did the same thing, but mine will run it as a command-line process, instead of opening an IPython notebook.

                        1. 3

                          With Rust, I’m starting to turn my focus away from the long-form documentation, and towards the API documentation. I’ve started off with https://github.com/rust-lang/rust/pull/26828 , for example. I’m going to be knocking out bugs that were filed too, but I really want to make headway on IO, as it doesn’t have a lot and is important.

                          Over the weekend my partner and I did a ton of work on a long-term side project of mine, “Artisan Assistant.” The history is basically this: my oldest friend is married to my tattoo artist, and she does the administrative work for his tattoo shop. I saw her messing with some intense Google Docs shenanigans, and said “dear $DIETY please let me write you some software”. This ended up taking a weekend, and it’s just a basic little CRM. She started showing it to other shops, and they were like “where do I put in my credit card.”

                          So I set out to make it in Rails, and was doing it 100% open source, because there aren’t that many open source Rails apps. But, as it turns out, I’m pretty burned out on Rails, so it’s just been kinda sitting there unfinished. So this weekend, we did something drastic: ported it to Node + Ember. I’m really liking it so far, with the exception of the …. situation with documentation in the JavaScript ecosystem. It’s part culture shock and part “just the way things are,” from what I hear. Hopefully, I can handle the last bit in the next week or two and finally launch the damn thing, to keep cutting into my student loan repayments…

                          Anyway, code is all here: https://github.com/artisan-tattoo/

                          1. 1

                            Unfortunately, documentation in the JavaScript ecosystem is almost universally poor. I’ve tried to improve things here and there, but… :sigh:

                          2. 3

                            I’m working on adding Xapian bindings for Perl 6.

                            1. 3

                              I switched a project at $work over to postcss with css-modules(webpack) and cssnext, so I’m putting the finishing touches on the PR. It’s working really well so far but it’s been only a couple people touching the new code.

                              With the addition of the new CSS structure, all the pieces are in place to deploy a radically simpler component library across the company. That will be my next large piece of work.

                              I’m also building out a bot whose job is to continuously run processes against and collect stats about our code. There’s a plugin system which basically spawns new docker containers from GitHub webhooks to run against PRs and communicate the info back on the PR. This will hopefully keep our main build process lightweight while allowing us to “scale” PRs with linting, static analysis, statistics, etc

                              1. 2

                                Working on porting the object system in BEAST (music synthesis app) from GObject to IDL-based C++ classes. Quite laborious, given that an object system is ingrained so deeply into an app and library. But it’ll definitely be worth it once completed and allow new scripting facilities and a badly needed renovation of the GUI to match state of the art DAWs. I’ve summarized the beginning of the efforts in a recent DevLog: https://testbit.eu/rapicorn-idl-moving-into-beast/

                                1. 2

                                  $WORK

                                  • $CUSTOMER reported that we can do $LOTS of requests per server on $SERVICE we provide. We don’t really know. Benchmarking
                                  • Wrote a shiny new Makefile system to help out a bunch of Leiningen projects and reduce build times.

                                  $!WORK

                                  • Scored a rocking sunburn over the 4th
                                  • Grimoire #210, the version comparison lib can’t sort right
                                  • Grimoire #211, this is what I get for hard coding stuff
                                  • Continuing to work on ox, now that I’ve gotten the namespace and environment model actually work I’m trying to hammer out the evaluation semantics including deciding to what extent this is a Clojure implementation/clone or something… new.
                                  1. 2

                                    Back from a good vacation. I had an idea on how to turn my todo list web app muda into a learning tool. I will have more info once my ideas are flushed out.

                                    1. 2

                                      i’m reading about machine learning, and that’s about it.

                                      1. 2

                                        At work I’ve more or less finished up my work on the white box testing team, and have moved over to fixing up our drive management code. The person working on it before me was about 95% of the way through a complete rewrite when she left. The good news is that the new code is a lot better than the old code, so it should be pretty easy to pick up. I hope.

                                        Outside of work I want to do more with my Raspberry Pi and/or Arduino. A while back I wrote a Common Lisp wrapper around WiringPi, and tested it out with a few sensors, but after that I never did much with it. I’d like to get some motors connected and make some kind of robot.

                                        Also been reading quite a bit.

                                        1. 2

                                          This week at $work getting up to speed on some saltstack stuff, proactively fixing a ton of unit tests that are going to break with some db changes in the pipe. Can’t say I much enjoy fixing all these crufty old unit tests that have accreted over time…like some kind of sick game of Katamari Damacy.

                                          At !$work got some new hardware for the pfsense firewall. Will probably swap that out sometime this week. Migrated from ezjail to iocage this past week – need to do a bit of cleanup there yet. So far iocage is super nice.

                                          1. 2

                                            Personal:

                                            • Obtaining cover art to self-publish a Fantasy novel I wrote years ago. :-)
                                            • Getting back into writing my steampunk novel

                                            Work:

                                            • Knuckling down to get our software ready for the coming school year (We sell to schools.)
                                            • Tweaking a couple of things before publicizing our new engineering blog
                                            1. 2

                                              Finally getting around to reinstalling my $work laptop, as it got to the point of hard crashing every 30 minutes or so this morning. (It’s been a weekly occurrence for months, I’m just lazy.) Going to take the opportunity to build out my own ansible playbook for setting up my dev environment (instead of my current bash script[s]).

                                              Outside of $work, React Europe had some pretty awesome ideas. Definitely liking the sound of GraphQL, and it’s gotten me fired up again for some side projects. Also been playing with Lotusrb as an alternative to Rails/Sinatra for my own stuff. Liking what I’ve managed so far with it, now to mash it up with React on the frontend too.

                                              1. 1

                                                can you share your ansible playbook when you get it running! i have a pretty hacky bash script I use to install things, would be great to find a replacement.

                                              2. 2

                                                I’ve just started writing an interpreter for a small DSL with types and functions in Go. It will run in several steps:

                                                • Parse input file(s) using a handrolled tokenizer and goyacc.
                                                • Resolve symbols, propagate types, “compile” everything to closures.
                                                  • Also handle built-ins.
                                                • Run top-level expressions (initialization of globals etc.).
                                                • Run some functions.
                                                1. 2
                                                  • Porting a basic brochure site from ruby to javascript (express).
                                                  • Theming bootstrap for our needs.
                                                  • Dealing with timezones and localization of activity (blehghghghgh)

                                                  – Unrelated to work!+

                                                  • Removing overgrown landscaping
                                                  • Raking out debris and removing weeds
                                                  • Terraforming our side hill to make it flat

                                                  .. hopefully that gets done this week. Then I need to seed the lawn with shady grass seed.

                                                  1. 2

                                                    It’s my last week in the current workplace. Then I get one week off, and then it’s back to work in a new workplace! It’s a bit stressful. I intend to do nothing computer-related in my vacation. Except maybe reading a book about a programming language or something.

                                                    1. 1

                                                      congrats on the new job! hope it goes well! mind if I ask where you are starting?

                                                      1. 1

                                                        I’m gonna be working there and it looks awesome.

                                                    2. 2

                                                      Working on a rails app doing a thing which basically adds up to “make some things only be visible on a user-defined schedule” which is only hard because there are several people working on the same thing and we keep mis-communicating. It is not currently a fulfilling experience.

                                                      Side project: read all of the bundler code and make one minor refactoring PR, basically for no reason except there are a few easy wins and I want something positive in my life. No PR yet.

                                                      Life stuff: Helping mentor a current App Academy student who is staying on my couch (college friend, re-career-ing)