Readit News logoReadit News
hkalbasi commented on From stealth blackout to whitelisting: Inside the Iranian shutdown   kentik.com/blog/from-stea... · Posted by u/oavioklein
hkalbasi · 22 days ago
As an Iranian in Iran who is now connected, I have a request: Please tell google make colab available behind the safe browsing IP. Google's safe browsing IP is usually the #1 whitelisted IP in internet blackouts. Having colab on this IP allows tech people to ssh into their servers, and bootstrap connections based on the available protocols at the time.
hkalbasi commented on Liquid-rust: Liquid templating for Rust   github.com/cobalt-org/liq... · Posted by u/transpute
hkalbasi · 2 months ago
I like https://github.com/rust-sailfish/sailfish more. It accepts arbitrary Rust code in the template so you don't need to learn another syntax.
hkalbasi commented on Show HN: Shelgon: A Framework for Building Interactive REPL Shells in Rust   github.com/NishantJoshi00... · Posted by u/cat-whisperer
hkalbasi · a year ago
How it compares to other libraries in this space, e.g. reedline or rustyline?
hkalbasi commented on Lynx: Open Source Native Cross Platform framework used in TikTok   lynxjs.org/blog/lynx-unlo... · Posted by u/theanirudh
diggan · a year ago
Got curious enough to wanting to give it a go, so on the quickstart page it says:

> Lynx Explorer is a sandbox for trying out Lynx quickly.

And then it asks me to use either the iOS Simulator or the Android Simulator, which based on experience, neither are made for anything resembling "quickly".

Anyone know if there are any "pure-web" instructions around? Skimmed around the docs, website and repository but didn't find anything that looked like it was made for just web setup.

hkalbasi · a year ago
> iOS Simulator or the Android Simulator, which based on experience, neither are made for anything resembling "quickly".

It's not adb / avd or some device emulator. It's an app that you install on your device, and then it can load your app from your development device using a link. I was able to run it in 5 minutes without having android studio or any other android development kits on my laptop.

hkalbasi commented on Asterinas: OS kernel written in Rust and providing Linux-compatible ABI   github.com/asterinas/aste... · Posted by u/Klasiaster
hkalbasi · a year ago
> In the framekernel OS architecture, the entire OS resides in the same address space (like a monolithic kernel) and is required to be written in Rust. However, there's a twist---the kernel is partitioned in two halves ... the unprivileged Services must be written exclusively in safe Rust.

Unprivileged services can exploit known compiler bugs and do anything they want in safe Rust. How this affects their security model?

hkalbasi commented on Zngur: A C++/Rust interop tool   hkalbasi.github.io/zngur/... · Posted by u/hkalbasi
uneekname · a year ago
I've been learning Rust and really enjoying it, but the primary downside (compared to C++) is the lack of access to the large, well-tested libraries that exist in C++. For example, my work would benefit from using the CGAL library [0], something that be nontrivial to rewrite in Rust. As much as I like Rust, at some point it's a better idea to use C++ to tap into libraries like that.

Does anyone have thoughts about how mature Zngur/CXX/etc. are for a project like mine? Would it be reasonable to invest effort in creating those bindings? Thanks.

[0] https://www.cgal.org/

hkalbasi · a year ago
Zngur allows you to write functions operating over Rust types, adding methods to Rust types and implementing Rust traits for C++ and Rust types inside C++. So you can write a rusty wrapper for the C++ library inside C++.

If you want to immediately use a C++ library in Rust with minimal manual effort, check out autocxx [0]. Its generated api isn't very idiomatic Rust, and it uses Pin, moveit, ... but it covers a good percent of C++ apis and you can also make an idiomatic wrapper for it in Rust.

[0] https://docs.rs/autocxx/latest/autocxx/

u/hkalbasi

KarmaCake day271November 16, 2021View Original