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 5y ago · link · parent

It could be, but I own it and the roadmap.

The key thing that I can do is await on players decision, so I can block the entire process for multiple people to do things.

comment 5y ago · link · parent

So, like all engineers, I imagine that my products that I ship will reach massive levels of scale. Such massive level of scale that I need to use elastic compute, so I should expect processes to come and go.

Thus, my processes clearly has to sustain 100k+ connections. And, at a moment's notice, I should expect the process to go "poof". Maybe someone is going to do a kernel upgrade or someone decided to unplug a machine, I don't know!

Having operated with the above assumptions, I found it hard to be wise to avoid that and then invented a programming language that would operate in a modern cloud environment.

I need better hobbies, or not... who knows.

comment 5y ago · link · parent

I'm working on the complex UIs now, and it is a challenge. Fortunately, I can focus on gaming designs which is less complicated.

I think the key thing here is figuring out how the UI can be made mostly declarative and a stateless function of the state. I'm drawing some inspiration from

https://flutter.dev/docs/development/data-and-backend/state-...

and the challenge is the polish to make products great. My strategy is that I'm going to make a UI editor so I can make faster progress on designing the board game UI and then build a minimal set of controls to do data binding. The key is to get into the fight about what is the polish needed, and what reasonable escape hatches are needed.

> I wonder if there's some aspect of board games that pushes one towards that line of thinking.

There is, they are exceptionally complicated!!! SO COMPLICATED! The key is the implicit state machine between all the players, and you just can't quickly model it with traditional tools and databases. All it takes is a single card or game piece (which changes rules) to invalidate EVERYTHING. Games are exceptionally messy!

comment 5y ago · link · parent

I'll be completely honest... you're mostly screwed. I say this with full love in my heart.

Your best bet is to use Amazon and then leverage their ELB offering with sticky routing. HOWEVER, now you have a new problem as capacity dies, gets removed, cycled, added, etc. Sticky routing was designed with the assumption that it was an efficiency play as opposed to a deterministic play.

What you will see happen is that your internal state will be split brain, and people joining the chat will not be globally consistent. Some people will be on host X while some will be on host Y. So, you have two choices. You could use a database to provide the global state, at which point now you have a whole bunch of problems. You can start with polling the database, and the key advantage of the websocket is moving the polling from client to server, so that will be a win for users. However, it will cost you. Second, you could introduce a message broker, but then you have the problem of how to initialize the state. Ultimately, everyone ends up with a hybrid database for storage and message broker for real-time.

In your model, the database becomes like Slack, and your Server becomes a proxy. This could be super neat, but what is the value-add of the Server?

The interesting thing to observe is that the solution is how to turn your front-end app into a database like thing. If the load balancer could route traffic like a database traffic controller thing, then you can put all your state in the front-end and move crazy fast. However, you will move so fast that you will fuck up your state. State is VERY HARD and exceptionally unforgiving to manage yourself.

There is great wisdom in using a database with versioning and all that. It’s a great abstraction having lasted so long. I’m working on the state bits and trying to figure out the people side of discipline with my silly language, and I have some novel contributions to provide over the coming years.

There are some linked pdfs on http://www.adama-lang.org/blog/some-thinky-thoughts-2021 which may provide some more insight.

comment 5y ago · link · parent

They are neither shills nor explicitly stupid, just inexperienced (mostly young people) with a great deal of enthusiasm and energy.

comment 5y ago · link · parent

Scaling not just technically either, it's also the engineers. Most Web engineers have had their minds bent to the request response model with databases.

The key reason is that a game lasts... minutes to hours (ignoring most MMOs), so the state machine makes sense and the risk of failure low. Web devs have to use a database which has state for years.

comment 5y ago · link · parent

I have thoughts, and I agree but also disagree a bit.

We are in the dark-ages with respect to streaming sockets, and I am the architect of one of the worlds largest WebSocket and streaming services.

First off, unseating the operational benefits provided by request response is a huge challenge. It's possible, and I've done it. One of these days, my co-authors and I will present an OSDI paper with the broad strokes. It's very easy to list a lot of the challenges with scaling WebSocket, but each of them can be solved.

I believe we will have a nicer world with QUIC --> Http/3 and the up and coming WebTransport discussion. SADLY, that will result in a decade long "caniuse" issue, so we should expect to see WebTransport polyfills to arrive...

Second, HTML over WebSockets is nice, but what is better is reactive data binding over the socket. Let the browser maintain a DOM tree that templates over a JSON object, then reactive-ly update and it's an amazing experience. You have minimal data transfer, and minimal rendering updates. There is a great deal of power in having your UI be a stateless function over a giant JSON object.

Finally, the big challenge is dealing with the server state in a meaningful way. The exceptionally nice property of using request response for everything is the shared-nothing stateless nature of the web server. It's exceptionally forgiving in both operational and developer issues.

It's very easy to fuck up the implicit state tied to the connection, and this requires discipline to get right. It's very easy to ship unreliable software that then has issues based on the connection.

Now, I'm a HUGE believer in that we need to use streams for everything, but it requires a mind shift. The key thing to tackle is dealing with the server side state, and this is where I have my shitty idea of a programming language for board games. In essence, I am building a DIY database such that people connect directly to the database and get that sweet giant JSON object along with a stream of updates.

The DIY part is related to the fact that I invented a programming language to transact on the JSON object such that you get all the benefits of durability with the mental model of working within a single machine.

http://www.adama-lang.org/

comment 5y ago · link · parent

So, I like the idea and I'm starting with a Niche: board games! Yes, that's right, it's me pimping my programming language for board games which I really need to work on more

http://www.adama-lang.org/

I see a lot of potential outside of my space since I'm operating at the level of a document + atomic transactions + workflow, so I may have something more broadly applicable. However, the burden rests with me to paint the picture for how that could work.

comment 5y ago · link · parent

So, I don't study for interviews because I practice the fundamentals all the time by writing code at varying degrees of complexity. For instance, a silly side project of mine has me writing my own UIs with canvas. Is this a good idea? Well....

The core challenge is there is the job of understanding the machine and the science, but then there is the task of building products for humans. We only have a good sense of how to measure one and not the other.

The frustration that I have is that knowing the machine and the science is like... less than 5% of the job (and that's being generous). Fortunately, I made a good career in infrastructure where instead of 5% it is more like... 25%... as the architect.

comment 5y ago · link · parent

You may be my ideal customer. I hate modern web development, and while there are other domains to explore they are low level.

For instance, Excel for me is the tool to use for a lot of numbers work, and I find Excel exceptionally more fun than a PL. However, it's not the way to make apps.

Now, if I wanted to build apps using the fun approach of Excel, then I can do it now with my new and shiny programming language for board games: http://www.adama-lang.org/

Yes, I wrote a language for board games! Why? Well, I'm a dummy. Ultimately, I'm trying to make it effortless to connect people around some state and what-not. I hate databases, and I have spent the last decade in infrastructure understanding the problem space.

Now, I am finding myself want to effortlessly build the user interface to the board game back-end, and so here I am foolishly inventing a new way to think about building products.

I believe your definition of fun is appropriate, but the bad news is that we are living in the dark ages. The only way out is to try to invent something, risk failure, risk scorn from our peers, and hope that we discover something. It's the only way out of the dark ages.

comment 5y ago · link · parent

I look at the imperative programming model as the escape hatch, and I'm focusing first on data. My next step is to build UIs and look into AI.

For instance, I've build the entire back-end for Battlestar Galactica ( https://boardgamegeek.com/boardgame/37111/battlestar-galacti... ). I can't release a product around this as the IP is not mine, but it is a good foil. I play a bunch of games, and it's hard to boil down every game into a concrete set of rules.

So, my strategy relies first on getting (1) data synchronization, (2) privacy, (3) multi-user transaction flow , and (4) durability of state on solid ground. Once the foundation is good, and the foundation can grow into other domains (like converting Excel worksheets into web apps) then I can ask what models, idioms, and ideas do I want to layer on top of it.

The hard part, it turns out, after the back-end works is getting a usable UI. This is my current focus, and I hope to have results sometime this year with my silly approach.

comment 5y ago · link · parent

Will do, I have a large task on my hand, and I appreciate the feedback. I'll definitely do that both on the github and main site.

comment 5y ago · link · parent

I read this and the comments, and I can't help but feel... a loss for everyone.

I was a graduate student, and I met some fairly miserable professors toiling away. It's hard having ideas and then lacking the social skills to bring them forth. The social skills help with relevance, but also relating the internal ideas with external ideas and building real momentum.

There is a lesson here for anyone young.

The mistake here is to assume genius internally. Rather, it is better almost categorically to assume you are an idiot and then talk with others without the ego. "Hey, here is an idea" and many times others will not get it, and that's ok because communication is exceptionally hard.

However, if you want people to call you genius, then all you have to do is be around people and then help them with their ideas. "Have you tried X?" in an applicable way, and people will respond because you bridged the gap between their problems and your deep understanding.

As an example, I have a lot of dumb projects that excite me. One of them, which I refer to a large number of times, is my dumb programming language for board games ( http://www.adama-lang.org/ ). When people don't get it, is it their failing or mine? The truth is that it is a mix of both, but it is mostly mine because I have the burden to communicate effectively.

comment 5y ago · link · parent

http://jeffrey.io/my-story.html

I intend to consolidate a lot of my writings at https://darklord.substack.com/

comment 5y ago · link · parent

As a math person and technical person, I find myself so glad that I stayed out of academics and dropped out of my masters program to start a company.

This story is exceptionally inspiring because it speaks that we need people that are passionate to focus without worry of basics.

We need true believers to throw their lives at a hard problem.

The challenge is money. It is so easy to waste. It is so easy to squander on dead ends. This ease makes people conservative and less bold because we make it so hard to get.

It's clear we don't have a good system. I had hopes that I could pursue my passions within big companies by climbing the ladder, and that hasn't worked out.

Fortunately for myself, I can retire at any moment and throw my life at my silly programming language: http://www.adama-lang.org/

Perhaps, there is wisdom in teaching finance to everyone such that people can focus on productive existing problems that yield fruit. This helps contextualize people towards present day concerns and the nature of problems. Then, if people leverage the beauty of wall st then more scientists can throw their lives towards good problems.

I don't know, but I'm sure many of us wish we could align funding with passions without the need to build a company.

comment 5y ago · link · parent

I think the best bet to remain independent and be provocative is to retired. I'm preparing to join the FIRE movement, but I'll do my own thing on my own dime because I spent the last decade bending the knee to corporate overlords. I have learned much.

comment 5y ago · link · parent

Given all the importing it does from the variety of finance places, what they charge is reasonable. It all depends on your opportunity cost and value of your time.

I do agree that most people really don't need it, and they need to simply report their wages and submit an 1040EZ.

comment 5y ago · link · parent

Or they are young? I have been impressed with how many interesting discord communities there are, so I don't get this vitriol.

comment 5y ago · link · parent

I'm appreciating this because I'm seeing the value of single process and single machine workflows. And this is after spending a decade on massive scale distributed systems, so I know that 98% of all people don't need scale.

My bet is on a single document server, and I'm writing a programming language for board games : http://www.adama-lang.org/docs/what-the-living-document

While I do see a future of the concepts I espouse as I'm making the language feel like an excel-reactive environment, my focus is on having fun. This year looks to be a slow year for the language as I built up some UIs for games.

Litestreem looks very interesting because it may be the missing piece where I could leverage it to get durability of a single database.

comment 5y ago · link · parent

me too.

comment 5y ago · link · parent

My advice to anyone that starts off loving code: focus on maximizing your revenue, minimizing your cost, and be careful with your commitments. One day you will hate working with these damn machines, and it isn't the machine but everything else.

My target goal is to retire soon-ish, and I'll dick around with my own stupid programming language around board games: http://www.adama-lang.org/

I don't intend to rally stake-holders about it.

I fully expect to tinker on this for a decade without any love, and that's just fine with me.

I don't intend to defend my decisions, or justify why this thing exists.

comment 5y ago · link · parent

It has to do with equity, and the narrative is that if everyone had opportunity then things would be better.

This the beauty and the paradox of diversity. It's great that we have such a wide array of possible activities to excel at, but it's a tragedy that not all activities are well rewarded by "the system". A great tragedy is the sheer number of activities can cause some people to shuffle between them until they find the one they may have any hope of excelling at (assuming it is even possible or if they have the energy to do it by the time they find it).

comment 5y ago · link · parent

you can do both, but generally when you take on serious tech challenges it humbles you. As an example, I used to work on Amazon S3, and that was a humbling experience. Unlike a lot of people that bounce after a year, I stuck it out for 3.5 years which is the shortest term on my c.v.

Now, part of my time there was massively refactoring a critical service to maximize test coverage, reduce memory footprint, improve reliability, measure new things, make the system more durable, and introduce new features. It was exceptionally serious and difficult, and if I made any mistake then the internet would effective go down.

After the fact, yes, I can be boisterous because I did serious shit without fucking up.

comment 5y ago · link · parent

comparison is the thief of joy.

comment 5y ago · link · parent

It's more practical than that.

I have no problem hiring people, but I want to them to do work rather than other shit. However, people need so much care that it is so draining.

The crazy thing is that these problems don't manifest until a business is reasonably successful and the medium growth spurt happens. That's when you need to get HR, and at the moment the business becomes a prison.

comment 5y ago · link · parent

Yes, I am no saint.

I accept that I'm a dumb dirty primate.

The problem now feels that we have a minority of very loud people that cause expensive problems.

I can't wait until I have AI to amplify myself.

comment 5y ago · link · parent

The sarcasm may not be too far off. I used to have ambitions to build a company, but now the future plan is to pick up the task of being a solo developer. Why? people are the worst and I have no desire to have anyone on payroll.

Those workers are definitely a temporary problem until those warehouses are 100% automated. Once all the people are gone, all the labor concerns are gone as well. No more safety. AC costs are minimized to what is needed for product safety. No more restrooms with no more plumbing. Just machines which ingest goods and distribute goods.

comment 5y ago · link · parent

I'm thinking the phenomenon is related to "Incel".

It's a laziness trap, but it has become a lifestyle for some. I don't agree with it, but it exists.

comment 5y ago · link · parent

I think the Unix philosophy which many of us strive to do would have key pieces of software do as few of things as possible, so divesting from print allows other applications to do that better.

comment 5y ago · link · parent

I think using new fangled technology for habits doesn't work, and habits that require hacks is not ideal.

What I do these days is focus on habits-efficiency. What kind of self care must I do so I don't feel like shit, and I have a sheet that I use to keep track of what needs to happen. The best part about this is that I get that sweet-sweet dopamine hit from checking a box.

The list of things per day: daily chore, morning meds, morning supplements, stretches, breathwork, squats, treadmill miles, chest exercises, dumb bells, kettle bells, fasting until (noon, 2pm, 4pm, 6pm), brush teeth at 6pm, resume fasting at (8pm, 10pm, midnight), did I poop, how many bottles of water did I drink, did I adher to the scheduled diet, take evening supplements, evening breathwork, am I heading to bed before 12:30am, and what was my weight before bed.

Such a system (which I am continuing to refine) helps me, a highly randomizing person, get my shit together so I'm losing weight and feeling pretty good.

So, I'm not sure what you mean when you say habits don't work.

I think the key is finding the discipline style to ensure we live well considering our environment is way too lax and permissive of unhealthy behaviors.

1
252627
57