4,359 karma · joined Mar 1, 2010 (16y ago) · 1,704 submissions
I'm an inventor type person. I'm also owner of https://www.adama-platform.com/
comment 4y ago · link · parent
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
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
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
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
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
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
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
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
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 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
comment 4y ago · link · parent
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
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 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
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
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 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
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
There is also a very simple tutorial built around chat: http://book.adama-platform.com/tutorial/04-space.html shows a very minimal example.
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
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
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".