Live data from Hacker News

Ask HN: What are you working on? (October 2024)

news.ycombinator.com

51–60 of 1001 posts

Re: Ask HN: What are you working on? (October 2024)

#51
I've been working on an automatic sky tracking telescope over the past few months. I'm a few weeks behind on blogging but making solid progress. V1 is nearing completion. Then I want to rework some of the electronics to design and get a custom PCB printed. Also the physical design needs a complete redesign to make it more sturdy for long exposures and solve some wiring pains.

The software allows the platform to automatically align to north and working on accounting for imperfect leveling (such as placing it on a slanted surface) through software and accelerometers.

Next challenges I want to solve in software is focus detection and then automatic image stack and post processing.

Primary goals of the project is a deep dive into robotics and electronics, along with brushing up on webdev which I don't touch too frequently being in the gamedev world. Also allowing me to explore things like digital signal processing.

I'm keeping a bit of a running blog here. [0]

[0] https://gdcorner.notion.site/Stargaze-Telescope-Build-Log-6f...

Re: Ask HN: What are you working on? (October 2024)

#55
For the last little while now, I've been spending a lot of my spare time learning to work with a language called AgentSpeak[1] using a platform called Jason[2].

Briefly, Jason is a platform for building intelligent agents based on the BDI (Belief-Desire-Intention) software model[3], which is in turn based on the Belief-Desire-Intention cognitive model[4]. Broadly speaking, it's an event based programming model, where "events" are things like "gaining a new belief", "dropping a belief", "selecting a plan to execute" (aka an "intention"), etc. AgentSpeak programs (normally) run "forever" cycling through a "reasoning cycle" that involves perceiving the world, updating beliefs, choosing intentions, executing intentions, communicating with other agents, etc.

And to commit a little self-plagiarism, from a recent post on LinkedIn:

----

On the one hand, AgentSpeak is basically a logic programming language with a lot of #prolog in its heritage. On the other hand, the runtime is all Java and to do anything interesting you have to write your custom Environment class and other helper functions in #Java. And while the interop is seamless in a way, getting your head around the execution model and knowing what's really happening at runtime can be a bit tricky.

Still, it's starting to make sense. And I do think this #BDI inspired approach has a lot going for it. I'm just looking forward to getting to the point where I can really start to exercise this. I have a few things that I want to accomplish soon:

1. I want to create a BDI agent that I can connect to an #XMPP server so I can talk with it from anywhere.

2. I want to start working on customized perception, using neural networks and various sensors (web-cam, microphone, accelerometer, distance sensor, etc.) to create an embodied agent that can truly sense its environment.

3. I want to take a stab at integrating some symbolic reasoning. I've given thought to trying to adapt the "belief base" to be an #RDF triplestore (probably #Apache #Jena) and include a reasoning engine or two. This all starts to get really speculative from here, but I spent a lot of time working on abductive inference a couple of years ago, and I'd like this thing to be able to use abductive inference, along with deductive reasoning, rule induction, possibly case based reasoning, etc. all in one system.

4. Might experiment with implementing a #Blackboard architecture and have specialized "problem solving" agents that collaborate by using the Blackboard in some situations. What would be really interesting here would be to figure out how to seamlessly translate in and out of a structured representation that lets you use existing specialized code for things like, eg. R for statistical operations.

5. And of course, experimenting with continual learning, as opposed to the "batch training job" stuff that we all use for ANN's today. This gets really speculative as well, but I want to explore contrastive learning, Hebbian learning, associative learning, operant conditioning (ala Pavlov), etc.

[5] above is why you'll see me spending as much time lately with Developmental Psychology, Infant Development, and Cognitive Psychology books, as with "AI" books per-se. I still believe that getting an AI that can learn from its environment, and build up useful mental representations with the minimal set of hard-coded behaviors, will be the best way to make progress with regards to #AGI.

----

I didn't mention it in the LinkedIn post, but as part of all of this, I've been building a hardware platform for some time now as well, where said platform is meant to support "perceiving the environment" so the system can learn from the physical world. It's not finished yet, but today it includes a GPS receiver so it can "know" it's location in physical space, a 6-DOF accelerometer/magnetometer/gyroscope board so it can sense movement (of itself), and two microphones (for stereo audio input). Future plans include one or two webcams to emulate vision, and possibly some other sensors: IR and/or ultrasonic distance sensors, temperature sensor, humidity and barometric pressure sensors, etc.

Also in the "speculative / for the future" category: AgentSpeak programs don't have any inherent notion of learning built into the model. All "plans" (aka "desires" or "candidate intentions") have to be coded by the developer up-front. This is obviously pretty limiting if you're trying to create truly autonomous agents, so another area I want to dig into is how we might combine work on "AI Planning"[5] to dynamically create new plans.

And since this has kind of turned into a big brain-dump of stuff that's on my mind, I'll finish by saying that I've been chewing on some ideas about explicitly modeling other "mental states" that aren't part of the base BDI model. Things like "attitudes", "values", different emotional states (eg "boredom", "frustration", etc.), "curiosity", "confusion" / "cognitive dissonance", and so on.

[1]: https://en.wikipedia.org/wiki/AgentSpeak

[2]: https://jason-lang.github.io/

[3]: https://en.wikipedia.org/wiki/Belief%E2%80%93desire%E2%80%93...

[4]: https://en.wikipedia.org/wiki/Belief%E2%80%93desire%E2%80%93...

[5]: https://en.wikipedia.org/wiki/Automated_planning_and_schedul...

Re: Ask HN: What are you working on? (October 2024)

#56
post #14

Pondering doing a hardware startup to offer a battery buffered electric kettle. 110 volt plug, 220 volt power. (You could use the same concept for lots of other appliances too)

I love the idea and thought I'd do a rough check on the math:

Assuming the goal is to match the power delivery of a high power UK kettle, looks like the batteries will need to step in and produce about 1kW of power for the duration of the boil, something like 50% on top of the standard 15A US circuit. I know on paper the circuit ratings are nearly 2x, but in practice it sounds like it's closer to 1.5x for the average kettle comparison.

80% efficiency for the heating coil, 1.6L of water, you need about ~750kJ (200Wh) get to a boil from 10C tap water.

So you'll need at least 70Wh output from your battery, and it needs to provide 1kW continuously. Accounting for conversion losses and some buffer to avoid deep discharge I'll target 80Wh. At 1kW that's a continuous 13C discharge rate, which is pretty high. Hobby-oriented LiPo packs will do it, but I'm not sure how they would hold up for consumer product safety and longevity. LiFePO cells could be a good choice since density is _less_ of a concern, and are readily available with 20+C continuous discharge.

I don't know my power electronics very well, so I'm not sure the best way to merge the outputs. Any conversions are going to eat into total power and thus boil time, just rectifying the AC will take 20%. Maybe it makes the most sense to have two separate coils, one direct from AC and a second from the battery? With smaller cells in series, say 10+, to get a decent voltage it could end up with a manageable current to use directly with the 1kW boost. In that case the only expensive power electronics needed would be to charge the batteries.

Also have to figure out how much recharge time matters to people, since by default it would be an hour or so.

It's going to have a chunky, heavy base, and guessing it will have to be pretty expensive for what it does, but I like it.

Re: Ask HN: What are you working on? (October 2024)

#57
I'm back working on my lighting desk [0]. I stopped a couple of years ago because depression robbed me of all motivation, but now it goes and I've done a few gigs with it. Still lots of bug fixes to do then a backlog of new features, but I'm glad to be back on it

0: https://news.ycombinator.com/item?id=35737795

Re: Ask HN: What are you working on? (October 2024)

#58
post #46

A kind of a configuration management tool, helping me manually "reconcile" between three concurrent aspects of the state of a machine (and then apply the result): - what is "out there" on the machine ("queried"), - vs. what was the state last recorded in (git) history, - vs. what I want there to be on the machine (described in Nickel language https://nickel-lang.org/ , a statically-typed successor to the Nix language…

Sounds very cool!

Re: Ask HN: What are you working on? (October 2024)

#59
post #13

I'm working on synthesizing a genome at home! Here is a video with more details, as well as a picture of my home lab. I've always wanted to build life from scratch, and I finally have a chance to do it. Video on what I'm doing - https://www.youtube.com/watch?v=CCiuS1oHnKw Picture of my home lab - https://x.com/koeng101/status/1844150979484319842 I'm trying to build a DNA assembly company right now (been lots of ups a…

> I've always wanted to build life from scratch, and I finally have a chance to do it.

I'm pretty sure I saw this movie... and it didn't end well for existing life on Earth, as I recall. :p

Post reply on HN