Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rumcajz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
82 ms
·
781.
▲
by
rumcajz
14y ago
With vectors erase is O(1) anyway.
782.
▲
by
rumcajz
14y ago
That works only for simple datatypes. Any not trivial object (containing large amount of memory, handles, file descriptors etc.) is non-copyable. Thus list<person> won't work (according to STL, "person" has to be model of Assignable
783.
▲
Why should I have written ZeroMQ in C, not C++ (part II)
(250bpm.com)
128 points
by
rumcajz
14y ago
|
156 comments
784.
▲
by
rumcajz
14y ago
Yup. The "spite" motivation. The question is how strong an incentive spite is. Things like money or fame are better in motivating people IMO.
785.
▲
by
rumcajz
14y ago
Great that someone have written this down. These points should be stressed as much as possible. Anyway, after you move from RPC to message passing and then to state machines with delayed action execution you are facing the next big problem:
786.
▲
by
rumcajz
14y ago
The fork was over trademark policy, not any technical matter. So no, it was not possible to prevent it. To avoid trademark restrictions, it was necessary to change the name of the project. Anyway, there's only one Linux kernel implementatio
787.
▲
by
rumcajz
14y ago
As for the options: Yes. There's patch that supports protocol versioning (version=socket option) already applied to crossroads.io. That in turn makes it possible to improve the protocol without breaking backward compatibility. As for code c
788.
▲
by
rumcajz
14y ago
Consider my comment in the context. The comment I was replying to says that 0MQ/XS is not lightweight because it has too much code. That's simply not true and that's what I was alluding to.
789.
▲
by
rumcajz
14y ago
Too much code? 0MQ ~15k LOC RabbitMQ ~107k LOC AMQP Qpid ~542k LOC ActiveMQ ~1160k LOC
790.
▲
by
rumcajz
14y ago
Yep. The patches were reverted because they've broker wire-level compatibility with older versions of 0MQ. The good news is that I protocol versioning will be available in next release of crossroads.io and thus the patches like that can be
791.
▲
by
rumcajz
14y ago
Armin is right that the timeout works, but delays the signal about connection failure from TCP. If anyone feels like implementing automatic resend inside 0MQ/XS (in case of timeout or TCP connection failure), give it a go and submit a patch
792.
▲
by
rumcajz
14y ago
The problem with that is that 0MQ socket abstracts multiple underlying connections. Reporting error would mean making the connections visible to the user. There would have to be connection IDs, accept function, error notifications etc. In t
793.
▲
by
rumcajz
14y ago
Hi, that's Martin Sustrik here. Couple of points: 1. As for lost requests, the right thing to do is to timeout the request and re-send the request if the response haven't been received. This should be done inside 0MQ/XS, however, it's prett
794.
▲
Using likely () and unlikely ()
(250bpm.com)
5 points
by
rumcajz
14y ago
|
1 comments
795.
▲
by
rumcajz
14y ago
> [They] decided to build a polysilicon plant in Tennessee, partly because energy costs in Germany were so high. This makes USA look like a 3rd world country being used as a haven for environmentally harmful industry installations.
796.
▲
by
rumcajz
14y ago
AFAIU the idea is that by printing money you basically take the money stuffed into matresses and give them to the disposal of the state. The question, of course, is whether the state is able to use them in such a way as to make them flow ra
797.
▲
by
rumcajz
14y ago
Old farts may remember that functional programming is used since 1950's.
798.
▲
Distributed Computing: The Survey Pattern
(250bpm.com)
4 points
by
rumcajz
14y ago
|
0 comments
799.
▲
by
rumcajz
14y ago
Because they are insanely easy to do, at the expense of sane formal process.
800.
▲
by
rumcajz
14y ago
That's pretty relevant comment. GitHub pull request system is great if you want to attract a bunch of script kiddies to participate on your project. For serious work, not so much.
801.
▲
by
rumcajz
14y ago
Yes. C syntax compiled with C++ compiler is a reasonable option. The question is whether it deserves being called C++ then.
802.
▲
by
rumcajz
14y ago
The article is about undefined behaviour. Erlang won't help much with that.
803.
▲
Why should I have written ZeroMQ in C, not C++
(250bpm.com)
375 points
by
rumcajz
14y ago
|
202 comments
804.
▲
by
rumcajz
14y ago
How is the code hand-made? The millions of gmail users are using the same piece of code. Same thing with Windows users. That's what you call mass production.
805.
▲
by
rumcajz
14y ago
Yes. It's a different paradigm. ZeroMQ and Crossroads I/O deliberately separate the channel from the computation. That allows packages of messaging logic (so called messaging patterns) to be pre-implemented and available out of the box. The
806.
▲
by
rumcajz
15y ago
The point is that the switch is programmable. You can implement the centralised behaviour. You can implement decentralised one. You can implement anything you want.
807.
▲
by
rumcajz
15y ago
I guess you can contribute serialisisaion formats to the project.
808.
▲
by
rumcajz
15y ago
Also there seems to be a braidge that connects nginx to 0mq at the backend side: https://github.com/FRiCKLE/ngx_zeromq
809.
▲
by
rumcajz
15y ago
"ZeroMQ’s actual C library (libzmq) is just an implementation detail." That's a spot on. It doesn't really matter whether you are using ZeroMQ, NullMQ or raw HTTP. It's like OO-programming: You can write OO program in any language. Same way
810.
▲
by
rumcajz
15y ago
A lot of small businesses doesn't necessarily mean there's a lot of independent subcontractors, as we know it in the west. In South Korea there's a lot of independent "software consultants", however, these are employed by a single firm. It
More ›