Better HN
topnewbestaskshowjobs
Log inSign up

mathgladiator

4,359 karma · joined Mar 1, 2010 (16y ago) · 1,704 submissions

hn [at] mathgladiator [dot] com

I'm an inventor type person. I'm also owner of https://www.adama-platform.com/

Submissions

comment 4y ago · link · parent

There should be a competition of yak shaving.

I've writing a Rust based canvas engine, with content via my own IDE, the runtime is fed data via WebSocket using my own API protocol, web proxy routing through a streaming and distributed load balancer using a new protocol, landing on my back-end platform running my own language, writing deltas to my own data store. https://www.adama-platform.com/

Why? For board game glory!

comment 4y ago · link · parent

One of the reasons that I'm a "solopreneurs" is that I have no real desire to manage people for a few years. Honestly, I hate being an employee.

I'm also embracing a wanton desire to be playful rather than an effective market strategy. For example, my latest pathology is that I'm building my own datastore for my service. I'm preparing to launch it as I audit my few users' usage. In a "bias towards getting to the market" sense, this is an awful approach.

However, I'm having fun and making strides on a few defining dimensions.

It could be said that I'm building a lifestyle business, but I don't believe so. Instead, I'm defining the foundation for a robust and long lived infrastructure game. If you believe the future is bigger than the present, then the markets will only get more exotic and bigger. There will be more room, and more customers that need to be serviced.

comment 4y ago · link · parent

I'm in the phase of Adama of looking for true believers: https://www.adama-platform.com/

Basically, if you are a front-end dev that wants to have a playful backend for games or collaborative apps, then Adama may be interesting to collaborate on.

comment 4y ago · link · parent

The secret sauce may be the need to take control of the write path.

comment 4y ago · link · parent

So, a funny thought experiment is what happens when you parse a JSON file at the same time? You also index by primary key (the field name).

So, I mirror this thinking and having be just an object with the keys being the primary key. Then, I simply index all the children by their fields based on insights from the developer via the index keyword.

So, if you have

record R { public int id; client int owner; int age; index age; } table<R> rows;

then queries for age can be accelerated by the table.

like "iterate rows where age==42" will basically hone in on the bucket of age==42. I currently only index clients by hash and integers.

The critical aspect which makes this work is that I monitor all mutations. When a child object has a field mutated, then it is removed from all indices and placed into an unknown index. Any queries will also consider it as the purpose of queries to simply narrow the field. Once data changes are persisted, the index is updated and items are moved out of the unknown bucket. This works fairly well because the indices are primarily used during the privacy check phase.

comment 4y ago · link · parent

I believe using a large JSON file is not half bad, but you do run into the problem of how do you index and query it in meaningful. I actually ran into this problem when building a game because a document doesn't provide a great model..

The relational model is... JUST... SO... GOOD. And, it is a shame that most of the relational systems are so complicated.

A document within Adama (https://www.adama-platform.com/) is basically a giant JSON file held within memory with clients connected via a WebSocket. I'm basically building my own indexing since I want the indexing to be reactive, and I've got exceptionally fun optimization problems.

Litestream, in my opinion, is a great way to get started. Actually, it's beyond fantastic if you maintain the 1 server to 1 database because migrations become so easy. So, I applaud the team for taking this simple approach.

comment 4y ago · link · parent

This ability to stop, move to another machine or upgrade, and then run is a central design thesis for Adama: https://www.adama-platform.com/

I can also take the state and archive to S3, or rewind it.

518.

Writing to disk and the tyranny of small things(adama-platform.com ↗)

2 points · by mathgladiator · 4y ago · 1 comment

comment 4y ago · link · parent

I'm building my own as a SaaS: https://www.adama-platform.com/

You can host it, but it is very much in the beta phases as I'm working on better storage options.

comment 4y ago · link · parent

I use Java and just scp a jar over followed up by a ssh to restart via systemd.

comment 4y ago · link · parent

I'm embracing the spirit of wandering in my life, and there is something special about knowing what is a priority versus what is joyful work.

For example, I'm currently working on a low-latency durability solution for my SaaS (shameless plug: https://www.adama-platform.com/ ). Do I need to be working on this? No... I should be working on the consumer side. However, I'm currently getting decent results. Granted, I'm having to wade through a bunch of optimizations, but the potential is right there: 1 ms commit time.

Just need to figure out why it craps the bed every 30 seconds or so. It's super fun! And, I'm already got 8x the performance of RocksDB.

comment 4y ago · link · parent

As I build out my infrastructure for Adama (my real-time SaaS for state machines), I'm leaning hard into a monolithic design. The key reason is to minimize cost and maximize performance.

For instance, comparing Adama to the services needed to build similar experiences offered by AWS has interesting results. Adama costs 97% less than AWS ( https://www.adama-platform.com/2022/03/18/progress-on-new-da... ), and a key thing is that the microservice approach is amenable to metering every interaction which scales linear to demand whilst a monolithic approaches condenses compute and memory.

comment 4y ago · link · parent

I wish I was ready for customers, but I'm making an IDE for board games and have making animations as a medium priority task.

I do however have the 2D tool pulled out which is only lacking the guts since I'm rethinking the suite of things to put in boxes: http://ide.adama-platform.com/solo/

I'm thinking about how to mix a stateful backend (Adama) with animation data driven by "volatile data": https://www.adama-platform.com/2022/03/11/introducing-volati...

comment 4y ago · link · parent

I'll tell you how my team did it when I was an architect: https://dl.acm.org/doi/10.1145/3477132.3483572

comment 4y ago · link · parent

While there is much to worry about over centralization, there are benefits to at least trying if you can consolidate n-m efforts when n is the total number efforts using a queue and m are the snowflakes. It all depends on organization size and whether some costs can be amortized.

Everyone having specialized everything is exceptionally expensive at scale. Here, the key is tower of babel. What Tim should have done is kick start the effort with one or two teams, then organically grown it by reducing operational burden for new teams.

The mistake here is trying to globally optimize rather than seeking different vertical consolidation.

By the way, this is why Amazon has so many services.

comment 4y ago · link · parent

It depends on who is the boss/customer.

This is a multidimensional problem, and the only way out is to find concrete measurable aspects. Focusing on things you can measure is important as "perfect" is a limit point which may not be achievable, and you my have hidden problems that don't get revealed.

My personal strategy is to make forward process on execution to get to some E2E point, and then the goal is how to drive optimization. The customer is there to help you understand what is good enough.

It's important to master this skill because it is easy to get stuck in the mud, and getting something perfect now may not be so great later on.

I struggle with it as well, and I've suffered other peoples' definitions of "good enough". However, that suffering allowed me to retire early and now I'm suffering myself as the customer. I'm a cruel customer...

527.

Open strategy for a new kind of business(adama-platform.com ↗)

2 points · by mathgladiator · 4y ago · discuss

comment 4y ago · link · parent

I'm very happy about this.

I'm building a company as a solo engineer right now, and I've been thinking a lot about growth in terms of firepower. I've decided to not anyone for a long time.

Part of the reason is that I hate being an employee, and I don't want to subject anyone to that: https://www.adama-platform.com/company.html

Instead, my bias is to find free people that enjoy their craft, and then use a waterfall model for various efforts.

comment 4y ago · link · parent

Thanks!

I will definitely do that.

I connected with the Actor model when I found a comment by Carl Hewitt that everyone reinvents the actor model. Sadly, I can't seem to find that comment now. An Adama document is basically a durable actor that can only acknowledge messages.

I'm working on figuring out a way for Adama documents to generate notifications.

comment 4y ago · link · parent

My language generates document changes that go inside of a replay log.

I basically translate document layout + transformation logic into JSON changes which can be joined under JSON merge.

The neat thing about basing everyone on JSON merge is that I have a way to deal with buffer bloat very easily with flow control.

comment 4y ago · link · parent

I will!

I even have a video: http://jeffrey.io/AdamaPlatformInTenMinutes.mp4

And I'm building it as a SaaS which I've made available: https://www.adama-platform.com/ for "early access".

I'm still trying to figure out how to explain it. Basically, take an IDL like proto/thrift. Then add in the ability to transform the data. Then add in a sense of privacy of who can see what. And boom, the foundation is laid for a document transform language.

The reason to do all of that is because the state of the board game requires a great deal of care. For instance, wouldn't it be great to offer Undo? What if you hook a socket directly up the document and then differentiate state changes after privacy checking?

Right now, it's a mess, and I'm forking efforts to work on a board game web ide where people can build board games online. Adama is the foundation for the IDE such that it starts collaborative from the get-go.

comment 4y ago · link · parent

That why question sure is haunting isn't it.

For example, I invented a programming language for board games and the #1 question I generally get is "why isn't that a framework".

The hard part in life is learning to embrace your quirks.

comment 4y ago · link · parent

Thanks for looking it over.

Imagine you are looking at a thrift spec or a protobuf file where all the data is laid out, and then ask how would you add transformation to that spec. So, the Adama starts with laying out state and then goes hog wild on how to transform that state.

As to what is persisted, the document you are outline is.

At core, Adama is a key to document store except you don't have the typical operations. Instead of put or get, you can "send a message to a document" or subscribe to "your personal view of the document". The language bridges the gap in how sending messages transform the document and how privacy dictates your personal view.

comment 4y ago · link · parent

Absolutely! A reasonably decent example would be a hearts implementation: http://book.adama-platform.com/examples/hearts.html

There is also a very simple tutorial built around chat: http://book.adama-platform.com/tutorial/04-space.html shows a very minimal example.

comment 4y ago · link · parent

Links made manifest: * https://www.adama-platform.com/ * https://www.adama-platform.com/2022/03/02/early-access-launc... * https://www.adama-platform.com/2022/02/24/open-strategy.html * https://book.adama-platform.com/ * https://discord.gg/W3Cj4By

536.

Show HN: Early access launch of Adama, a serverless multiplayer game platform

17 points · by mathgladiator · 4y ago · 7 comments

comment 4y ago · link · parent

We are in a golden age for new languages.

You have https://microsoft.github.io/language-server-protocol/ for doing the integration between IDE and your parser.

Also, https://highlightjs.org/ which lets you broadcast your code in a pretty way.

I do however feel that your QoL will depend on whether or not you make a compiler or a translator. The key benefit of a translator is that you can co-opt the host language's standard runtime and debugger.

comment 4y ago · link · parent

I'll take the bait and provide evidence on why you should write a programming language.

First, it's technically very difficult, but you will gain deeper insight into the art of the craft. So, if you are a TC chaser or career minded person, then spending half a year writing a language will help you master the coding aspect of the game. I've started many languages since I started college, and each one was instructional. (I'm now 40 and an early retiree)

Second, it's fun.

Third, it may turn into something new. If some people don't write a new programming language, then we are stuck with what we have. This advice basically admits that the status quo is good enough.

The authors saying that the language, as a project, is a lifetime appointment? Well, this reveals everything. I believe if you want to do a programming language, then you must be willing to invest at least a decade or two.

So, here, I am at forty preparing to launch a SaaS around a language that I designed ( http://www.adama-lang.org/ ). The kicker, I believe, is that a project like this requires wandering the desert alone for quite a while.

I'm preparing to launch, and I just started to load test my shiny new production cluster. Low and behold, it sucks. Fortunately, I have a tremendous number of dashboards and isolated it to how I'm interacting with RDS. I've got my work cut out for me which I'll write about.

However, I have a potentially interesting business precisely because I evolved a language which solved a niche use-case. The number of problems that I have had to solve up to this point is not for the faint of heart. Life and reality are harsh mistresses.

So, maybe, yes, you can save yourself some heartache by not writing a language. Perhaps, a better way to think or phase this is "Writing a programming language is a lonely affair that will most likely end in tragedy after a long death march".

comment 4y ago · link · parent

I have yet to meet a happy principal engineer within two FANG companies I've worked, so maybe this depends on the field.

comment 4y ago · link · parent

That's my takeaway as well. In thinking about the log4j, it seems like these big things inherit complex escape hatches which make you vulnerable.
1
171819
57