Better HN
topnewbestaskshowjobs
Log inSign up

zaghaghi

10 karma · joined Oct 1, 2019 (7y ago) · 23 submissions

Submissions

comment 1mo ago · link · parent

The idea initiated at my lunch time when we were discussing mushroom foraging in Sweden :-) One funny thing in Sweden is that people keep their mushroom spots secret, they happily give you collected mushrooms but not the location.

2.

Show HN: A forest's wildlife, synthesized live in Rust, playable in the browser(zaghaghi.github.io ↗)

9 points · by zaghaghi · 1mo ago · 4 comments

3.

Show HN: Local audit trail for Claude Code tool calls(github.com ↗)

1 points · by zaghaghi · 2mo ago · discuss

comment 1y ago · link · parent

I started to implement a new idea a few weeks ago, and then I stopped because I wasn’t sure that it’s a good idea.

Now I decided to share it with you to see what you think about it. VaporCache, as I named it is an “In-Memory KeyValue Extension” for AWS lambda function.

Here are a few things that specifies this:

* It’s an AWS Lambda Extension, and it’s only accessible within the lambda execution environment.

* It’s in-memory, like any other in-memory database, main storage is memory.

* It’s a KeyVakye database, just like Valkey or Redis, and the RESP3 protocol is used here. Meaning you could use any redis client to communicate with it.

* It’s not a distributed database.

Use cases that I can think of:

* To cache data within a lambda execution environment to use it between different invokes. * To take responsibility for memory management, to prevent OOM errors in lambdas.

Looking forward to your feedback.

5.

Ask HN: VaporCache, An In-Memory KeyValue Extension for AWS Lambda(github.com ↗)

1 points · by zaghaghi · 1y ago · 1 comment

comment 3y ago · link · parent

It's possible to break the value into smaller chunks, but not the logic. the function that's responsible for processing the value needs all the chunks. So network wise the issue will remain.

7.

Ask HN: Do We Need an Embedded Distributed Key-Value Database?

2 points · by zaghaghi · 3y ago · 3 comments

comment 3y ago · link · parent

How we can have Rust style method definition in Python, and how we can separate class members from class methods.

Does it help us to do better programming? I don't know. But I think it's worth sharing.

9.

Show HN: Unorthodox Python OOP(medium.com ↗)

5 points · by zaghaghi · 3y ago · 1 comment

comment 4y ago · link · parent

I always check pwd, think again, and add a space before rm.

comment 5y ago · link · parent

I've made an open-source #3d application to convert #pixels into 3d models.

In fact, it's an open-source clone of the KenShape application.

Contributions are welcome, particularly in Windows and Linux maintenance.

#pixelart #3dmodeling

12.

Show HN: MetaPathFinders or how to change Python import behavior(medium.com ↗)

1 points · by zaghaghi · 5y ago · discuss

comment 5y ago · link · parent

I made a funny python package, so you can directly import json file into your python code. let's say you have a json file named `info.json`. after installing this python package you can use json data by adding `import info` to your code.

14.

Show HN: Direct JSON Import (Python)(github.com ↗)

4 points · by zaghaghi · 5y ago · 1 comment

comment 5y ago · link · parent

I made a funny python package, so you can directly import json file into your python code. let's say you have a json file named `info.json`. after installing this python package you can use json data by adding `import info` to your code.

16.

Direct JSON Import (Python)(github.com ↗)

1 points · by zaghaghi · 5y ago · 1 comment

17.

Show HN: Probabilistic Data Structure Template Library (C++14)(github.com ↗)

6 points · by zaghaghi · 6y ago · 1 comment