xobs

u/xobs


r/rust•

Rust 1.45 made some changes to LTO that have made CI using cross no longer work if it was set up prior to 25 Sep 2019. This is because the scripts that cross use used to pass -C lto to rustc, which as of rust 1.45 no longer works.

The symptom to look out for is during the final linking step, when it fails:

   ....
   Compiling $pkg_name v0.7.6 (/project)

error: options `-C embed-bitcode=no` and `-C lto` are incompatible

error: could not compile `$pkg_name`.

To learn more, run the comm
431

r/rust•

I'm trying to turn a binary into a library, and in the process I'm smoothing out some of the edges when it comes to configuration. Previously, all struct fields were accessed directly, however I'm finding things become much simpler if I create special Config structs that get passed to an initializer.

This sounds an awful lot like the 2nd search hit for builder pattern, so I thought I'd adapt that. Command is a fantastic reference and is super easy to use, so it seemed like a good style to mimic.

However, I'm having no end of trouble fighting the borrow checker in trying to mimic "Non-consuming builders (preferred)".

A si

18

r/help•

I'm using Reddit on mobile. 9n desktop I use old.reddit.com, but on mobile I use reddit.com.

It used to be that when I went to a post's comment page, it would show all comments from that post.

Now, whenever I go to a comment page, it shows me a really long page with a bunch of confusing topics that have nothing to do with the one I'm reading, and only about four comments. There is a link that says "SHOW FULL DISCUSSION".

How can I make it so that when I click to go to a comments section, it actually takes me there rather than this weird mashup of abbreviated-conments-plus-frontpage?

Edit: even this page has "TOP POSTS FROM R/HELP" where comments used to be.

686

r/ffxivmeta•

I'm not sure where to post bugreports for r/ffxiv/, and this seems to be the most appropriate place.

I use old.reddit.com rather than reddit.com because it's normally a lot faster. However, /r/ffxiv/ has gotten really slow lately, and I decided to track down why.

I discovered it has to do with the scrolling banner on the top.

As long as the tab with r/ffxiv is visible, Firefox uses a lot of CPU and things generally get sluggish. If I disable the "animation" and "-webkit-animation" properties of the #header div, then then CPU usage of Firefox drops down to 5%. This happens even in Incognito mode with all extensions disabled.

I can make the CPU usage

119

r/yosys•

I'm trying to use Yosys as part of a silicon synthesis toolchain, and I'm getting caught up synthesizing a BLIF file.

My issue is similar to the one described in an older post, however I'm still not quite sure what's going on.

I'm using the map9v3.v file from opencircuitdesign, but the twist is I'm using Coriolis instead of qflow. I have a variety of standard cell libraries available, including sxlib from Alliance, and [vclib](http://www.vlsitechnology.o

11

r/Surface•

Earlier I'd posted about my Surface Book 2 running at 400 MHz](https://www.reddit.com/r/Surface/comments/7trejo/how_do_you_keep_a_sb2_from_slowing_to_400_mhz/). After a rather lengthy and calamatous interaction with Microsoft Support, I eventually got it replaced.

The new unit also suffers from the issue, but less so. The fan actually turns on now when it gets warm, which it didn't do before. However, it still occasionally drops down to 400 MHz when it feels like it.

The workaround I've found, and this worked both on the previous unit and the new one, is to take a cheap USB fan and point it at the back of the machine. Without the fan, the machine will throttle after about one minute of

37

r/redesign•

I've seen some posts stating that the new Reddit "feels" slow, but I thought I'd try quantifying it for myself. It's true, the new Reddit is twice as slow as the old version.

If I pop open the Inspector and look at the first GET request, old Reddit takes just under 1 second, whereas the new Reddit takes about 2 seconds. Just for the root page. This is compounded by the fact that the new Reddit downloads a lot more content after the initial load, which can cause a single page load to take upwards of 10 seconds in total. In contrast, a full page load takes 3-4 seconds with old.reddit.com.

Just for reference, here's a curl for the old vs new page:

xobs@Cuboid:~$ time curl -A "broken"
8128

r/Surface•

I just got my SB2 a few weeks ago, and it's working great! It's a fantastic machine, and I'm really liking it. Except for the part where it slows down after a while.

If I open Task Manager's Performance tab, I can keep track of the CPU speed. It starts out reasonably high, depending on the mode the machine is in (Recommended, Better Performance, Best Performance), but after a minute or two it always slows way down and settles at a speed of 0.4 GHz. Naturally, when it does this the mouse gets really slow.

My workaround is to click on the battery icon and change the slider. It doesn't matter if I go from Best Performance to Recommended, go the other way, go midway in between, as long as

1217

r/electricians•

Hello r/electricians

I live in Singapore, which uses UK-standard wiring (240V, British plugs). Very often I will find that exposed bits of metal on electronics have a sort of tingling sensation, which I'm assuming is a low-voltage AC shock. I've had this happen on the outer metalic casing of a Macbook, and most recently when I brushed up against the ground sheild on the DC side of a Thinkpad charger. These are two-wire ungrounded devices, but at least in the case of the Thinkpad power brick, it was a ground pin and I was standing on tile.

At my previous place, I only received the shocks from the Macbook when it was plugged in and my bare feet touched the concrete flooring. I've experi

36

r/keto•

Since starting keto, I've been paddling a lot more. I do dragon boat on Saturdays, which consists of an hour of core workout followed by two hours of rowing, and I do outrigger canoeing on Sundays. I'm also starting training sessions on Thursday that consist of a lot of running.

Last Sunday we spent three hours paddling 13km. It's a morning training, so I left home at 8:30am. I had some eggs and bacon before leaving, but it obviously wasn't enough. The train ride home after training was miserable. By the time I got home at 1pm I was dizzy and felt sick. It was a terrible feeling.

Du

54

You've reached the end of this feed.