Lurker News
Hi HN, I'm curious to see what cool things everyone's building. What side projects are you developing? What are you applying to HN with?

Comments (1,232) 661 threads

Earlier comments
tombert1 reply#
It's not exactly the same as what most people are posting about, but I actually restarted my bachelor's degree, hopefully to finish it up this year.

While I'm not super-popular on HN, I've gotten enough karma here to where people probably at least a small percentage of people here recognize my username, and know that I never finished my bachelor's degree. I've done ok as a software engineer, and I'm proud of the progress I've made in my career, but I have always had a bit of an inferiority complex about it, especially as I've wanted to transition to more research-oriented job opportunities.

sircastor1 reply#
I finished my bachelors this year, nearly twenty years after I started. I likewise suffered a bit of inferiority anxiety related to not having one. After I shared my accomplishment I learned quite a few people in my organization didn’t hold such a degree (much to my surprise).

Congrats on pursuing it. It’s a worthy goal. I wish you luck.

tombert1 reply#
That's so cool! If you don't mind me asking, was the inferiority anxiety the primary driver for finishing, or was it for something work-related?
sircastor#
I had a few goals behind completing my degree. The first was that I felt like I was missing some CS theory that would help me in my programming. Second, It was important to me that I finish this difficult thing that I'd started a long time ago. And yes, there was some amount of anxiety that I didn't measure up to my peers.

The first did come true as I moved through some of my coursework. Especially in my digital logic and final project courses where I was working very low level. The anxiety thing started to go away somewhere in the middle as I realized that no amount of signaling was going to make me feel better, because there's always something more to learn and the pool of knowledge is both wide and deep.

h3rald1 reply#
These days I keep tinkering with min (https://min-lang.org). It is a small but fairly batteries-included concatenative programming language I've been working on for years.

Not many people use it of course, and it's not going to ever become mainstream, but I am using it everyday to perform small tasks and also more recently even to build small APIs for other personal projects. Plus I find that working on your own programming language is a very rewarding experience, and it stimulates creative thinking.
I actually go through phases... I have a few open source projects I keep coming back to every few months to fix issues, add small (or big) features, tweaks etc. the most notable ones are listed on my personal page (https://cevasco.org) -- it almost feels like I have my own very quirky and opinionated software ecosystem :)

carapace1 reply#
Oh that's cool! I've been playing with Joy. Concatinative languages seem to have a lot of potential.

How do you handle compiling combinators?

h3rald1 reply#
Joy was the inspiration for min :)

min is actually mainly an interpreted language, BUT it can actually as of recently be transpiled to Nim (which in turns generates C code which can be compiled), so you can actually create executable files from min, which is pretty cool.
Adding this form of compilation was actually really easy because in a stack-based language there's essentially one instruction: push an item on the stack... the only things I had to add was wrapping external files in functions to delay their evaluation to when they are required.
Combinators like linrec etc are no different from ordinary operators, they are pushed on the stack and they rearrange it...
Consider the following program that takes an integer as input and prints its factorial:

  args
  (compiled?)
    (0)
    (1)
  if get int
  (dup 0 ==) (1 +)
  (dup 1 -) (*) linrec
  puts
Note how I am getting the first or second argument from the command line depending if I am running the program through the interpreter (min factorial.min 5) or as a stand-alone executable (./factorial 5).

When running the min "compiler":

  min -c factorial.min
...the following Nim code gets generated. As you can see, it's mostly just pushing items on the stack :)

  import min
  MINCOMPILED = true
  var i = newMinInterpreter("factorial.min")
  i.stdLib()
  ### factorial.min (main)
  i.push MinValue(kind: minSymbol, symVal: "args", column: 4, line: 1, filename: "factorial.min")
  var q1 = newSeq[MinValue](0)
  q1.add MinValue(kind: minSymbol, symVal: "compiled?", column: 10, line: 2, filename: "factorial.min")
  i.push MinValue(kind: minQuotation, qVal: q1)
  var q2 = newSeq[MinValue](0)
  q2.add MinValue(kind: minInt, intVal: 0)
  i.push MinValue(kind: minQuotation, qVal: q2)
  var q3 = newSeq[MinValue](0)
  q3.add MinValue(kind: minInt, intVal: 1)
  i.push MinValue(kind: minQuotation, qVal: q3)
  i.push MinValue(kind: minSymbol, symVal: "if", column: 2, line: 5, filename: "factorial.min")
  i.push MinValue(kind: minSymbol, symVal: "get", column: 6, line: 5, filename: "factorial.min")
  i.push MinValue(kind: minSymbol, symVal: "int", column: 10, line: 5, filename: "factorial.min")
  var q4 = newSeq[MinValue](0)
  q4.add MinValue(kind: minSymbol, symVal: "dup", column: 4, line: 6, filename: "factorial.min")
  q4.add MinValue(kind: minInt, intVal: 0)
  q4.add MinValue(kind: minSymbol, symVal: "==", column: 9, line: 6, filename: "factorial.min")
  i.push MinValue(kind: minQuotation, qVal: q4)
  var q5 = newSeq[MinValue](0)
  q5.add MinValue(kind: minInt, intVal: 1)
  q5.add MinValue(kind: minSymbol, symVal: "+", column: 15, line: 6, filename: "factorial.min")
  i.push MinValue(kind: minQuotation, qVal: q5)
  var q6 = newSeq[MinValue](0)
  q6.add MinValue(kind: minSymbol, symVal: "dup", column: 4, line: 7, filename: "factorial.min")
  q6.add MinValue(kind: minInt, intVal: 1)
  q6.add MinValue(kind: minSymbol, symVal: "-", column: 8, line: 7, filename: "factorial.min")
  i.push MinValue(kind: minQuotation%, qVal: q6)
  var q7 = newSeq[MinValue](0)
  q7.add MinValue(kind: minSymbol, symVal: "*", column: 12, line: 7, filename: "factorial.min")
  i.push MinValue(kind: minQuotation, qVal: q7)
  i.push MinValue(kind: minSymbol, symVal: "linrec", column: 20, line: 7, filename: "factorial.min")
  i.push MinValue(kind: minSymbol, symVal: "puts", column: 4, line: 8, filename: "factorial.min")
carapace#
> Joy was the inspiration for min :)

Right on!
> min is actually mainly an interpreted language, BUT it can actually as of recently be transpiled to Nim (which in turns generates C code which can be compiled), so you can actually create executable files from min, which is pretty cool.
That is pretty cool. I just started learning Nim and I really like it so far.
> ...the following Nim code gets generated. As you can see, it's mostly just pushing items on the stack :)
It looks like you're sort of compiling the interpretation?
The last couple of days I've circled back and got some work done on compiling Joy code. (I'm using Python as the target language. I'd like to use Nim, but I don't want to learn that at the same time as I'm trying to write a compiler; with Python I have a lot of experience and the surprise factor is low. I know where I'm at with it.) I've just now got it to the point where I can compile (integer) math, binary Boolean logic, and loops and branches.
Example:

    ᅠ?- compile_function("gcd", `true [tuck % dup 0 >] loop pop`).

    def gcd(stack, expression, dictionary):
        stack = True, stack
        tos, stack = stack
        while tos:
            (v1, (v2, stack)) = stack
            stack = ((v2 % v1), ((v2 % v1), (v1, stack)))
            stack = 0, stack
            (v3, (v4, stack)) = stack
            stack = ((v4 > v3), stack)
            tos, stack = stack
        (v5, stack) = stack
        stack = stack
        return stack, expression, dictionary

    true.

As you can see, the generated Python good is not good. (E.g., it calculates "v2 % v1" twice for no good reason.) But it has the qualities of being correct and I-didn't-have-to-write-it! :)

(The compiler code is written in Prolog. It turns out that Prolog is so good for writing compilers that it's faster and easier to learn Prolog and then write a compiler in it than to try to write a compiler in some language you already know!)
This is messy work-in-progress code at this point, but if you're interested...
My notes start at line 697:
https://git.sr.ht/~sforman/Thun/tree/3b96f60f61f0a34928b9ee7...
THe code starts at line 995
https://git.sr.ht/~sforman/Thun/tree/3b96f60f61f0a34928b9ee7...
ANyway, still to do includes: better connections from step to step so the Python code isn't packing and unpacking the stack variable like crazy. Reuse "free" variable names (right now it just generates new vars as-needed, which is fine, but it keeps the values around until the end of the function call. Maybe they could be GC'd earlier, I dunno.)
That's all pretty straightforward, the tricky bit is handling all the meta-programming: as you no doubt know, a lot of Joy functions work by combining args with function fragments to make new functions which are then evaluated. For example, consider this (kinda silly) function:

    [dup] cons i
It's silly because it's equivalent to just "dup", but it illustrates the problem: how do you compile this function (or less-silly ones that work with the same meta-programming style)?

I suspect that you just have to include the interpreter and make "dynamic" calls to it from the compiled function (or include the compiler and JIT compile.) What do you think?
Cheers!

NickyDiamondz2 replies#
I developed a VST plugin that allows users to collaborate remotely using any DAW, it's called BeatConnect. The main value of this is that everyone can use their own setup and instruments and still participate in the creative process together. I've been working on this for a year and have been doing open beta for about a month, people seem really into it which is awesome!

4+ people can make music at the same time, the projects are saved and loaded in the cloud, people can load them on their own time if they want and do their parts so not everyone needs to be online at the same time. Tons of extra stuff, I'm quite proud of how it's turned out.
I built this mainly because all my friends who make music live in different cities and I really just want to jam all the time and nothing out there was letting me do it, so the idea was born a while ago but it was an adventure to get it to work properly.
Screenshot: https://i.imgur.com/Kr3bvx2.jpeg Website: www.beatconnect.ca

jakelazaroff1 reply#
This is super cool! My band is a bit scattered geographically at the moment so this could actually really help us out.
NickyDiamondz#
I hope so! Give it a shot and let me know how it goes
lukeplato1 reply#
Looks great, I was thinking about building the same thing earlier this year but couldn't find the time, so I'm glad this exists. Will you allow users to collaborate with strangers?
NickyDiamondz#
You can add anyone you want, for now you'll need to pass through our discord/reddit if you're looking to meet new people but the plan is to turn it into a collaboration hub so that you can find people based on their genre and skill (Hiphop + drummer, metal + singer, etc.) and just start playing.
Seangottarun2 replies#
A mobile app for free running gait analysis for reducing injury risk and improving running efficiency.

The app uses a user provided video, estimates the runner's position in 3D space, and analyzes the gait over the video duration to identify potential gait abnormalities and areas for improvement.
Things it will (hopefully) detect/measure:
- Gait asymmetry
- Basic running stats (speed, vertical oscillation, stride length)
- Common risk factors for running injuries
Motivation: I used to run competitively, but didn't have access to a regular running coach. So I felt like I missed out on developing proper technique. I've been looking for free running gait analysis but I haven't found anything meeting my needs (free, privacy friendly, convenient).
It's still pretty rough, but I'm hoping to release an Android prototype in the next few months. If you have time, I'd love some community feedback/suggestions on my anonymous Google form. Thanks!
[1] https://myfluidstride.com/
[2] https://tinyurl.com/fluidstride-feedback (no email required)
Edit: formatting

person_of_color1 reply#
Add a feature to blur someones face immediately. You'll get better traction if there are no faces in your dataset. You can use the code from what was done to the summer riots pictures.
Seangottarun1 reply#
I didn't mention it earlier, but I'm processing the video locally on the user's device. The video and derived data are also stored locally and I'm not using any user data to construct a dataset.

So far, the only time data leaves the user's phone is to allow them to share the video and data to others (ex. for social media or to coaches).
I'll definitely look into face blurring if I try to build a dataset in the future.

person_of_color1 reply#
Blur it locally then. I dont want to see my face on running clips.

Continue this thread — 1 reply

pjot1 reply#
Looks neat!

Have you considered enriching your dataset with what’s also being collected by an iPhone or Apple Watch? (walking speed, step length, walking asymmetry, and double support time in the Health app)

Seangottarun#
Thanks for the suggestion! I did put down adding data from other devices as a future thing to do, but I haven't gotten to it yet.

I must admit that as an Android user, I didn't know the Health app had those features. I'll definitely look into it!

Load more comments