Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dpc_pw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
241.
▲
by
dpc_pw
7y ago
Why would anyone stockpile emergency stuff, if in case they are needed, they will be called "profiteers" and taken advantage off? People that rush buy this stuff to make a profit, are actually helpful in promptly preserving the li
242.
▲
by
dpc_pw
7y ago
The parent-parent comment was "I want an escape hatch in the language" and then the argument for it is "someone else used an escape hatch, and now I need an escape hatch". :D
243.
▲
by
dpc_pw
7y ago
Not it didn't. Rust error handling is glorious comparing to exceptions. Rust community is just full of perfectionist and we love to argue endlessly about how to improve stuff even more, which is very refreshing. In many other PLs peopl
244.
▲
by
dpc_pw
7y ago
If there is a lot of connections actually running transactions, then I'd expect the db will become overwhelmed due to number of transaction, and per-connection overhead is not going to be a problem. How I understood the problem is thou
245.
▲
by
dpc_pw
7y ago
It might be possible write a small proxy in Rust, that would run next to a PG instance, accepted connections using `async` and then forwarded queries using some limited size connection pool.
246.
▲
by
dpc_pw
7y ago
Thinner TP clogs the pipes less often. At least that's the explanation I heard.
247.
▲
by
dpc_pw
7y ago
M............................................C M..............................................Java Look. C is much closer to how the machine (M) works.
248.
▲
by
dpc_pw
7y ago
Came here to say the same thing. I know that ASCII is repuslive to a lot of people, but personally the UX inconsistency is kill the game for me. Every single thing in the game seem designed with a completely different UX idea, to the point
249.
▲
How I structure my apps (in Rust and other languages)
(dpc.pw)
3 points
by
dpc_pw
7y ago
|
0 comments
250.
▲
by
dpc_pw
7y ago
This should be the top comment. It makes a lot of sense. Margin should be a property of the enclosing container, not the items in it.
251.
▲
by
dpc_pw
7y ago
> You may be a bit too pessimistic. They already said they're Hungarian. :D
252.
▲
by
dpc_pw
7y ago
That top level comment is such a typical somewhat smart central European youngster (now maybe in their 30s, like me) that was heavily brainwashed the whole childhood how UE is soooo much superior and civilized, and the their own culture an
253.
▲
by
dpc_pw
7y ago
This is such a nonsense being pandered by people who make money on it. You, you can absolutely "time the market". You just can't do it exclusively based on the chart. The real world is still there, and it's important, yo
254.
▲
by
dpc_pw
7y ago
For what it's worth, I used to be big on C, and grew to very dislike C++ (because it's simple insane). Rust is my language of choice for years now. IMO, Rust shares the same inner-simplicity that C has, but combined with ability
255.
▲
by
dpc_pw
7y ago
That's great to know. I'll to check it out. D is a great language and it's good to see it's getting even better.
256.
▲
by
dpc_pw
7y ago
Exactly. I have a blogpost about this https://dpc.pw/my-view-on-macroeconomy
257.
▲
by
dpc_pw
7y ago
This comment is spot on. I've seen similar scenarios myself. :) 99% of articles like the above one come down to: "developers wanted to pretend there isn't some underlying data model underneath, and abstracted it away". T
258.
▲
by
dpc_pw
7y ago
> If anything now is the time to print a bunch of new money to counteract the existing deflationary forces caused by the coronavirus It's time to let everyone reckless go bankrupt, and idiots who "could not see this coming"
259.
▲
by
dpc_pw
7y ago
C++ ecosystem is beyond recovery. It's just too vast, archaic and osified. It's much more practical at this point to learn Rust and use it for new projects when possible or keep doing whatever you did before to get you C++ project
260.
▲
by
dpc_pw
7y ago
Bad take. The advise on how to do better logging at the end are OK, but the arguments before that are quite weak.
261.
▲
Show HN: Deterministic Docker Source Checksum
(github.com)
2 points
by
dpc_pw
7y ago
|
0 comments
262.
▲
by
dpc_pw
7y ago
> "I've been a C++ developer for the past 12 years, how do I become a web developer?" That's just wrong way to put it. This C++ has been used for something (kernel, embedded, system level programming, games). That&#x
263.
▲
by
dpc_pw
7y ago
Knowing only React, or one programming language doesn't make you a specialist. It just means you have very little knowledge and/or experience. What's next? "if statement developer"? Software engineering as a whole,
264.
▲
by
dpc_pw
7y ago
I am big on Rust, and I enjoyed using Scala at work in the past. Scala has a more elaborated type system, and everything is heap-allocated so some stuff is easier. On the other hand... JVM is often a PITA, and debugging blowing up memory is
265.
▲
by
dpc_pw
7y ago
Relevant, maybe: https://medium.com/adobetech/filtering-duplicates-on-the-com...
266.
▲
by
dpc_pw
7y ago
I would take Go over Python, any day. It is productive, especially if your program is a relatively typical network service: get request, poke here and there, transform this into that, return a result. It looses steam when the code is abstra
267.
▲
by
dpc_pw
7y ago
> significant cognitive burden (...) I'm very skeptical that it ever gets to the point of a GC language My experience in this regard: Once you stop thinking in OOP, and embrace Data Oriented Design (which really helps structure your
268.
▲
by
dpc_pw
7y ago
With Rust you can also convert to `Vec<T>` where T is either `u8` or `u16` and use generics to work on any. ️ And there are probably handful of libraries that would help with all that too. Also - whatever convenient functionality you
269.
▲
by
dpc_pw
7y ago
If you want to half-ass it like Go you go https://doc.rust-lang.org/std/ffi/struct.OsString.html#metho... or https://doc.rust-lang.org/std/ffi/struct.OsString.html#metho... if you want t
270.
▲
by
dpc_pw
7y ago
That is simply not true.
More ›