Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mtanski
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
391.
▲
by
mtanski
12y ago
You're probably better if using Cephfs or Lustre then NFS. Linearly scalable, no SPOF (single point of failure).
392.
▲
by
mtanski
12y ago
From the github page it looks like external folks are submitting pull requests. It looks like they require external people to sign the CLA, but it doesn't look like it's a case of "good luck making any changes that help you b
393.
▲
by
mtanski
13y ago
You are correct.
394.
▲
by
mtanski
13y ago
One of the things to keep in mind here is that this trick won't work or work as well for every architecture or every processor family in that architecture. Some architectures do not support unaligned memory access and will raise an exc
395.
▲
by
mtanski
13y ago
In C / C++ (in POD structs) you can use the pack attribute. Here's more documentation: http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html I would still recommend you try to lay out the struct by hand
396.
▲
by
mtanski
13y ago
Not only that but you can annotate the source and see which function and which instruction (C or asm) caused it. This way you know exactly which field is the one causing cache misses. Dito for branch miss-prediction.
397.
▲
by
mtanski
13y ago
Sid, Looking at your project, did you ever take a look at the Mordor C++ library ( https://github.com/mozy/mordor )? It looks like it predates your project by a quite a bit of time. It looks like you have a fun project o
398.
▲
by
mtanski
13y ago
I haven't used boost::coroutine but I have experience working with Mordor ( https://github.com/mozy/mordor ), swapcontext directly and implementing my own swapcontext. Why implement your own swapcontext? Well, the d
399.
▲
by
mtanski
13y ago
pron, I saw your Quasar library before and while I hadn't had the chance to use I'm excited to try it the next time I need to write event code in the JVM. As far as the disk IO is concerned the Java APIs are only as good as the un
400.
▲
by
mtanski
13y ago
Thanks for providing the link and it does seam like an interesting proposal. To summarize: Switching into ring0 (kernel is not that expensive) We're going to stay with the 1:1 thread model We're going to provide an new syscall to
401.
▲
by
mtanski
13y ago
Oracle uses AIO on most operating systems. It implements it's own block and buffer cache so the kernel page cache just gets in the way. Since it does it's own block cache, the block size and alignment limitations are not really a
402.
▲
by
mtanski
13y ago
This strikes me a pragmatic decision driven by wanting to reduce complexity and be interoperable with 3rd party libraries (mostly C code). If you read my other comment here, I outlined the problems I ran into with the N:M threading model (a
403.
▲
by
mtanski
13y ago
I've also have come full circle on N:M / green threads. Now I'm back to thinking they aren't worth the effort / pain. My experience comes from C / C++ land and not Go and Rust but I think same lessons apply. In
404.
▲
by
mtanski
13y ago
It doesn't mater if it has over 4GB of physical memory. What matters is that it has 64bit address space. Memory is abstracted away from the app by the OS and for many applications 32bits is too small. Example of such apps include A) Ga
405.
▲
by
mtanski
13y ago
I personally really wish people would put their focus on the IMPORTANT privacy issues instead of hanging onto every time someone mentions sharing data. In my mind it dilutes the message. I consider important issues to be ones like stories o
406.
▲
by
mtanski
13y ago
For every opening at a start up like this there is another one at a start-up that pays market rates, offered comparable benefits and gives a fair piece of equity (realizing that there is a tension between salary and piece of the pie). Hopef
407.
▲
by
mtanski
14y ago
I forgot to add that C++ is a big language so I doubt that anybody out there can hold all the corner cases in their head without going to documentation.
408.
▲
by
mtanski
14y ago
Sorry for being overly vague with the term "good". I guess I would break it down to 3 categories. 1. Solid understanding of CS concepts. You don't have to build a Red-Black tree in the interview (ugh) but you should know properties of self-
409.
▲
by
mtanski
14y ago
With all these folks excited by gcc releases (and really the C++11 features) it would seam like there's lots of folks still using C++. However, I have the hardest time in the world recruiting good C++ engineers (here in NYC at least).
410.
▲
by
mtanski
14y ago
If your planing on working for a longer stretch (4h) in one location then I recommend the Tea Lounger in park slope. There's a ton of comfy space & lax rules on hanging out a long time.
411.
▲
by
mtanski
14y ago
Durring launch week I updated my iPad to iOS6 and used to drive from NYC to Washington DC and back. Addition of turn by turn navigation is a big step forward. So I'm pretty happy. And as a side note I recently switched back to an iPhone aft
412.
▲
by
mtanski
14y ago
One of my favorite interview questions is do binary search when the function prototype is this: int bsearch(int *values, size_t len, int term); By the time we finish going through this exercise. I have a pretty good idea how they do with ba
413.
▲
by
mtanski
15y ago
We're a well-funded startup in the advertising space located in NYC. Currently we're in stealth mode. We're looking for a strong engineer to help us build the front-end (our analytics dashboard) in Python. The front-end is going to be respo