Better HN
topnewbestaskshowjobs
Log inSign up

ledgerdev

366 karma · joined Jul 21, 2016 (10y ago) · 239 submissions

Submissions

comment 9y ago · link · parent

I feel most syntax themes are designed for syntax based languages and make the parenthesis far too dark/prominent and it's visually overwhelming.

If you dial back the color of parenthesis and brackets to a lighter grey, the experience is almost like writing python with parinfer.

comment 9y ago · link · parent

You should look into Clojure Spec. It's a very nice balance of trade-offs for helping developers build correct software. While it uses a different approach than static typing, it seems a more natural fit for dynamic languages. Plus it's sort of a toolkit to be used in many different ways.

comment 9y ago · link · parent

Agreed. I suspect one current thing hurting adoption from the JS community is the very heavy JVM based tooling. With the Google Closure compiler now running on top of JS, there would seem to be a path for the CLJS(not clj) tooling to become more JS ecosystem friendly.

For the JS developers out there, is this something that's of interest? Or is the existing tooling(lein) good enough? What would be your ideal tooling story?

comment 9y ago · link · parent

It appears work on CoreRT is still moving along, lots of recent activity, but lots of work yet to do.

https://github.com/dotnet/corert/commits/master

comment 9y ago · link · parent

Clojure is unfortunately implemented in such a way that makes it extremely slow to load/start. It's really only suitable for heavy duty long running servers where you don't care about startup time or resource usage, the exact opposite of what android apps need. It's sort of sad to see such an amazing language packaged up in a J2EE'ish manner.

comment 9y ago · link · parent

> it's pretty awful for most things that aren't Java that target the JVM, like Clojure.

Curious, how does jigsaw make things awful for clojure?

comment 9y ago · link · parent

> Do you have programmable virtual credit card numbers?

Marqueta can do this. You can issue CC's via api, and then fund them with Visa direct. It's amazing.

https://www.marqeta.com/

comment 9y ago · link · parent

I would say just check out the threads for the sort of experiences people are reporting across pretty much every stack from rails to symphony. In my case above it was actually jvm clojure building an uberjar, probably worst case scenario. REPL was usable because it didn't do a any mounted volume access, just network access.

comment 9y ago · link · parent

As far as I know, docker for mac isn't actually usable for dev work if you use mounted volumes. Basically it pegs CPU and makes disk access 10-150 times slower than native which makes mounted volumes impossibly slow. A personal example would be building a jar on a macbook native took 11 seconds, takes docker for mac 9 minutes. See https://github.com/docker/for-mac/issues/77 https://github.com/docker/for-mac/issues/668 and a slew of other reports that can all be traced back mounted volume performance.

Moral of the story I moved to linux.

220.

A Majestic Monolith in Clojure(medium.com ↗)

3 points · by ledgerdev · 9y ago · discuss

comment 9y ago · link · parent

Cool, just today I was just looking for something like sematic/bootstrap.v4 that works well with clojurescript, do you have any suggestions? Have you had any issues pulling in jquery alongside react?

comment 9y ago · link · parent

Thank you so much for doing this, the book is awesome!

comment 9y ago · link · parent

Got to agree with you.

The only thing the CoreCLR might be quicker at is starting up, and maybe a little better memory usage though I don't have any numbers and this is just a feeling from using both. Anyone know for sure on this?

comment 9y ago · link · parent

Sorry it's not clear, but does google cloud sql for postgres have PITR or plan to support it in near future?

comment 9y ago · link · parent

Here's an async JDBC driver. https://impossibl.github.io/pgjdbc-ng/

comment 9y ago · link · parent

Any good walk throughs for fsharp on coreclr with vscode?

227.

Ramsey Nasser on Magic – A Clojure Compiler for CLR(vimeo.com ↗)

2 points · by ledgerdev · 9y ago · discuss

comment 9y ago · link · parent

A full open version would be a major undertaking.

What I've been thinking about about is step in the datomic direction, built on top of plain old postgres that wouldn't attempt full time travel, but would use the same general schema/model with history. It's seems crazy that in 2017 that we don't have a decent general option for most business apps to store facts that doesn't over-write the past as is done in current sql databases.

comment 9y ago · link · parent

David Miller has been keeping it up to date for years, his efforts are not well enough appreciated.

comment 9y ago · link · parent

Doubtful given it's built with C# which is pretty directly ported from the Java implementation.

https://news.ycombinator.com/item?id=1118986

http://stackoverflow.com/questions/491376/why-doesnt-net-c-o...

comment 9y ago · link · parent

> It's unlikely, but it would be great if Microsoft would take ownership of the .Net port of Clojure.

Yes please. Maybe not join the direct CLR port, but rather a "clojure like" language implemented in fsharp, with repl/interactive development, a bit more syntax, immutable data, amenable to dotnet native, and fix clojure warts like bloated core namespace, startup issues, etc..

comment 9y ago · link · parent

Here'a couple for starters.

1. They don't work well in multiple browser tabs. Specifically if you're storing a lot of data in memory it gets duplicated between tabs. Perhaps shared workers might be a solution in the future, but not now.

2. They allow designers to "enhance" the UI in new and wonderful ways, which isn't always good for user experience. It's like being tele-ported back to the windows native apps days. Plain old web apps forced simplicity and consistency in how things worked across the web. With spa's not so much.

3. Harder to test/re-create error conditions because often state of an application isn't represented in the url. (though it can, with good app state storage/structure, actually be better I think)

4. Harder to deploy new versions to apps sitting in users browser. So a user loads your wonderful spa app and leaves it open all day in their browser. You deploy an updated version mid day... how exactly does that user know to load the new version? In traditional web apps, updated versions are loaded on next page load.

5. You have to do something for page loading indication, since the browser no longer gives any indication it's waiting on the server for new data.

comment 9y ago · link · parent

Here's a couple significant disadvantages to the jvm.

A simple jvm clojure app running jetting deployed as an uberjar takes about 12 seconds to start on a 1GB digital ocean vm.

Using jvm clojure as with aws lambda, it takes ~20 seconds for a cold start. Normal java is typically a couple of seconds, and it's likely that a cljs/node instance will be sub-second cold start.

comment 9y ago · link · parent

But wait there's more... the mounted volume performance makes it unusable for anyone using mounted volumes for stuff like say dev work. It's a complete joke.

https://forums.docker.com/t/file-access-in-mounted-volumes-e...

comment 9y ago · link · parent

No kidding, same experience here with docker for mac. Days wasted chasing down problems with a completely un-usable tool. Literally full stop critical bugs that are clear as day yet they release it and call it 1.0? Docker is ruining their reputation with this sort of garbage.

comment 10y ago · link · parent

Here would be my 2 top options and I'd probably get the dell because it has a linux option which I'd like to support, as well as a better screen.

1. Dell precision 15 +IGZO screen, preloaded with ubuntu

2. Thinkpad T460p

comment 10y ago · link · parent

I was curious about the same thing and setup a jvm lambda to test. The setup was served through API gateway, connected to a postgres RDS, selected a couple records from a single database table and returned them as json, and deployed in us-west.

From the west coast, I'm getting between 150ms and 300ms response times for most requests, but it does jump around quite a bit, with occasional requests taking 500ms-800ms to complete.

A lot of the variability seems to be coming from execution time of the lambda itself, which would probably be because of the connection to RDS? I'm using HikariCP so the connection is pooled but maybe something like dynamo would be better.

So latency is all over the place, but generally under half a second.

comment 10y ago · link · parent

The value prop for private or consortium chains is significantly different than public blockchains.

The first point is that it's a shared database that allows organizations to co-operate, with a common view of the world meaning fewer integration points which are exponential as the number of participants grows.

The second point is that none of the individual parties has monopoly control of the "central" database meaning they can't extract excessive rent from the participants and exert political/corrupt influence on the network.

This is my favorite video explaining this and blockchains in general, and this aspect specifically which begins at 23:45 in. The sound is terrible, but definitely worth listening to. https://vimeo.com/153600491

1
45678