Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ksml
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
ksml
5y ago
Actually, the class you linked was an experimental class, and we ended up going with Python instead. (source: I was the head TA for that class)
32.
▲
by
ksml
5y ago
I've been shooting for 10 years and didn't know this at all!! I just saw a photo of a lens mounted in reverse and my mind is blown. Time to go down a rabbit hole trying to understand why this works...
33.
▲
by
ksml
5y ago
Flutter feels so strange to me. In many ways, it's reimplementing major parts of a browser, compiled to (web)assembly, running inside a browser compiled to assembly... Watch five years from now someone add a low-level programming frame
34.
▲
by
ksml
5y ago
That was really short and sweet. Thanks for the writeup!
35.
▲
by
ksml
6y ago
Note that these images are made from many exposures that are then processed and combined, and the total exposure time is given. The individual exposure times were probably long, but I'm guessing on the order of minutes, not hours. (A
36.
▲
by
ksml
6y ago
Also if you were slow updating, you could avoid critical security patches (and many people did)
37.
▲
by
ksml
6y ago
I read it as GP arguing we don't do enough of it.
38.
▲
by
ksml
6y ago
Because it works really well (at least from my experience and others I've heard). It has a solid (and really useful) feature set, and I generally have lower latency and less CPU usage than any other video conferencing system I've
39.
▲
by
ksml
6y ago
This is my first time hearing Apple refurbished meaning old store display model. I always thought refurbished machines were products that other people bought new and returned, and then Apple restored them to like-new condition. There seem t
40.
▲
by
ksml
6y ago
Serious question, can someone who downvoted the parent comment please explain why? This sounds in line with what I've heard about treatment of African Americans by the US medical system, so I would love to hear if there is evidence to
41.
▲
by
ksml
6y ago
Ah! This would have been really helpful!
42.
▲
by
ksml
6y ago
Every C Playground program runs in a Docker container, so this is already perfectly set up for CRIU. I might give it a try!
43.
▲
by
ksml
6y ago
Concurrency is still hard for me, but I do find it getting much easier over the years :) thanks for the story!
44.
▲
by
ksml
6y ago
I hadn't considered eBPF because I needed some pretty obscure information from the kernel internals (i.e. the addresses of the `struct file`s) and I didn't realize eBPF was as capable as it is. Another commenter suggested trying i
45.
▲
by
ksml
6y ago
This is really good to know. I had assumed it could block when allocating memory for the formatted string buffer, but the rationale explained in that article makes a lot of sense. Being able to use printk simplifes things a lot.
46.
▲
by
ksml
6y ago
This is really interesting; I hadn't realized it was so capable/general. I'll look into this. Thanks for the references!
47.
▲
by
ksml
6y ago
Oh, that's clever! I might try that. I really don't feel comfortable building my own kernel
48.
▲
by
ksml
6y ago
Thank you! It's open source, and I'd love to hear if you have any suggestions for it. Would also love to see what you're building!
49.
▲
by
ksml
6y ago
That's a good point. I'm hoping that this never gets hit, and if that line ever appears in the logs, then things are already broken. However, it's probably better to improve the failure mode where possible :) [edit] and yes,
50.
▲
by
ksml
6y ago
Elixir was extremely helpful to me! It didn't always help me understand _why_ code was written the way it was (hence my incorrect use of rcu_read_lock), but it was very helpful to see some examples.
51.
▲
by
ksml
6y ago
I can't do that across processes, though, can I? (to see whether two processes have file descriptors pointing to the same open file) edit -- it does look like it works cross-process! I hadn't heard of CRIU. I'll check that ou
52.
▲
by
ksml
6y ago
I actually cannot get enough information from doing that. Crucially, I need to be able to recognize whether two file descriptors point to the same open `file_struct`. (To be clear, this isn't the same as whether they're pointing t
53.
▲
by
ksml
6y ago
That is really interesting and good to know -- thanks for that! I hope C Playground is helpful, and I'm building it with teaching in mind. If you teach anywhere and could find it useful, let me know!
54.
▲
by
ksml
6y ago
I hadn't considered this! Can eBPF be used to access arbitrary kernel data structures, though?
55.
▲
by
ksml
6y ago
Hi HN, this was my first attempt at writing any sort of kernel code. I would love to hear your thoughts on this experience and on the fixes I applied, especially from anyone with more Linux experience than me :)
56.
▲
My First Kernel Module: A Debugging Nightmare
(reberhardt.com)
133 points
by
ksml
6y ago
|
67 comments
57.
▲
by
ksml
6y ago
That sounds neat and I'd love to hear about it if you ever work on it!
58.
▲
by
ksml
6y ago
Thanks so much for checking this out! Like tyoma said in the previous comment, if you had a use case where you needed to run lots of things in parallel, then this would be useful. Latency is much higher on GPUs (clock speeds are lower and m
59.
▲
by
ksml
6y ago
It would be doable but not trivial. We're depending on remill not only to lift binaries, but also to add instrumentation for interposing on and translate memory accesses and function calls. We could use uninstrumented LLVM IR as input,
60.
▲
by
ksml
6y ago
Thanks for giving it a read -- I'm glad you enjoyed it!
More ›