HNHacker News
TopNewBestAskShowJobs

onetom

255 karma · joined October 26, 2009

[ my public key: https://keybase.io/onetom; my proof: https://keybase.io/onetom/sigs/uy9zkyX7ZPfhmaA2RIGTwrDaU0M4zUFBXYVe_UUq4ME ]
submissionscomments
onetom··on AWS US East is experiencing high error rates on several services
nadam said 10 seconds, not minutes.

we are using the starter version combined with dynamodb in production and we found the payment structure very clear; no obfuscation whatsoever, unlike a microsoft or adobe pricing matrix ;) (it's made by the same guy who made the very open source clojure programming language, btw, and he is very much against obfuscation)

anyway, it's a competitive advantage for those guys' who are building a bank on top of it in brazil (https://www.youtube.com/watch?v=7lm3K8zVOdY). we feel we can avoid writing a lot of authorization and audit log code by using datomic, maybe u can save such work too.

onetom··on AWS US East is experiencing high error rates on several services
It is closed source, just like DynamoDB.

However - unlike DynamoDB - it has a quite usable free version and an even better starter version, which are good enough for production use. (The DDB local version is really only good for development) By production use, I mean for example a non-replicated MongoDB/PgSQL/MySQL, which is what I see from many smaller companies... They would be already really better of with Datomic.

If you really need more features, like high availability and transparent query caching with memcached, then the cheapest paid version has a one-time cost of $3000: http://www.datomic.com/pricing.html

You can easily save that amount of money by not spending 3-6 months developing tons of unnecessary queries, try to maintain that code and try to optimize its performance for scale...

On the "open-sourceness" note, I feel obliged to mention https://github.com/tonsky/datascript which IS open-source, and has a Datomic-like interface, but it's "just" an in-memory implementation.

But we are getting off-topic here I guess...

onetom··on AWS US East is experiencing high error rates on several services
I would highly recommend http://www.datomic.com as a database for multiple reasons, but one of them is that fact that it's totally portable between DynamoDB, PostgreSQL, MySQL, etc.

You can create a Datomic backup from any of these databases and restore them into a different one with the exact same semantics.

onetom··on The sad state of web app deployment
I find it interesting that no one has mentioned http://nixos.org even here on HN...

Isn't it suppose to address most of those grieves the author was complaining about (and I have also experienced so I have up on Ruby years ago and did some nodejs but that's not really different either)?

onetom··on ClojureScript Blues
Update on figwheel vs boot-reload from some contributors of boot-reload:

- "Figwheel has more bells and whistles but the core functionality should be very similar" -- martinklepsch

- "...reloading individual namespaces isn't as useful with a Hoplon app as it is with for example react" -- micha

I haven't remembered this 2nd statement well, so I my corrected statement:

* figwheel at it's core is the same as what boot-reload can do for you if you develop a Hoplon app

onetom··on ClojureScript Blues
* figwheel -> https://github.com/adzerk-oss/boot-reload It's not as smart as figwheel because u can lose state, but it's mostly enough. We are actually quite fine with reloading the page manually most of the time.

* uberjar: If you use http://boot-clj.com/ instead of lein, you won't have issues with left-over files, because boot allows every build step to create a unique temp dir which gets erased on next run. Content amongst these temp dirs can be shared by a git-like object store and build tasks pass a virtual immutable file-system (called a fileset) between each other.

* templating: http://hoplon.io/ Your page is not a big data structure. It's an actual Clojure program, which generates DOM Elements directly. You can even call DOM Elements as functions to alter their attributes or their DOM children. Combined with https://github.com/hoplon/javelin you get reactivity in an unobtrusive way. You can separate you app state with it, just like you put data into a spreadsheet and wire up a chart to it which will update automatically. Your DOM is the equivalent of that chart in this case.

* cljs repl -> https://github.com/adzerk-oss/boot-cljs-repl but in practice it was hardly ever used by boot/hoplon people, so it's a bit neglected now.

* server-client state sharing: Hoplon + Javelin + https://github.com/hoplon/castra It's a bit under-documented... probably because it's so super simple... :) Castra does a remote function call via XHR and puts the result into a Javelin cell. If that cell is wired up to a DOM element (attribute or content), either directly or transformed by a formula cell, then your DOM updates automatically once the XHR call finishes. Errors are placed into an error cell, which can also be wired to the DOM...

* Falcor / GraphQL ... I have NOT done this yet but I'm planning to "just" pass Datomic queries via Castra to the backend and that's it. I can't "subscribe to live query" this way, but that's good enough for us. It's also just 1 HTTP end-point. No more RESTful rigidity... ;)

* Vim/REPL: We are just fine with the good old `(print)` and `(serve {:reload true})` from https://github.com/pandeiro/boot-http on the backend. Also we just use Sublime Text with paredit and lispindent. It's super fast even on 4-5 year old machines...

* Chestnut template / plugin: With boot this problem set shrinks to a size where distinction between template and plugin vanishes. You can create a .jar which defines a boot task. That task either creates a template project or defines a build step which u can intermix with other build steps using plain-vanilla function composition. Your environments are also just tasks combining specific build steps with specific options. Nothing custom or magical.

* Om: Again: Try Hoplon. Fraction of the complexity.

* CLJSJS: Your worries regarding extern files and maintenance are not a problem in practice really. We are maintaining a Semantic UI package https://github.com/exicon/hoplon-semantic-ui and just the other day I whipped up externs files for Google Analytics (3 lines), HubSpot (5 lines), Inspectlet (6 lines). See https://github.com/exicon/homepage/tree/master/src

Disclaimer:

I've started using Clojure ~10month ago.

Never really used Lein but experienced all of its pains via Grunt and Gulp I suspect...

Trained ~8 people to work with Boot & Hoplon during these months by pair programming with them. We don't really miss anything else, though we looked into Emacs, Vim, IntelliJ, LightTable.

There are some rough edges and missing documentation, but http://hoplon.discoursehosting.net/ and the #hoplon & #boot channels on http://clojurians.net/ Slack and freenode IRC https://botbot.me/freenode/hoplon/ were more than sufficient.

onetom··on Ritzy – A collaborative web-based rich text editor
i hit the same things on mac, like ctrl-a/e. couldn't jump to the beginning and the end of the file either. i tried various shift key combinations until i finally inserted some special character which i couldn't delete. all this happened within ~20seconds of trying it. not sure what to conclude from it; im still in shock. somehow the language of announcement is not in line with the capabilities of the tool. it suggested something more mature.
onetom··on Clojure build tool Boot 2.0 RC1 out now
I was using `grunt` and `gulp` to build Node.js and AngularJS projects but I have to tell even boot 1.0 felt like a great step forward compared to them, despite of the abysmal startup times.

It allowed us to just jump into Clojure development from one day to the other while understanding what is the build system doing. I can't tell the same about the prepackaged grunt and gulp files which come with certain key-turn projects.

onetom··on Ask HN: Experienced dev having career lull
You just cast some light on a major misunderstanding.

It's irrelevant whether would you like to take a trip or not. It's like medicine. Many of us know how it works. You should try taking it even if you don't feel the urge. Based on what you said so far, it's very likely to be effective.

For example I went on a 5 weeks, inter-Europe trip in 2004 with MPlayer A'rpi when he was heart broken. All of my friends said I'm crazy to recommend such a remedy, but it worked! :) We were ~27yrs old only though...

I would be delighted to talk about meaningful work with you. I see soooo many problems in the world unsolved... many just in software land. The amount of knowledge required to evoke the help of hardware of software to solve real world problems is just ridiculous and very prohibitive for people who otherwise understand the problem domain well and have probably good ideas for solutions.

We will never know though whether their ideas were good solutions or not, because it's just beyond their capacity to learn all that bullshit we call "programming" nowadays.

Rebol, the http://easiestprogramminglanguage.com/ showed a possible direction. A friend of mine is pursuing that direction by writing a modern incarnation http://www.red-lang.org/ He gave up his job, retreated from Paris to Montenegro and in the past 3 years he was living on donations, then just moved to Beijing recently for incubation at InnovationWorks. He is your age too...

onetom··on Ask HN: Experienced dev having career lull
Just saw this, but I don't see it as an excuse for not travelling. I also have a son in Hungary, still I left to Japan when he was 3. I'm also writing checks (not too large ones from my perspective, but still...) We were not married ever though, neither did we permanently live together.

It was 7 years ago. I've never been back. During this time we found out he has Asperger's syndrome, but I just can't regret leaving them.

I married a 38rys old Thai lady ~5yrs ago; I'm 37. She has a daughter (15yrs old) studying in Thailand and visiting us in Hong Kong whenever she has a school holiday. Before that we worked in Singapore and she visited us there. While I regret we can't live together, it's not sin not to. You should not treat it as such a hard constraint.

"I have my kiddo 50% of the time" cries for some clarification.

1, Does it mean you _have to_ take care of him every second day, week, month or year?

2, Or maybe - knowing the ridiculous laws - it's actually just the grace of the jury that you _can_ see him/her, _if_ you want?

3, Or is it the other way around that your ex-wife is actually not capable of taking care of the kid, _but_ the jury still granted her 50% of the time?

If the kid's age permits, you should bring him/her with you to Thailand when school holiday kicks in.

I don't see how your self-sacrifice is really beneficial to anyone really...

Were you born to get tanked with your life after all that effort you put into what's your passion was? All the potential you carry in yourself can help not just your kid but many more people on the long term, young or old.

Having a break of a month or 2 can only be beneficial to your whole family.

onetom··on Ask HN: Experienced dev having career lull
Maybe visit Thailand...? And I don't mean a "Hangout" style, Bangkok only trip, but more like travel across, see all ends of it, observe the people and their attitude towards life, look into what do they consider problems... Then Cambodia, Vietnam, Myanmar, India if you got used to Thailand.

It's really transformative. (while not even very expensive)

The Philippines, Malaysia, Indonesia is too easy; too many people speak (some kind of) English there.

onetom··on APL – a Glimpse of Heaven (2006)
+1 for sharing it github (although git sucks ;) have you actually read the glimpse of heaven article? the tone of your comment made me suspicious... :/

i have basic, z80/x86/pic asm, forth, pascal, c, rebol, bash, awk, ruby, js experience. i've seen the game of life live coding demo a few years ago and also played with j while it was still closed source. to put it into perspective, im only 38yrs old.

after reading this glimpse of heaven apl article, its vibe hit me so im circling back to apl for the 3rd day already. i find it fun and elegant. the the keyboard layout is not an issue either; ⍳⍴×←=⍺⍵⌈⌊ were all very natural after a few minutes.

i would say, u would benefit greatly from learning apl. it's definitely not the past.

just have a look at the nile language for example: https://raw.github.com/wiki/damelang/nile/socal.pdf

bret victor wrote a nice interactive visualizer for it in js: http://tinlizzie.org/dbjr/high_contrast.html

cool shit is coming up and you will be left out if the only thing is c++ which you are comfortable with...

also it sounds quite heart breaking how you discount your grandfather's work... kinda disrespectful... and you are even wasting his time left on earth by recommending him to learn python? just spend a few hours with apl and it should be clear to you too why did he say python sucks. maybe try to implement a bit of his code in python or on a spreadsheet. that should be quite informative (and probably transformative) too.

onetom··on ReCode - Rebol / Red conference | Montréal, Canada July 12-14
I'm coming!
onetom··on REBOL 3 Source Code Released
A pretty full featured web server: http://cheyenne-server.org/

But I also built an infrastructure configuration server from the 2kB http://www.rebol.org/view-script.r?script=webserver.r to avoid LDAP/Chef/Puppet and similar bloatwares.

What do you consider a Unix tool? File and directory handling and serial port access just as HTTP/IMAP/POP/SMTP clients are all built in. See http://www.rebol.com/docs/core23/rebolcore-12.html and http://www.rebol.com/docs/core23/rebolcore-13.html

Instead of lex/yacc it provides the parse function and instead of grep it also provides the parse function (with a more readable BNF-like syntax, which is less effective to write for very small hacks, thats true).

onetom··on REBOL 3 Source Code Released
Red is like a modernized Rebol, so if you learn Rebol, you have (mostly) learnt Red too.

Red doesn't constrain the anti-complexity fight to the language itself, though. It can already set you free from the "mother of all bloatwares", the GNU compiler toolchain and the "inherently insecure" C language.

Simply (hence a bit inaccurately) put:

You can write programs with the same logic and concepts as C but with Rebol syntax. It's good because it has a simpler&less syntactic sugar and allows unicode words as identifiers.

Such a "source code" is valid Rebol DATA too, so it's easy to introspect, transform, analyze, decorate it, you don't have to parse it as string...

You can compile - for example - a Linux ELF executable for the ARM processor on an x86 Windows machine and all you need is:

1, the ~300kiloBYTE rebol.exe (just 1 file!) http://www.rebol.com/downloads/v278/rebol-core-278-3-1.exe

2, the ~400kiloBYTE https://github.com/dockimbel/Red/archive/master.zip (from which the compiler is ~100 script files...)

NO MORE automake/autoconf coming from packages depending on m4, make, awk, sed, tr, etc and of course "need" a package manager which depends on perl/python/ruby and their "standard libraries" which alone are stored as a sea of small files, theeeen u need GCC with the ocean of .h files also packaged as *-dev packages coming with their meta info in their own files, etc etc...

Feel the contrast?

So Red is really super-cool, but for now it still depends on the ultra-small Rebol binary...

onetom··on REBOL 3 Source Code Released
The "Script library" for Rebol is here:

http://www.rebol.org/script-index.r

onetom··on REBOL to become open source
there were 123+236 comments on it until now. it just didn't happen on hackernews but on carl's blog instead: http://www.rebol.com/cgi-bin/blog.r?view=0511#comments http://www.rebol.com/cgi-bin/blog.r?view=0510#comments

im wondering why people weren't so sour about the open sourcing of doom or quake. i know it's kind of comparing an apple to a (non-chinese :) pear, but still... :)

onetom··on How I Overcame Bipolar II (and Saved My Own Life)
so, drinking nescafe gold decaffeinated is a safe choice of coffee, right? because im drinking it for the taste only, without sugar but with milk...

coffee was definitely not helping with my ADD / ADHD... im on ritalin / concerta 54mg for 2 weeks now, stopping for the weekend and it works great so far with a slight sleeplessness and a little loss of apetite which i perceive as normal apetite actually, since im over weight. i have more inclination for riding the bike too.

IF u have

- focus problems

- sleeping issues at home or at work

- lots of great projects which u haven't finished for months or years

- fluctuating work / sex performance

- alcoholic or drug abusing parents / grand parents

i would highly recommend to learn a bit about ADHD via Dr. Edward Hallowell's "Delivered from Distraction" book ( http://www.drhallowell.com/books/delivered-from-distraction-... ), because you have a high chance to seriously suppress these problems with some medications OR simply life style changes.

in my case i have pretty high sensitivity to sugar and certain carbs. i feel so sleepy after eating rice or drinking a liter of even no-added-sugar fruit juices, as if my head wants to fall off. my mother is diabetic, btw.

onetom··on Ask HN: What are you working on?
what about http://www.picolisp.org ?

fuck compilation.

fuck lexical scoping.

do something for real in lisp, like

* entity relationships over a graph db

* webframework

* flightsimulator

← PreviousPage 8 of 8