Better HN
topnewbestaskshowjobs
Log inSign up

bojidar-bg

5 karma · joined Jul 14, 2023 (3y ago) · 7 submissions

Submissions

comment 1y ago · link · parent

Location: Sofia, Bulgaria; Dallas, Texas, USA

Remote: Yes, or Hybrid

Willing to relocate: Yes, planning a move to the U.S.

Technologies: JavaScript, Python, Go, Rust, C++, C#, HTML, CSS, Kotlin, TypeScript, Solidity, Vue.js, React, Godot, TEE / Confidential Computing, Kubernetes, Linux, Bash

Résumé/CV: https://bojidar-bg.dev/cv/

Email: bojidar.marinov.bg@gmail.com

Hi HN! I'm a senior software engineer with 11+ years of experience, looking for a job as I move to the US. Over the years, I've consulted both senior and junior software engineers on a variety of technical problems, and even ran a few programming courses for kids myself. As a result of my experience with contributing to open-source software, I enjoy writing documentation and not leaving it as an afterthought. When debugging, I can dive deep into codebases I've never seen before. In the future, I wish to grow in the area of improving end-user experience.

2.

Mean() vs. Min() when aggregating running time measurements(vilvoiu.ro ↗)

1 points · by bojidar-bg · 2y ago · 1 comment

comment 3y ago · link · parent

Well.. hm. Basically, in a "normal", non-self-hoisted interaction net you have agents that have principal ports and interact with each other -- in iNet, those are called nodes. So, I'm thinking it might be possible to make a self-hoisted interaction net by replacing each custom node/agent in the original "normal" net with a subgraph which is composed entirely of reusable nodes that implement the self-hoisting. And, I'd imagine that such a subgraph would have a single principal port pointing in the same direction as the "normal" agent's principal port did, plus an internal set of nodes which encode the rules. Hence, each "normal agent" is turned into a "composite agent" -- if that makes sense.

comment 3y ago · link · parent

(X

Well, to be fair, making binary multiplication took more attempts that I would rather admit; I'm a programmer, not a mathematician XD

I also tried to make a game of life implementation, making use of the graph as a two-dimensional grid; however, it was too much for a single idle afternoon -- might have to retry that later. Main issue was trying to work around the stack-based part of the language (and I guess around port signed-ness); I can envision roughly what I want to get on the screen, but writing it out as stack manipulations, when there are so many cyclical references (ideally, I want every cell to be connected to up to 8 neighboring cells), is nontrivial -- especially when it comes to node rearranges, which, frankly, I didn't quite get. (:'

For self-hoisting, I would imagine the challenge would be around storing the rules and expressing the different node types. Tho - come to think of it, there are indeed two ways to implement it; one would be by defining a data structure to hold the graph and having an "interpreter" walk around the graph updating places where the rules match, and the other would be to define a sort-of composite "agent" which is able to correctly orient its primary port and interact with other composite agents around it, following the production rules it carries around. I guess that is pretty much what you are saying.. I'd say the latter/self-interpreting version is the more advanced one and would better benefit from improvements in the runtime, but the former should indeed be much simpler to write out.

For IO... I was thinking I'd rather have it at the graph layer, but now that you mention it, being able to customize it at the lower layer language would actually be quite neat.

And finally for implementation; the current JS/TS implementation is quiiite slow; it takes multiple seconds to crunch through a few thousand steps. Chrome profiler suggests the closeAllFreePorts function is the culprit; but I can't tell if that's an issue of the language or the implementation. Still, it might be worth keeping the JS/TS version for prototyping things out, then moving to another language only once things are more or less stable?

comment 3y ago · link · parent

Was really fun to play with; made a quick implementation of a Bin(ary) type supporting log-time addition as opposed to the linear-time addition of the Nat type (and log-squared-time multiplication as opposed to the squared-time multiplication of Nat-s).

https://gist.github.com/bojidar-bg/85026fa70e6ba7b1862bf8226...

Would be really cool if we had more input/output options; also, I'm curious if it might be possible to self-hoist the language somehow.

comment 3y ago · link · parent

Over the last few months and with the help of a W3F grant we worked on creating a blockchain oracle solution inspired by our intuition of how those should work. There is still a few rough edges, but hopefully it's useful to someone else -- feedback welcome (within reason)!

(First-time submitter here, apologies if I broke any unwritten rules of HN)

7.

Validated Streams: Simplifying the creation of blockchain oracles(comrade.coop ↗)

2 points · by bojidar-bg · 3y ago · 1 comment