Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jhgb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
301.
▲
by
jhgb
4y ago
> because for all the ways in which C sucks, it is the most common (lowest) denominator that ticks the portability checkbox. This is actually something that Zig is supposed to do as well. There should be nothing that you can do in C but
302.
▲
by
jhgb
4y ago
> No, it doesn't. C does not even assume a stack. A platform where function call frames are allocated on the heap would not be incompatible with C. The problem is not with call frames being on the stack or on the heap; even a spaghe
303.
▲
by
jhgb
4y ago
Well, for instance, famously, any multiple-stack machines will have a hard time trying to run C because C assumes a single hardware stack. Although I imagine that currently , in most cases, you'll want to avoid C for software reasons,
304.
▲
by
jhgb
4y ago
Possibly, but then again, if one's aim is to replace C with Zig in the future perhaps completely, because SQLite became de-facto standard file format for many applications (see OGC GeoPackage for example), you might need some implement
305.
▲
by
jhgb
4y ago
It might not be worth for everything, but extremely simple queries on extremely simple schemas would not be the goal here.
306.
▲
by
jhgb
4y ago
I'm aware of that, but these elementary operations have some definitions in code. Even just calling them in a fixed sequence (as opposed to dispatching at runtime one opcode at a time) would be something optimizable for a sufficiently
307.
▲
by
jhgb
4y ago
Why does it matter? Deno should not need NPM in any capacity, or does it?
308.
▲
by
jhgb
4y ago
That would also be stealing a product name from the rich (Robinhood Markets) and giving it to the poor.
309.
▲
by
jhgb
4y ago
Here's an absolutely crazy idea that I had the other day... Since Zig has comptime, couldn't a Zig reimplementation of SQLite use comptime for compile-time query compilation? Including generating native code for fixed queries? So
310.
▲
by
jhgb
4y ago
> Now we want to pluck it out before they can get any. I suspect that if you think that this is going to give us the ability to suck out all the water out of thousands of cubic kilometers of desert air any time soon, you're probably
311.
▲
by
jhgb
4y ago
> The most efficient light emitters are ~50% and the best optical photo-voltaics are also ~40%, which would get you to an 80% loss, ignoring atmospheric losses. Unless you have matched emitters and PV cells? For example [1] cites 53.4%
312.
▲
by
jhgb
4y ago
> Google would not own a patent on PageRank Well, in my country they actually don't. YMMV as per one's location.
313.
▲
by
jhgb
4y ago
This starts becoming disadvantageous even faster than just trying to speed up. At that point a much better improvement for you is the development of a magnetoshell decelerator. Mass-wise, there's no situation where propulsive interce
314.
▲
by
jhgb
4y ago
1) The travel time benefits are degressive owing to increasingly eccentric heliocentric trajectories - the changes in trajectory length get smaller and smaller as your velocity vector stops being colinear with the planet's orbit upon i
315.
▲
by
jhgb
4y ago
> I don’t know that voluminous tanks and heavy engines are necessarily a problem for something that’s designed to permanently live in space - the tanks can essentially just be onion-layered gasbags, and could be km3 in volume if you want
316.
▲
by
jhgb
4y ago
Doesn't time value of money decrease this effect? Assuming a fixed revenue over time, future revenue is much less relevant, so is its loss.
317.
▲
by
jhgb
4y ago
You could design a pulse detonation engine for this. Electrolyze water continuously; detonate it in a pipe every now and then. It's a very simple design that gives you quite a bit of performance for hopping in the asteroid belt. Specif
318.
▲
by
jhgb
4y ago
> You can't beat hydrogen as a fuel. As the lightest molecule, you get the highest exhaust velocity for the least energy input. You can't beat it in terms of exhaust velocity, but you can often definitely beat it in terms of wh
319.
▲
by
jhgb
4y ago
Yeah, I did notice that the original NTR plans arose from the wish to upgrade Saturn V with its limited "throw weight" at third stage separation ( http://www.astronautix.com/s/saturnc-5n.html ). It doesn't
320.
▲
by
jhgb
4y ago
LANTR would improve performance of lunar landers/cislunar shuttles, especially for variable specific impulse which is what LANTR could plausibly do without much trouble -- start with high oxygen flow for high thrust and high propellant
321.
▲
by
jhgb
4y ago
> but with two to five times the efficiency I suspect from the number that they're talking purely about Isp. Once one performs a whole system analysis, it's much less rosy for (non-LA)NTR.
322.
▲
by
jhgb
4y ago
At 1 AU from the Sun, and possibly all the way to Mars, advanced photovoltaics may very well be better than a nuclear reactor for powering ion engines: It has very high system-level power/weight ratio (in lab around 300 W/kg, curr
323.
▲
by
jhgb
4y ago
I don't see how an NTR helps you in any way to get to Mars or back. Heavy engine, voluminous tanks (~70 kg/m³), criminally wasted ISRU material (you have to throw away 88.9% of the water that you mine on site, whereas a hydrolox o
324.
▲
by
jhgb
4y ago
> However, towns with 300 houses with different variations of the same vendors and assets would not be immersive to most modern players. You definitely need a little on the authored side. Do you think that in the 2020s, we can't do
325.
▲
by
jhgb
4y ago
> and I found some boots that made me jump into the air and die You're probably the first person I've ever seen to have confused the Scroll of Icarian Flight with the Boots of Blinding Speed. ;)
326.
▲
by
jhgb
4y ago
Well, my country sadly has virtually no suitable geography for "traditional" hydro. We have dams worth several hundred MW of generation (out of ~9 GW of average generation). So a dam suddenly getting built in your backyard is a no
327.
▲
by
jhgb
4y ago
> Yes. My house, that was heated by oil 2 years ago, is heated by electricity today Good, so you see how the argument that only 2% of natural gas in Germany are not used for energy applications is irrelevant for the issue of replacing re
328.
▲
by
jhgb
4y ago
For some reason you've just reminded me just how much archeologists love midden heaps. I guess pretty much everyone gets to be an archeologist of sort at one time in life.
329.
▲
by
jhgb
4y ago
And they say that games can't do stop-the-world garbage collection...
330.
▲
by
jhgb
4y ago
Don't forget Jump+Slowfall -- probably the on-average-fastest way to get anywhere.
More ›