Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vbit
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
vbit
11y ago
Do you know which version of Sophia it uses?
92.
▲
by
vbit
12y ago
Just curious - why replace vim or emacs?
93.
▲
by
vbit
12y ago
Running ps in a jail will show the processes in the jail only. Processes in the jail will only see network interfaces and other devices that have been explicitly exposed to the jail. As others have said, it's like a vm with no virtuali
94.
▲
by
vbit
12y ago
As a developer you might find jails useful. I use them to create multiple isolated 'virtual machines' on the same machine. In each one I can install a different set of packages and I like the my base system in clean. With zfs, I a
95.
▲
by
vbit
12y ago
Why did journaling interfere with automatic backups?
96.
▲
by
vbit
12y ago
I believe you can turn off the GC for Nim. Then you're just limited to libraries that don't rely on the GC, and fully manual memory management.
97.
▲
by
vbit
12y ago
Usually I want only a subset of my synchronized data on my phone. Can I set this up so all my data is synced to my nas but only some to my phone?
98.
▲
by
vbit
12y ago
I agree that gevent is a hack. however goroutines correspond to greenlets rather than gevent. You could write clean asynchronous io libraries in python using just greenlets and then it's not a hack. I wonder if dropbox evaluated this o
99.
▲
by
vbit
12y ago
It does. I execute many db and filesystem queries in parallel with single threaded Python using gevent. I'm not quite sure whether dropbox didn't or couldn't get gevent or a similar system to work - it's fairly straightf
100.
▲
by
vbit
12y ago
Another good write-up on this topic is http://blog.reverberate.org/2013/07/ll-and-lr-parsing-demyst...
101.
▲
by
vbit
12y ago
Slices start at 0, not 1. However they are inclusive of both boundary items. This matches how ranges are specified in Nim.
102.
▲
by
vbit
12y ago
The 0s and 1s are specific to the examples. A range in nim `x..y` includes both x and y. Sequences are always 0-indexed. Now, if you want to start with 1 for any range you can.
103.
▲
by
vbit
12y ago
Maybe you can't. But you can get the small companies and individuals first. Slowly the contributions make the ecosystem stronger and bigger and risk-averse organizations then can hop on as well. This is pretty much how Python grew.
104.
▲
by
vbit
12y ago
There is nothing quite like Nim in the other languages you mention. Nim's GC is different than most of the others and you can also control it so it only runs for a certain amount of time. Nim is also very expressive and clean. The meta
105.
▲
by
vbit
12y ago
Care to give an example of a language you find beautiful?
106.
▲
by
vbit
12y ago
Have you seen vultr.com? There's also atlantic.net and dediserve.com for comparison.
107.
▲
by
vbit
12y ago
Apart from the time and effort spent in writing the AOT compiler as the other poster mentioned, there is also the question of compiler complexity. You seem to be implying that JITs are somehow more complex and only help with languages hav
108.
▲
by
vbit
12y ago
Have you looked at http://terralang.org/ ? It may be a good toolchain if you're targetting static compilation using the LLVM.
109.
▲
by
vbit
12y ago
Interestingly I switched from Linux to FreeBSD around 2002, primarily because I was frustrated with Linux sysadmin. Perhaps I was more of a newbie but the inconsistencies in Linux system organization and the confusing, low quality, half-obs
110.
▲
by
vbit
12y ago
As others stated, binary package management is state-of-the-art now, thanks to the `pkg` command (aka the pkgng system). In fact I can never remember all the sub commands for apt+dpkg but pkg is a dream by comparison. I particularly like `p
111.
▲
by
vbit
12y ago
1 USD ~ 60 INR https://www.google.com/search?q=34000+inr+in+usd =~ $600 US
112.
▲
by
vbit
12y ago
Say I go back in time. Does it mean I disappear from the time I was in? And I'm in two places at a point in the past (the me from that time and the me from the future)? Now if I want to go back to the time I came from, do I join back a
113.
▲
by
vbit
12y ago
While I agree that LuaJIT is great piece of work, the linked page says Mike is not accepting sponsorships at this time and there doesn't seem to be any way to fund him.
114.
▲
by
vbit
12y ago
I think you are not stepping back far enough to look at the problem. Are you actually suggesting the entire complexity of the current web-stack (html, css, js and server side code) is essential to make web-apps?
115.
▲
by
vbit
12y ago
I'm waiting for ubjson http://ubjson.org which is probably the most compelling json replacement I've seen yet.
116.
▲
by
vbit
12y ago
> That helped some but a Nginx/LuaJIT implementation of the same solution still crushed it on the same box, identical workload. That's very interesting because LuaJIT has GC as well. Could you please reveal a bit more about the
117.
▲
by
vbit
12y ago
I'm not quite sure what this means, so here's my attempt to translate this into Python. A reducer is a function such as `add`: def add(sum, num): return sum + num Of course you can plug `add` directly in `reduce(a
118.
▲
by
vbit
12y ago
Good point. However this is a specific use case requiring future local time, and as you mention, even TZ aware local time fails here. In this case you cannot come up with a guaranteed physical time in the future that the event will take pla
119.
▲
by
vbit
12y ago
> Yes, it would be better if raw data was recorded in UTC in the first place but when working with such data the ability to make decisions and inferences from the TZ is very useful. I maintain that time and location are orthogonal. If th
120.
▲
by
vbit
12y ago
What is misguided - rtti or type-based dispatch - and why?
More ›