Better HN
topnewbestaskshowjobs
Log inSign up

devbug

886 karma · joined Mar 12, 2012 (14y ago) · 183 submissions

Submissions

comment 10y ago · link · parent

Sounds great! Just ordered a copy.

I really like pragmatic books like this; do you have anything in a similar vein? Specifically, I'm looking for a book focused on the practical application of fluid mechanics (not just plumbing). I know how daunting a subject it is, but that doesn't deter me from learning just enough to be dangerous.

I've been eyeing Granger's "Fluid Mechanics" (and most of the Dover collection in fact.) [1] It's more academic, so I would like to pair it with something more practical.

[1] https://www.amazon.com/dp/0486683567/

comment 10y ago · link · parent

I guess Stripe is now offering short-term lines of credit and handling intra-bank settlement themselves? That or they're issuing a "refund" to do this instantly?

comment 10y ago · link · parent

How familiar are you with the complex plane?

It helped me a lot to be explained quaternions starting from the complex plane. More specifically, by constructively inspecting their properties. There's a great interactive article that gets the pedagogy of teaching such a complex concept (pun definitely intended). Unfortunately, I can't seem to dig it up.

I recall the author's blog using all kinds of CSS and/or WebGL trickery to make 3d backgrounds – anyone know which blog I'm referring to?

comment 10y ago · link · parent

If you haven't already seen it, Dan from Heap Analytics has a great talk about how they use Postgres and Citus.

https://www.youtube.com/watch?v=NVl9_6J1G60

comment 10y ago · link · parent

Exactly. You can't copyright facts.

comment 10y ago · link · parent

Mathmatically, 1-(1-0.99)^100 = ~1.

67.

Technical debt… or technical weight?(bartwronski.com ↗)

1 points · by devbug · 10y ago · discuss

comment 10y ago · link · parent

Regarding Klarna's work on LevelDB + ETS, there's this wonderful presentation given by Mikael: https://vimeo.com/132692834

Here's the slides: http://www.erlang-factory.com/static/upload/media/1434153406...

comment 10y ago · link · parent

How hard have you pushed Elixir in production?

Snide aside, it's not this mystical technical panacea. As for community... it has had a large upswell of Rails developers... for better and for worse.

That said, I've had a wonderful experience with all the places I've used Elixir in production or soon to be in production.

70.

NAT Tunneling Without a Third-Party(samy.pl ↗)

7 points · by devbug · 10y ago · 1 comment

71.

Use Metal to get more RAM on OS X(github.com ↗)

1 points · by devbug · 10y ago · 2 comments

comment 10y ago · link · parent

I've been doing a bunch of graphing for my current projects and have tried a variety of libraries. Chart.js has been the best experience by far. Yeah, there's rough edges here-and-there if you're doing really strange stuff to your graphs like me, but the community around it has been beyond helpful and solving the odd issue that crops up is not difficult at all.

73.

Use OpenGL to get more RAM(github.com ↗)

149 points · by devbug · 10y ago · 55 comments

comment 10y ago · link · parent

Wrapping on the <pre> tags is broken. You need to specify white-space: pre-wrap;

comment 10y ago · link · parent

Exactly! Well, kinda.

You can always throw the NIFs onto other nodes. You can also write ports that are glorified external processes.

Other times, you just need low-latency and high throughput. In that case, you expect failure and design accordingly.

comment 10y ago · link · parent

This unfortunately breaks down with (bad acting) NIFs. Thankfully you can mark 'em as the dirty evil little things that they are (with negligible overhead): ERL_NIF_DIRTY_JOB_CPU_BOUND. [1]

I implore anyone interested in Erlang or its surrounding languages, to read its source code. [2] More specifically, the BEAM. I'll warn you that it's very 80's hackeresque, but in a good way. Incredibly pragmatic. The way they achieve their world-class scheduling? Tip: not via a perfect theoretical design cooked up in some comp-sci lab. [3] If you've been following game engine design within the last 9 years or so, you'll probably have a good idea of how they do it. [4][5]

[1]: https://medium.com/@jlouis666/erlang-dirty-scheduler-overhea...

[2]: https://github.com/erlang/otp/tree/maint/erts/emulator/beam

[3]: https://hamidreza-s.github.io/erlang/scheduling/real-time/pr...

[4]: http://blog.molecular-matters.com/2012/04/05/building-a-load...

[5]: There's a hell of a lot of depth to this problem domain. Charles Bloom's guiding principles for Oodle are spot, and well worth a look.

comment 10y ago · link · parent

In my experience, FindFirstFile and friends don't eat forward slashes, unfortunately.

comment 10y ago · link · parent

I'd love an open-source appliance that lets me turn webhooks (and polling APIs) into a kind of pub-sub. Being able to inspect, modify, and run events would be an "immediately use this" feature set.

It would be something I would pay for to not have to host myself, but iff there's a clear migration path, i.e. it's open-source.

comment 10y ago · link · parent

TLB :)

80.

Triple Entry Accounting(iang.org ↗)

1 points · by devbug · 10y ago · discuss

comment 10y ago · link · parent

Sounds like you know your stuff!

I couldn't find any email on your profile, do you mind sharing it?

comment 10y ago · link · parent

shudder

MinGW is alright... until you try targeting x86_64.

comment 10y ago · link · parent

Happy to help.

To expand upon my 4am ramblings:

There's two ways your code is going to fail, (a) Your Lua is going to die in a pcall (or friends); or (b) Your C/C++ (or similar) code has its front fall off.

In the former case, you just wrap with an xpcall and append your Lua callstack to your C++ callstack. Nothing fancy. You can of course go further, using lua_Debug to get the value of upvals and all that jazz.

However, in the latter case you have no guarantee that your application is in a sane state; you have no (solid) assumption that you can go the lua_Debug route, say from a segfault handler. You'll have to walk the callstack, and when you hit lua_whatever, prod internal state.

Both methods are really helpful. Say you're writing a game engine, knowing how to reproduce a catastrophic failure with a small Lua snippet, closes the feedback loop and make debugging a hell of a lot easier.

There's definitely a product and SaaS around this (much more expanded), with a Gitlab or Sentry business model.

comment 10y ago · link · parent

Immediate thoughts go to `debug.traceback` (via xpcall). You're on your own when it comes to Lua<=>C boundaries, however. Now, if you're talking about _manually_ walking the stack... this will point you in the right direction: http://zeuxcg.org/2010/11/07/lua-callstack-with-c-debugger/

comment 10y ago · link · parent

Awh man is this cool!

I had a similar idea kicking around for a while (for a different market) because you end up managing disparate targets (including multiple digital distributors for one platform) each with their own slightly broken of doing things. It. Sucks. Hard.

Now that I'm only tangentially involved with the market my previous experience (of intense pain) is reduced, but has been replaced with iOS and Android.

I'm looking forward to using BuddyBuild for the next app I work on.

How are you handling the Apple side of things? Last I checked, you had to store full credentials to someone's Apple ID. Looks like you are doing exactly that.

My big concern is that you're siloing my credentials so they won't get leaked. How are you doing that?

comment 10y ago · link · parent

Canada definitely is!

:'(

1234567