Fork me on GitHub

Nothing wrong with using java from clojure


I have talked to some higher-ups where I work and they refuse to even begin to consider Clojure because, and I quote, "google trends show that the language is in decline" lol


Java is dead, you heard it here first.


@roklenarcic it's not a language. It's a java library.


clojure is on the up on google trends right now…


It's been pretty stable overall tbh


If Clojure is in decline, how come the Clojure conferences seem bigger every year?


@roklenarcic time to change the company?


Been interested lately in the serverless trend, mostly as a way to achieve greater availability / instant autoscaling without all the complexity. I dislike microservices though. I'd rather have one monolithic webapp. Would you say it's possible to drop-in a monolithic node.js webapp (via Macchiato, the cljs framework) and have it run in the serverless environment, not very differently from other setups (like EC2, Kubernetes, Heroku)? Same backend code, assumptions, performance, security (auth etc). The difference with EC2/Heroku that you get better and cheaper availabilty/autoscaling. As for concurrent web capacity, I'd hit the endpoint with e.g 8 parallel pings every 30 seconds, so I can know that there are about 8 Docker instances running at any given time (cold start avoidance). I'd like to play with this approach which seems a bit unusual. I'm just afraid I may hit a roadblock?


Anyone know how web UI's can be coordinated together to form a larger app from several independent webapps? Background,, I've been looking into the self contained systems pattern. Looks really cool, and tremendously valuable for the adoption of new languages like clojurescript. One of the main tenets is that all SCS have a webUI and coordination between SCS's is preferred to be at the webUI level. Specifically: >Communication between SCS can be done in a variety of different ways, but there is a clear preference: UI integration, for example, by transclusion using JavaScript transclusion, ESI, or SSI; asynchronous communication and events; and as a last resort, synchronous communication. Anyone know what that means? ESI doesn't even cleanly google!


The only one I kind of understand in there is events. Like, I get distributed computing via an application log. I'm trying to figure out how SCS handles that from a webUI coordination level


@U04V15CAJ this looks fun! I may give it a try after work. Something tells me that this may be expressed as a linear programming problem, in which case a linear constraint solver will give you the solution. If that fails, the heuristic I'd resort to would probably some kind of 'Monte Carlo' approach, e.g pick 2 edges at random and disentangle them if that reduces the total amount of overlap, with a small probability of aborting this operation to avoid getting stuck in a local minimum.


Yeah cool. Btw, this was a problem in a frontend. I calculated “overlapping”-ness on a canvas: the more colored dots I would have, the less overlap there would be. Not sure if that’s a perfect measure of non-overlappingness. I played around with it a bunch, but eventually settled for a simple 80% solution.


I used randomness but only for certain dots that had a high probability of causing problems.


There are good odds this requires trying all combinations to arrive at the global optimum. There probably exists a good genetic algo that gets pretty close to a global optimum.


Or simulated annealing


That's a good metaheuristic for this


Thanks, I’ve heard that term being mentioned a couple of times before


This looks like something the guys over mathematica's stack exchange would love to answer!