12 votes

What programming/technical projects have you been working on?

This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

21 comments

  1. [3]
    markh
    Link
    2019’s Advent of Code starts on December 1st! Go check it out! Advent of Code 2019

    2019’s Advent of Code starts on December 1st! Go check it out!

    Advent of Code 2019

    11 votes
    1. [2]
      HanakoIsBestGirl
      Link Parent
      Should we have a megathread for this in ~comp? I have done day 1 and I feel like a place where we can post our solutions and discuss them would be pretty cool.

      Should we have a megathread for this in ~comp? I have done day 1 and I feel like a place where we can post our solutions and discuss them would be pretty cool.

      3 votes
  2. [4]
    Bauke
    Link
    I've been toying with the idea of creating my own programming language. So far I've just been writing down thoughts and things I like and dislike about other languages as I come across them. I was...

    I've been toying with the idea of creating my own programming language. So far I've just been writing down thoughts and things I like and dislike about other languages as I come across them. I was just now thinking of a way to explain the main concept of the language that encompasses most of what I intend with it, without giving specifics (because it's still very much just a collection of bits and bobs that I'm not entirely certain on). Anyways, the simple explanation is something along the lines of:

    I want a to make a language that is legible and easily understandable with only relatively little knowledge of some higher level programming concepts/paradigms and basic syntax. Not dissimilar to what my personal flavor of pseudocode would look like.

    There's a few concrete goals I've already set for myself that I think might visualize what I mean a little more:

    Naming & Syntax

    Use full words and rarely abbreviate (ideally never). Some simple examples (yes, these are nitpicks):

    • Python's def and Go's func => My function
    • JavaScript's log() and Go's Println() => My PrintLine()
    • JavaScript's const/let/var, Go's var/:= => My define
    Syntactic Sugar

    Syntactic sugar should be kept to a minimum, and when there is some, it should never behave different than the sugar's equivalent. It should only be implemented when it can save a considerable amount of work for something relatively simple and straightforward. A good example of what I mean is increment/decrement sugar that's pretty common: index++/index-- instead of index = index + 1/index = index - 1.


    I've had this comment written for like 5 minutes and I can't come up with a good way to end it, so I'll just end it with this sentence explaining how I don't know how to end it, awesome.

    7 votes
    1. [3]
      Omnicrola
      Link Parent
      Writing your own language and compiler is one of those things I think every programmer should do at least once. Which I haven't, but it's in my to do list. For your project, what's your reason?...

      Writing your own language and compiler is one of those things I think every programmer should do at least once. Which I haven't, but it's in my to do list.

      For your project, what's your reason? Why do you want to create this language?

      5 votes
      1. [2]
        Bauke
        Link Parent
        Primarily as an opportunity to learn things like lexical analysis, parsing, and all that jazz. Programmatically understanding formatted documents and their contents, basically. Secondarily because...

        Primarily as an opportunity to learn things like lexical analysis, parsing, and all that jazz. Programmatically understanding formatted documents and their contents, basically.

        Secondarily because I wanted to also write down what I like and dislike in other languages (which I have been doing recently). I try out a new language every now and then but seemingly never get deep enough into it. And then usually because there’s just a few nitpicks that frustrate me enough, I end up going back to my tried and tested TypeScript. Which definitely has its own problems, but at least I know of them already. :P

        And tertiarily (that’s not a word but it looks funny), I’ve never really delved much into the real theory and meta of programming languages. I’d love to potentially explore something outside of OOP or functional programming (if such a thing exists). There’s a lot of interesting design problems and choices with creating a language that I’d like to explore.

        3 votes
        1. wirelyre
          Link Parent
          You might be interested in: Factor J Rebol / Red Prolog Verilog

          I’d love to potentially explore something outside of OOP or functional programming

          You might be interested in:

          7 votes
  3. escher
    Link
    My turn-based multiplayer game is coming along nicely. I have the classes now to define any possible piece's movement, attacks, and abilities, and am moving on to board representation (which will...

    My turn-based multiplayer game is coming along nicely. I have the classes now to define any possible piece's movement, attacks, and abilities, and am moving on to board representation (which will handle the actual moves based on each piece's definition).

    6 votes
  4. skybrian
    Link
    I finished the second prototype on my accordion synthesizer project. I posted a video here: https://www.reddit.com/r/Accordion/comments/e1d08r/9bass_synthesizer_demo/ Now I'm designing the third....

    I finished the second prototype on my accordion synthesizer project. I posted a video here:

    https://www.reddit.com/r/Accordion/comments/e1d08r/9bass_synthesizer_demo/

    Now I'm designing the third. I decided to try using a CAD system to draw it out first and I'm struggling with OnShape. The parametric approach to CAD is pretty neat and appeals to me as a programmer, but the order you sketch things seems to matter quite a bit. (Later drawings can only depend on earlier drawings.) If it were code I could copy and paste and then fix up dependencies.

    5 votes
  5. [5]
    Lawrencium265
    Link
    I haven't had a chance to remove the valve body from the Volvo to week. I started a 'small' project on my wife's 2009 crown Victoria cvpi (police cruiser) on Sunday and it took until today to...

    I haven't had a chance to remove the valve body from the Volvo to week. I started a 'small' project on my wife's 2009 crown Victoria cvpi (police cruiser) on Sunday and it took until today to complete. Several of the exhaust manifold studs had broken off on their own (a common issue on Ford modular v8s) so I had ordered a set of stainless steel studs and nuts and new gaskets. Well one out of the 16 studs would not come out. I broke it off even further trying to remove it and attempted to weld a nut onto the tiny stub to no avail. Fortunately there was just enough space that I was able to squeeze a pheumatic angle drill in, so I cut down several drill bits to a short enough length that I was able to drill away the old stud and retap the hole.

    5 votes
    1. [4]
      cfabbro
      Link Parent
      Just FYI, this topic is in ~comp, which is generally for computer, programming and IT related stuff... I still enjoyed reading your comment despite that though. ;)

      Just FYI, this topic is in ~comp, which is generally for computer, programming and IT related stuff... I still enjoyed reading your comment despite that though. ;)

      3 votes
      1. [2]
        Lawrencium265
        Link Parent
        I realize this but I felt like the work I do is fairly technical in nature and above what most people would diy. I'll also have you know that a valve body is a hydraulic computer that utilizes...

        I realize this but I felt like the work I do is fairly technical in nature and above what most people would diy. I'll also have you know that a valve body is a hydraulic computer that utilizes various fluid passeges to automatically change gears based on fluid pressure.

        https://cartreatments.com/wp-content/uploads/2018/03/automatic-trans-valve-body.jpg

        4 votes
        1. cfabbro
          Link Parent
          Ah, okay. Fair enough. I just wasn't sure if you were aware of which group this was in, but I definitely recognize that even though it doesn't necessarily fit the group, it's still highly...

          Ah, okay. Fair enough. I just wasn't sure if you were aware of which group this was in, but I definitely recognize that even though it doesn't necessarily fit the group, it's still highly technical work so fits the topic just fine. My BiL is a late model stock car driver, and my cousin is a crew chief for a Nascar Pinty's team, and both of them have helped me appreciate first hand just how complicated working on cars can be these days. I didn't know about the valve body working like that though... that's pretty neat!

          1 vote
      2. cmccabe
        Link Parent
        Cars are basically just computers on wheels these days anyway. :)

        Cars are basically just computers on wheels these days anyway. :)

        1 vote
  6. ehmry
    Link
    My favorite language for personal projects is Nim. The network API is absolutely terrible, because its more or less pure Berkeley sockets. I've decided to take a zero-tolerance policy toward using...

    My favorite language for personal projects is Nim. The network API is absolutely terrible, because its more or less pure Berkeley sockets. I've decided to take a zero-tolerance policy toward using sockets and implement the experimental TAPS standard from the IETF. Its a bit strange that the TAPS does not support selecting a specific a protocol like TCP or UDP, but only transport properties, and then it picks the protocol for you. Despite this, I like the API, and hope to finally try out SCTP using it. https://git.sr.ht/~ehmry/nim_taps

    4 votes
  7. BuckeyeSundae
    Link
    I'm gearing up to get started in a fairly ambitious project that I'm only partially qualified to tackle. I have no full stack experience, but I'm going to try to make an app that tries to combine...

    I'm gearing up to get started in a fairly ambitious project that I'm only partially qualified to tackle. I have no full stack experience, but I'm going to try to make an app that tries to combine task schedulers with data vis stuff to let people flexibly track goals large and small, with a bit of gamification involved to help encourage people to reward themselves for succeeding at the tasks they add. Never really done anything in game development, but I want it to be a healthier spin on the freemium style game that just tries to eat your attention. I want this to be the sort of thing you like coming to, but that is actively encouraging to do what you said you wanted to do alongside.

    4 votes
  8. [3]
    lawful-lazy
    Link
    I implemented a 2-player board game based on a video I saw a few months back -- Royal Game of Ur

    I implemented a 2-player board game based on a video I saw a few months back -- Royal Game of Ur

    3 votes
    1. [2]
      cfabbro
      Link Parent
      :( p.s. It wasn't this video from the British Museum with Irving Finkel (the Assyriologist/Board Game Historian who originally decoded the rules to the game) and Tom Scott, by chance, was it?

      502 Bad Gateway

      :(

      p.s. It wasn't this video from the British Museum with Irving Finkel (the Assyriologist/Board Game Historian who originally decoded the rules to the game) and Tom Scott, by chance, was it?

      1 vote
      1. hungariantoast
        Link Parent
        I got a look at the link last night. As far as I could tell, it was indeed that video.

        I got a look at the link last night. As far as I could tell, it was indeed that video.

        1 vote
  9. yamalight
    Link
    I keep pushing my tiny deployment tool called Exoframe forward bit by bit. Haven't had time to work on it in the past few weeks due to work, but I keep getting back to it whenever I got time. It's...

    I keep pushing my tiny deployment tool called Exoframe forward bit by bit.
    Haven't had time to work on it in the past few weeks due to work, but I keep getting back to it whenever I got time.
    It's quite nice to have a tool that helps you deploy your demos to your own servers with one simple command :)

    2 votes
  10. Ephemere
    Link
    I've been playing around a lot with neural style quite a bit as a way to enjoy some artistic expression merged with some light programming. I've not been terribly happy with my results, but I...

    I've been playing around a lot with neural style quite a bit as a way to enjoy some artistic expression merged with some light programming. I've not been terribly happy with my results, but I learned just this past week that there are quite a few other models to choose from, and I'm very much looking forward to playing around with them.

    The thanksgiving holiday has, of course, completely eliminated any free time to do any such thing, so it's nice to be back to normalcy.

    1 vote