HNHacker News
TopNewBestAskShowJobs

andreypopp

1,040 karma · joined June 30, 2011

just sitting there, looking shiny...

https://github.com/andreypopp https://twitter.com/andreypopp

submissionscomments
andreypopp··on JQuery 1.11 and 2.1 Released
Not sure if bower has something to do with npm cause it's a separate package manager.
andreypopp··on React: Finally, a great server/client web stack
You can see a little demo of React + Express + Browserify + server side rendering + routing with History API — https://github.com/andreypopp/react-app-express
andreypopp··on Koa – Next-generation web framework for Node.js
I think does yield as stated in docs. Go have coroutines so there is no need in generators.
andreypopp··on Show HN: Myth – CSS the way it was imagined
Myth uses autoprefixer[1] so you can use it directly if you don't need other features. It "just works".

[1]: https://github.com/ai/autoprefixer

andreypopp··on Show HN: Myth – CSS the way it was imagined
You can have mixins with rework-macro[1] so it would be very easy to integrate it with myth if needed (myth is based on rework).

[1]: https://github.com/andreypopp/rework-macro

andreypopp··on CSS Variables in Firefox Nightly
There's rework-vars[1] for rework[2] which provides CSS style variables but w/o inheritance so it's not a polyfill technically.

[1]: https://github.com/visionmedia/rework-vars [2]: https://github.com/visionmedia/rework

andreypopp··on Chrome and Opera Optimize for Mozilla-Pioneered Asm.js
> If you specifically make changes to your site in order to make faster on IE6, and it also makes all other browsers fast, the "all other browsers" part is best described as a side-effect.

So did the v8 team do something specially to make asm.js faster? As mraleph said, the answer is no. So the fact that asm.js is now faster in Chrome is side-effect.

andreypopp··on Walmart Node.js Memory Leak
> As far as httpc, I'm unaware of that bug -- but I can say that I recently worked on a commercial product that leveraged httpc as a core component of the service, and it worked fine.

It was fixed soon after discovered.

andreypopp··on Walmart Node.js Memory Leak
Well, it's a part of OTP, which is, I believe, "the true" stdlib of Erlang.
andreypopp··on Walmart Node.js Memory Leak
2 or 3 years ago I hit memory leak in Erlang's stdlib's httpc... just saying.
andreypopp··on ClojureScript 101
Recreated in pure js with ES6 generators — http://andreypopp.com/posts/2013-11-09-recreating-core-async...
andreypopp··on Hstore development for 9.4 release
Yes, this is what index scan performance metrics is about — PostgreSQL outperforms MongoDB here.
andreypopp··on Hstore development for 9.4 release
This is impressive but not really surprising given the quality of PostgreSQL database. Quote:

"We added performance comparison with MongoDB. MongoDB is very slow on loading data (slide 59) - 8 minutes vs 76s, seqscan speed is the same - about 1s, index scan is very fast - 1ms vs 17 ms with GIN fast-scan patch. But we managed to create new opclass (slides 61-62) for hstore using hashing of full-paths concatenated with values and got 0.6ms, which is faster than mongodb !"

andreypopp··on Sir Trevor Editor
You might want to see my take on a concept of a structured block-based editor for Markdown — http://andreypopp.github.io/markstruct/

It's still a rough draft — so expect it to work best only in Blink/WebKit now.

Some shortcuts:

* Arrows — move between blocks

* Shift + Arrows — rearrange blocks

* Enter — creates a new paragraph

* Esc — merge with previous block (only for text based blocks, remove current block otherwise)

* If paragraphs starts with # it transforms into heading (repeat # for more heading levels)

* If paragraphs starts with ``` it transform into code snippet

* Images are entered as ![](url)

* HR — *

It's just about 500LOC, Thanks to excellent React[1] library. No inline markup yet, but it's not difficult to add. Also needs some more polishing and tests.

[1]: http://facebook.github.io/react/

andreypopp··on Ghost Launches to The Public
Which in this case would make things a little more difficult cause Ghost uses SQLite and Dokku can't deploy apps which use it because of default Node.js Heroku buildpack which prohibits SQLite usage. You can patch a buildpack though.

For example in my fork of Dokku I replaced Heroku buildpacks with plain Dockerfiles to define both a stack and a runtime dependencies — https://github.com/andreypopp/upaas

andreypopp··on Bluebird – A full-featured, fast promises library for JavaScript
Ok, sometimes kew is faster, sometimes bluebird, submitted a PR
andreypopp··on Bluebird – A full-featured, fast promises library for JavaScript
Kew[1] is still faster, working on a pull request with updated benchmarks which include Kew.

[1]: https://github.com/Obvious/kew

andreypopp··on Docker + Red Hat OpenShift = The Tipping Point for Open PaaS?
Did you try Dokku[1] (git hook + Heroku buildpacks + Docker)? You can build/deploy several apps to docker containers using git push. It has PostgreSQL plugin and exposes your app via nginx. Of course it wouldn't be 100% usable as-is, but its codebase is very hackable — around 150LOC.

For example I've forked it to built a μPaaS[2] — it has out-of-the-box integration with upstart (for supervision and logging) and replaced Heroku buildpacks with the ability to define stack in Dockerfile (which is much simpler).

[1]: https://github.com/progrium/dokku [2]: https://github.com/andreypopp/upaas

andreypopp··on Yeoman 1.0 Released
Why do you think npm can't be used for browser apps? I publish all my browser code on npm and then use it via browserify. That way I started to write a lot more code which works both in browser and in node.
andreypopp··on Nginx Plus
Of course he needs your money — it will be used to help children in Uganda — http://www.vim.org/sponsor/index.php
andreypopp··on Callbacks are Pretty Okay
> Another thing is that the author himself states that the function doesn't actually makes sence, hence the ugly name.

That's the point — using callbacks you end up with functions which do not make sense...

Edit: spelling

andreypopp··on Callbacks are Pretty Okay
It's like you didn't read my comment — how functions like wtfFriendAction help reusability?
andreypopp··on Callbacks are Pretty Okay
The problem with callbacks is they are not about reusability — they force you to organise your code around I/O and not around your app logic... hence the names like wtfFriendAction.
andreypopp··on Error handling in Node.js and Express
I didn't say it is impossible, it just sucks compared to other platforms/languages.
andreypopp··on How to build a large Angular.js application
I think 9K lines of code using framework which is meant to be "high-level" is a pretty big code base.
andreypopp··on RethinkDB 1.8: date support, querying nested objects, 8x disk usage improvements
Being a heavy PostgreSQL user I really would appreciate a "How RethinkDB compares to PostgreSQL" FAQ entry.
andreypopp··on Error handling in Node.js and Express
So Rack doesn't handle errors properly now?

Node.js error handling sucks, period.

andreypopp··on Deis: Open Source PaaS based on Docker, Chef, and Heroku Buildpacks
Startup idea:

1) crawl HN for links about X with comments like "How does this compare to Y"

2) present it as a knowledge base of technologies with comparison tables

andreypopp··on Node.js Deployments with Docker, Dokku, and Digital Ocean
Does that mean Ubuntu on DigitalOcean has Docker support out of the box?
andreypopp··on Snowden granted 1-year asylum in Russia, leaves airport
What exactly do you find strange with this?
← PreviousPage 4 of 5Next →