Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
billziss
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
31.
▲
by
billziss
7y ago
I have an implementation of nested coroutines for C in this file: https://github.com/billziss-gh/winfuse/blob/master/src/winfu... This uses the macros coro_block to introduce a new coroutine block,
32.
▲
by
billziss
7y ago
Any comparisons of Mermaid vs other tools? Why do you like Mermaid? I use Plantuml myself and I find that I regularly have to fight with the layout engine to get diagrams to looks the way I want them too.
33.
▲
by
billziss
7y ago
This looks nice and I certainly appreciate the battery life. To the people that are excited because this is outside some regulatory limits. A few years ago there were no or few drone regulations and people abused this; the result was strict
34.
▲
by
billziss
7y ago
I was curious, so I dug out the watch. It is a Glycine Airman 2000. See here for a review from 1999: https://www.timezone.com/2002/09/17/the-glycine-airman-2000-... EDIT: A couple of differences from the watc
35.
▲
by
billziss
7y ago
Agree. The Garmin MARQ Aviator is beautiful. They just need to make a solar version that does not require charging and then I am a buyer.
36.
▲
by
billziss
7y ago
Interesting. So would a mechanical watch be ok, but an electronic one not ok?
37.
▲
by
billziss
7y ago
Good catch! From the Garmin MARQ Aviator page: > Smartwatch mode: Up to 12 days > GPS mode: Up to 28 hours > GPS with Music: Up to 9 hours > UltraTrac™ mode: Up to 48 hours
38.
▲
by
billziss
7y ago
I think this likely has to do more with individual habits rather than anything else. But I find that watches that I do not use all the time are more likely not to be ready to be used when I need them. For example, I have an old Suunto Ambit
39.
▲
by
billziss
7y ago
Zulu time where I mostly fly is 8 hours off local time. If the watch is a regular 12 hour watch you have to do a mental calculation for time and as a pilot you learn that the less mental calculations the better, when a lot of things are hap
40.
▲
by
billziss
7y ago
I am no fighter pilot, but I (used to) fly airplanes, floatplanes and helicopters. A watch with a 12 day battery life makes little sense to me as I find it too easy to forget to charge it. Even if you put it on a checklist, it may be too la
41.
▲
by
billziss
7y ago
Thank you. This looks exactly like what I had in mind. EDIT: Another alternative would be to be able to slide the main screen halfway to the side thus allowing a second screen next to it for a dual screen setup.
42.
▲
by
billziss
7y ago
Just wrote something similar. I agree.
43.
▲
by
billziss
7y ago
I would much prefer it if manufacturers created a multi-screen setup with screens next to each other. I can imagine some form of folding or attachment mechanism that converts a single screen laptop to dual or triple screen. Since going &quo
44.
▲
by
billziss
7y ago
I use the refcount to avoid copying the string when passing it around. I just refcount it instead. To clarify this is part of a larger library that includes other memory management machinery, such as autorelease pools, etc.
45.
▲
by
billziss
7y ago
These days my work is focused on kernel/systems programming, so plain C (char or wchar_t) strings outside the kernel, and whatever the kernel requires inside it (e.g. UNICODE_STRING on Windows). When I do apps I have my own length-pref
46.
▲
by
billziss
7y ago
I do not think I have ever seen a string that needs more than 64K, but then again I do not read whole files in memory in C. (I do in Python.) So this would be wasteful in many cases. My personal variant uses 32-bits for length and 32-bits f
47.
▲
by
billziss
7y ago
While I often implement strings along the lines you suggest I disagree that this feature belongs in the standard library. For one thing how big (sizeof) should the length prefix be? 16-bits? 32-bits? 64-bits? The beauty of the C string is t
48.
▲
by
billziss
7y ago
> But that would require them to implement a new file system from scratch wouldn't it? VolFs in WSL1 relied on NTFS to do the heavy lifting. You are correct.
49.
▲
by
billziss
7y ago
Perhaps you are right, but to me this feels more like Microsoft hedging their bets, rather than a genuine interest in having two parallel products doing effectively the same thing (from a user perspective). I asked the same question on thei
50.
▲
by
billziss
7y ago
But is it really just "aggregation"? https://www.gnu.org/licenses/gpl-faq.html#MereAggregation https://www.gnu.org/licenses/gpl-faq.html#AggregateContainer... I do not know, but I can se
51.
▲
by
billziss
7y ago
I think I agree with your overall understanding. It would be interesting to learn what FSF's position is regarding WSL2.
52.
▲
by
billziss
7y ago
> They reference the concept of open file handles and moving folder structures. I think this comment may have been disingenuous on their part. The reason is that this problem more than likely still exists in WSL2 for the /mnt/c
53.
▲
by
billziss
7y ago
Which systems do you think are more similar: Windows and Linux or FreeBSD and Linux? Presenting a Linux syscall interface on top of Windows is a hard task. The systems have fundamentally different approaches to many OS functionalities. In g
54.
▲
by
billziss
7y ago
Yes, I am aware of the Linux emulation in FreeBSD and elsewhere.
55.
▲
by
billziss
7y ago
Although many people seem to be receiving the WSL2 news well, I am one of the few that feels that we will be missing something important with this new direction. WSL1 was pushing the boundaries of OS research: - a method for having multiple
56.
▲
by
billziss
8y ago
WinSpd is not a standalone application, but rather a set of libraries and components that allows others to create applications that can do what you want (serve a disk over a network). The included sample, called rawdisk, memory maps a file
57.
▲
by
billziss
8y ago
I think it is a perfectly legitimate question. I had two reasons for creating this: a practical one and a theoretical one. The practical one is that I wanted to be able to store disk data in a cloud storage bucket (i.e. "format" a
58.
▲
by
billziss
8y ago
Thanks for the additional information :)
59.
▲
by
billziss
8y ago
Sorry for the second reply, but I read a bit about ImDisk. I think the main difference is that WinSpd is a general tool for creating disks as user mode processes, whereas ImDisk is a tool for mounting image files only. It looks like WinSpd
60.
▲
by
billziss
8y ago
Interesting. I was not aware of ImDisk. Reading about it, it appears to be a RAMDisk only tool. Did I misunderstand?
More ›