Live data from Hacker News

Ask HN: Show me your half baked project

news.ycombinator.com

541–550 of 708 posts

Re: Ask HN: Show me your half baked project

#541
https://github.com/denzyldick/phanalist

I'm trying to write a static analyzer for PHP. It's written in RUST and it's a personal project of mine to learn rust and also make a FAST static analyzer for PHP projects that are big. I started with this project because the current static analyzers in the PHP ecosystem are slow.

It would be nice if there were people that would like to contribute. If you want to learn rust and you have PHP experience you are welcome to help.

The project is it early stages. Right know the focus is on writing the checks that are needed. The current checks that are implemented are:

- Detect when the cyclomatic complexity of a method is too high. The current threshold is 10.

- Extending undefined classes.

- Having a try/catch with an empty catch that doesn't do anything.

- A method that has more than five parameters.

- Methods without modifiers(private, public & protected).

- Classes that start with a lowercase.

- Check if a method exists when called inside another method.

- Methods that return a value without defining a return type.

- Constants that have all letters in lowercase.

- Parameters without any type.

- Correct location for the PHP opening tag.

Re: Ask HN: Show me your half baked project

#542
Simpatico (https://simpatico.io, MIT on github) is a collection of related ideas and projects.

First, it's a minimalist, user-respecting, single-process, no-build web server written in ~500 lines of node. The server supports caching and file watching, markdown, letsencrypt TLS, and websockets. It does Etag client caching and disallows any 3rd party resource access with headers. https://simpatico.io/reflector

Second, it defines "literate markdown" or "litmd", based on Knuth's literate programming, that executes markdown code blocks in the browser. HTML, CSS, JS and Markdown are supported. This feature started as a hack to get around IntelliJ's inability to do syntax-highlighting on html in the body of a markdown file! Litmd also has good testing support, changing the background and favicon if any exceptions are thrown. Markdown is now my test harness. https://simpatico.io/lit

Third, there is a wonderful encrypted chat client that uses crypto.subtle to generate private/public keys in the browser, per tab, and use them to send messages. Currently these are entirely ephemeral, which aids testing. Eventually they will be stored in local storage. Each client has a GUID URL identifier, which I've exposed as both a link and a QR code for easily connecting with others on a mobile device. I think of it as an "anteroom" for social contact, useful in bars, parties or conferences where giving out more sensitive information like telephone or email may not be desirable. https://simpatico.io/chat

Chat is intended to generalize enable what I call "monomorphic javascript" wherein the browser becomes a server, chat becomes structured, and people code programs locally and share them easily with each other. (The original tagline was "Making software together") This remains the vision. In some ways I'm like a novelist inventing his own typewriter, and so far I only have the typewriter and some essays I wrote with it. But the novel is still there, still driving everything. https://simpatico.io/notes/simpatico

I've liked the tooling so much (tiny, no build, very few and very small dependencies, low start-up time) that I've used it to explore some novel data-structures and algorithms (https://simpatico.io/stree3, https://simpatico.io/combine2), and also to host "kata", or exercises in 3rd party technology like Angular (https://simpatico.io/kata/angular/my-project/bundle), or browser tech like svg (https://simpatico.io/svg) or crypto (https://simpatico.io/crypto).

I'm glad I decided to start running on a public host early. It's been an education. I don't think "full stack" devs who are used to handing off CI/CD and operations to other teams realize how insulated we are from the internet. There are constant probes, scripts trying to get into the system, trying to break it, on all open ports. It's fascinating. It's also been an education in bash scripting, systemd, and ssh (especially reading auth.log). The key here is keeping the stakes low - at best attackers will get a $5/mo VPS. It's amazing how much such a system can do - greatly inspired by Justine Tunney's redbean server, and others. (https://simpatico.io/notes/inspiration)

It's been validating to see how, almost by accident, this project is part of the "indie web" and also "local first". To see other people like DHH (https://twitter.com/dhh/status/1655076668787097607) and projects like Svelte (https://devclass.com/2023/05/11/typescript-is-not-worth-it-f...) start using plain javascript also feels right.

Currently, everything is in one repo so it's not easy to fork and use for yourself. You'd need to do a lot of deleting. One of my todos is to publish to NPM and make the process of spinning up your own reflector easier. However, this is not my primary use case! The primary use case is to get people coding in the browser!

Re: Ask HN: Show me your half baked project

#543

https://ant.care/ https://github.com/MeoMix/symbiants I'm making a digital ant farm. SimAnt + Tamagotchi that runs in real-time. Written in Rust/WASM/Bevy The goal is to give people cute ants that do cute ant things 24/7, ask people to look after their ants and feed them once-per-day, and then deny the ability to provide ant care unless users engage in a breathwork/meditation exercise. I would love help. I'm very muc…

Love the choice of URL :) Relevant: https://www.youtube.com/watch?v=9jtU9BbReQk

Thank you :) I was inspired by brr.fyi and decided to sit down for a few days and try my best to come up with a name I felt equally good about!

And hah, that video was funny. It confused me for a second as I thought it was real - sort of like the spiders on drugs video from back in the day.

Re: Ask HN: Show me your half baked project

#544

https://ant.care/ https://github.com/MeoMix/symbiants I'm making a digital ant farm. SimAnt + Tamagotchi that runs in real-time. Written in Rust/WASM/Bevy The goal is to give people cute ants that do cute ant things 24/7, ask people to look after their ants and feed them once-per-day, and then deny the ability to provide ant care unless users engage in a breathwork/meditation exercise. I would love help. I'm very muc…

SimAnt! Now that brings back some memories! > and then deny the ability to provide ant care unless users engage in a breathwork/meditation exercise Little surprise twist there!

:) SimAnt was the first game I played at home on a SNES, super fond memories of it. I watched a talk by Will Wright a while ago, from 96, on the development of SimAnt! It was super inspiring. https://www.youtube.com/watch?v=nsxoZXaYJSk&t=1740s

And yeah, it's a bit of a hodgepodge of ideas. I started with a goal of helping people, not making a video game, but ultimately decided that taking the help to where it's needed made the most sense. So, now I'm trying to find ways to package up mental health help and deliver it to techie/gamer folks :)

Re: Ask HN: Show me your half baked project

#546

https://ant.care/ https://github.com/MeoMix/symbiants I'm making a digital ant farm. SimAnt + Tamagotchi that runs in real-time. Written in Rust/WASM/Bevy The goal is to give people cute ants that do cute ant things 24/7, ask people to look after their ants and feed them once-per-day, and then deny the ability to provide ant care unless users engage in a breathwork/meditation exercise. I would love help. I'm very muc…

Ant related anecdote (dare I say ant-cdote): The other day I was reading in my courtyard and kept seeing ants walking back and forth carrying these huge black balls which turned out to be other live ants. I followed an empty handed ant for a while but lost him in a patch of ivy. I think they were engaged in a behavior called social carrying https://www.antwiki.org/wiki/Social_Carrying .

TIL! I've read through some of the articles on AntWiki but not this one :) Thanks for sharing. Maybe I need my ants to be able to walk on and carry other ants!

Re: Ask HN: Show me your half baked project

#547

I left my last job and a toxic boss a few months back and decided the only viable future is to start my own thing again. But this time I was going to do it properly - lean customer development, speak to users before writing a line of code, etc. Instead, I became fascinated by the massive improvements in OCR and how they can be applied to digitising boring paper records. Decided to start out with the most boring probl…

What are you using for OCR?

Re: Ask HN: Show me your half baked project

#548
Ah, another former Saint-Petersburg resident. Hi there, Alexander!

Working on a retro-computer BLE/USB keyboard right now (HW&FW), with quality, low latency, and emulator/HW compatibility as the special sauce: https://twitter.com/spbnick/status/1546555198046457856

But then I got distracted into building a device for testing its latency:

https://github.com/spbnick/keypecker

https://twitter.com/spbnick/status/1645057450431635456

The FW is quite complete, but I only have one HW implementation :D

And then I got distracted trying to find a good way to acquire and retain the requisite deep BLE knowledge (already had some for USB), and drifted into exploring knowledge graphs as a means of processing and recording that knowledge.

Turned out all of knowledge graph databases are heavily front-loaded with schema development (and there are no actual GUI apps for them), whereas I have no idea what the schema will be, and would like to experiment with unconstrained data first. So I'm building a Python tool/library to allow free-form knowledge graph creation and schema inference, with data/schema export to some knowledge graph databases (like TypeDB or Stardog). I got to figuring out graph-building operators and expressions so far, and am making them work (the code probably doesn't make much sense):

https://github.com/spbnick/knob

An STM32-based business-card synth with touch-sensitive back-lighted keys. Got all the parts of the hardware more-or-less prototyped and working, but PCB layout difficulty (and my perfectionism) killed my interest for now:

https://twitter.com/spbnick/status/1340348572068360198

https://twitter.com/spbnick/status/1341507428131741698

An (integration) test framework for Bash (yeah, I know), written 10+ years ago to replace the one used by RH at the time (and to this day).

Repo: https://github.com/spbnick/epoxy

Slides: http://slides.com/spbnick/epoxy

Didn't stick, left QE shortly after.

Re: Ask HN: Show me your half baked project

#549
I've used [Paperless ngx](https://docs.paperless-ngx.com/) for several years to manage my important personal documents. I wanted something like Paperless, but that is hosted. Selfhosted is nice, but I really needed these documents to always be available and accessible. At times, my self-hosted setup would be down.

I'm in the middle of building https://fileshark.app

It's still in early beta with some bugs, but I would love some feedback on the idea. I'd also love some feedback on the product.

Post reply on HN