News for hackers. Stuff that matters.
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by wyldfire on Monday January 31, 2022 @02:06AM (#30145356)
Aside:

> OpenResty XRay

At first I thought -- oh, cool, a suite of tools leveraging LLVM's XRay! But then after digging for a bit, I can't tell exactly what this does or how it does it, but it is not quite clear whether it leverages LLVM's XRay. Oh well, it's interesting enough. Buuuut -- they trademarked 'OpenResty XRay'? Seems like it's on the hairy edge of 'confusingly similar' -- it's definitely intended for tracing/introspection.

OpenResty filed for their trademark in 2020 and LLVM XRay goes back at least to ~2016/2017. OpenResty itself has been around since ~2011? But I couldn't find anything in google regarding OpenResty XRay before 2016.

Anyways, interesting spelunking. To be clear, I'm not suggesting that there's anything wrong. LLVM's license permits this kind of commercialization -- if it were the case here.

Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by smorgusofborg on Monday January 31, 2022 @08:11AM (#30147513)
Searching on X-?Ray debugging, I see a lot of products from separate vendors so I think it's valid to consider XRay alone a general industry term that is based on an obvious analogy, so disputes hopefully have to relate to an entire trademarked name.
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by rurban on Monday January 31, 2022 @12:50AM (#30145029)
Built with perl6! (Now called raku)
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by patrec on Monday January 31, 2022 @02:28AM (#30145453)
Thanks for pointing this out. To be frank, I would not have expected to see someone highly competent attempting to build a core product with Raku, let alone what looks to be an not entirely trivial compiler. I didn't realize that in addition to being a luajit expert agentzh is also a long-time perl hacker.

Amusingly though he found it necessary to write his own proprietary implementation of (a "dialect" of?) Raku, compiling to luajit byte code.

https://blog.openresty.com/en/ylang-intro-part4/#the-ylang-c...

Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by nyellin on Sunday January 30, 2022 @09:53PM (#30143941)
Very cool.

I'm about to start work on adding eBPF probes to the open source project I maintain for automated Kubernetes troubleshooting (robusta.dev).

Does anyone have good examples of specific data they collected with eBPF probes that would be good to see whenever problems of a certain type occur?

Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by smorgusofborg on Monday January 31, 2022 @06:45AM (#30146983)
I don't see any parts of this system in openresty's GitHub account. Are some of the components of OpenResty Xray going to be open source?
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by YarickR2 on Monday January 31, 2022 @05:15AM (#30146466)
From https://openresty.com/en/xray/: High CPU Usage Up to 90% reduction in CPU usage

Large Memory Consumption Up to 90% memory footprint reduction, less than 5 minutes to locate memory leaks

Slow Disk I/O Capable of 80% reduction in disk I/O saturation and latency

High Network Latency As much as 90% reduction in response latency and timeout errors

Smells snake oil to me

Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by walterbell on Monday January 31, 2022 @06:26AM (#30146883)
Cloudflare used and sponsored (2016) OpenResty, which may have motivated performance monitoring for edge efficiency, https://blog.cloudflare.com/first-bay-area-openresty-meetup/
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by smorgusofborg on Monday January 31, 2022 @05:36AM (#30146586)
The percentages of improvement that result from finding and tuning the worst paths in a system are often this good unless it has already been done once for the system.. Sun engineers put a lot of thought into algorithms and where bottlenecks should be but still had some improvements like this when first applying DTrace.
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by lokar on Sunday January 30, 2022 @10:00PM (#30143985)
They mention java is passing. Does anyone know the status/timeline?
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by nyellin on Sunday January 30, 2022 @10:17PM (#30144070)
Not associated with the project, but out of curiosity what's your use case?
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by thorwawayrus53 on Monday January 31, 2022 @04:31AM (#30146168)
I don't understand the hype behind lua. I tried scripting vlc plugin and its very painful. No so easy to understand.
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by rscho on Monday January 31, 2022 @06:06AM (#30146746)
I think the hype is mostly excellent C integration. Night and day compared to Python.
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by kragen on Monday January 31, 2022 @05:05AM (#30146401)
What are you comparing it to?
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by thorwawayrus53 on Monday January 31, 2022 @05:50AM (#30146664)
Python, JavaScript.
Re:Ylang: Universal language for eBPF, Stap+, GDB, and more by kragen on Monday January 31, 2022 @06:12AM (#30146783)
Lua's a little more opaque than Python or JS, a little more flexible, a little more bug-prone, and a lot simpler. But those aren't the reasons VLC and Wireshark and WoW use Lua instead of Python or JS; they use it because it's enormously less costly to embed. Imagine you decide to switch from Lua to Python for your game. Now you have:

- 3600 kilobytes of bloat instead of 110;

- a huge and bug-prone ABI to deal with to make sure Python doesn't inject memory leaks;

- Python assholes publicly shaming you for using an unfashionable version of Python.