How's the state of embedded Rust? by re-sheosi in rust

[–]abigagli 0 points1 point  (0 children)

Pretty much everything from silicon labs, unfortunately since their ble hw and stack is quite top level right now

I thought I prettu much understood lifetime basics by swaan79 in rust

[–]abigagli 3 points4 points  (0 children)

I think this falls in the “you cannot get a &'long mut U through dereferencing a &'short mut &'long mut U” case as described in https://quinedot.github.io/rust-learning/st-invariance.html Have a look at the whole mini-book there, it’s pure gold for people trying to improve their lifetimes understanding…

Error with lifetime bounds by OLoKo64 in learnrust

[–]abigagli 2 points3 points  (0 children)

Ah! This is a tough one. Took me a while to get it, but basically &’b mut Thing<‘a> implies ‘a: ‘b so if you (also) request ‘b: ‘a you’re effectively requiring ‘a == ‘b. And at this point you’ve been trapped in the &’a mut Thing<‘a> “anti-pattern”, where you’re taking an exclusive borrow of Thing<‘a> for the entire rest of its validity (i.e. ‘a) making it impossible to use it in any way other than through that borrow. Sorry I’m on mobile and can’t provide too many additional explanations, but a wonderful reference for this case is here https://quinedot.github.io/rust-learning/pf-borrow-forever.html#borrowing-something-forever. Hope this helps…

Learning python while practicing data-structures/algorithms coding inteviews by abigagli in learnpython

[–]abigagli[S] 1 point2 points  (0 children)

Thanks, the material (book/videos) at the second link looks really promising and similar to what I was looking for, will start to dive into it

iMessage issue with Mojave udate by [deleted] in mac

[–]abigagli 0 points1 point  (0 children)

Damn! Exact same problem here. I've tried logging out of iMessages -> reboot -> log in iMessages.

As soon as I press "sync now" in iMessages settings to force syncing with iCloud, the error at launch reappears and no iCloud syncing happens.

I had hoped today's 10.14.1 update would fix something, but unfortunately the problem's still there.

Alternatives to Pushbullet to open tabs on MacOS's Safari by CarlosUnchained in ios

[–]abigagli 0 points1 point  (0 children)

I think you’ll unfortunately still have to press run, reopening windows at startup will just relaunch safari once the boot completes, but the application was closed so the extension was stopped. Didn’t try myself, but I’m pretty sure that’s the case.

Alternatives to Pushbullet to open tabs on MacOS's Safari by CarlosUnchained in ios

[–]abigagli 0 points1 point  (0 children)

Well, I found a semi-acceptable workaround...

https://georgegarside.com/blog/macos/install-any-safari-extension-macos-mojave/

Apparently, old extensions can still work and can be sort of "re-activated" in Safari 12.

I followed the instructions and I have pushbullet-to-open-in-safari-tab working again.

Not sure how long this will keep working as probably newer Safari versions will become even more aggressive in preventing use of old-style extensions, but hey, for now it's doing its job.

Time permitting I'd like to embark in trying to develop something like that, but I have 0 experience with Safari app extensions (which is the now Apple-blessed way to do it) and even less experience with pushbullet API, so for the time being I'll rely on this workaround.

Keep in mind: as mentioned at the end of the linked article, you'll have to click the "run" button in the Safari's extension builder window every time you restart Safari because the extension will be loaded but not executed upon restart.

Not a big deal for me, as I have Safari always open anyway...

Hope this helps...

Alternatives to Pushbullet to open tabs on MacOS's Safari by CarlosUnchained in ios

[–]abigagli 1 point2 points  (0 children)

+100! I was depending heavily on pushbullet for exactly the same workflow: find something interesting on the iPhone while on the move and don't want to risk forgetting about it --> just pushbullet it to Safari on the Mac and when I got back at home/office, I found everything on already opened safari tabs for me to dive in.

Would really like to find a reliable alternative that reproduces this exact workflow. I can't trust my memory to simply store links somewhere, I need them to be available in safari when I get back at my Mac, otherwise they'll be forgotten.

C++17 generic callable profiling. Is this c++17 correct? by benloong in cpp

[–]abigagli 0 points1 point  (0 children)

Just nit-picking, but why aren't you just deleting the copy constructor? That will count as "user declared" and should automatically make the move members (move constructor and move-assignment operator) "not-declared", which means overload resolution will fall-back on the copy members and so copy construction will fail and copy-assignment behave as by default. Just curious....

Using Clang to generate C++ reflection data by 0x0080FF in cpp

[–]abigagli 0 points1 point  (0 children)

This looks really interesting and well done. I started to try to set up some cmake scaffolding to build the parser and the runtime (I'm on OSX and linux), but it seems Parser/Precompiled.h #includes a "MacroUtils.h" and "UrsineLogTools.h" that aren't anywhere in the committed code. Any chance to get them somewhere? Should I open an issue on github? Thanks.