HN user

kolar

23 karma
Posts0
Comments11
View on HN
No posts found.

I can't agree more with this. Maybe 1 song out of 30 in Discover Weekly is worth to be marked as liked.

Be careful when using Postgres as queue with priorites, especially if your messages are large. Removing rows doesn't free up the memory in Postgres and vacuum could remove rows only from the end of a 'page'. As a result of that queue will require enormous amount of space to work. The only way to free up space is to use VACUUM FULL which rewrites whole database and will lock queue for long time. I've had a lot of headaches when we've tried 'use Postgres for everything' on production :)

Genetic Programming tries to do almost the same: ie. generate random programs/expression trees etc and then select the best one. NN gives you two adventages over that: you can optimize weights and do it at scale with current hardware - without those two I can't see the difference.

Dart as a language is great. My biggest complaint for dart team is that they have abandoned Polymer Dart. For web we have now Angular which is overkill for small to medium non-CRUD apps or dart:html which is like jQuery with types, just a little bit to low level.

Games like this one seems to be soo fun but when I'm back home after a whole day of coding I just can't find energy to write any more. I thought: why not create a game where you show examples of 'good' moves to your bot instead of coding them? So I've implemented my idea in https://top-tactic.com/en where you can teach bots to play soccer just by showing examples of good moves. Noone plays it, but it was fun to create :) and great way to gain some experience with neural networks.

I've used Polymer.dart for browser game consiting mainly of simple windows. From that I can say the most important downside is the poor performance on mobile (even with shady DOM). Despite that I'd probably still choose Polymer if I need browser framework because webcomponents encapsulation feels great from developer perspective.