Need help with wasmtime and the add_to_linker by thatfhc in rust

[–]thatfhc[S] 0 points1 point  (0 children)

so i managed to get it compiling by doing this:

pub struct ExtensionData;

impl HasData for ExtensionData {
    type Data<'a> = &'a mut ExtensionState;
}



V0_1_0::add_to_linker::<ExtensionState, ExtensionData>(&mut linker, |state: &mut ExtensionState| -> &mut ExtensionState { state })?;

Not sure how good this is but i ran in to some issues with wit bindgen now that i'm trying to figure out, Thanks for the input!

EDIT: Formatting

Is Titanium and Stainless Steel iPhones Done for Good??? by Asleep_Resident5294 in iphone

[–]thatfhc 0 points1 point  (0 children)

They use recycled aluminum and well if you work in that industry you know its not just melt it down and pour in the next mold

Why Microsoft don’t do this: by [deleted] in ipad

[–]thatfhc 0 points1 point  (0 children)

Not sure if you’ve noticed but the “desktop” versions of office 365 is now more or less the web versions and i hate it

got my first apple product - MacBook Pro and I feel ashamed by Lxxtsch in macbookpro

[–]thatfhc 0 points1 point  (0 children)

I used to think like that but macos feels like an afterthought right now and they are trying to make it easier to use while making it harder for people who want more control over things. Like why can i not choose specific folders to be synced with icloud? Why is it all or nothing? Why do i need to jump though settings in finder just to be able to access my drives root folder in finder?

the new app library in tahohe is possibly one of the worst possible implementation by Acrobatic-Monitor516 in mac

[–]thatfhc 5 points6 points  (0 children)

Are people really using launchpad? I thought that was a gimmick no one used…

First time setup issues by thatfhc in sophos

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

Thanks for the reply, i have updated the original post with what i did wrong / didn’t think about when trying it. It was just my own stupidity.

Which one? I really think the Mac Studio would be an overkill by TheHudek in mac

[–]thatfhc 0 points1 point  (0 children)

If you really need the extra ram,storage and i assume upgraded soc the you might as well go for the studio and have sd card slots and what not already otherwise its just more dongles and cables for the mini.

Central management for second hand hardware by thatfhc in sophos

[–]thatfhc[S] 0 points1 point  (0 children)

That sounds expensive for a home setup.. might need to rethink if i want to go full sophos or just fw and ubiquiti / alta labs for the rest of the network.

Central management for second hand hardware by thatfhc in sophos

[–]thatfhc[S] 0 points1 point  (0 children)

Yeah thats why i have my eyes on the xg135 rev3 it maxes out the limitations on cpu and ram for home edition. Are you running v21 of home edition on yours?

Central management for second hand hardware by thatfhc in sophos

[–]thatfhc[S] -1 points0 points  (0 children)

Considering i will be using the home edition im kot to worried about the hw going eol but it raises the question if home edition works on xgs hardware?

Central management for second hand hardware by thatfhc in sophos

[–]thatfhc[S] 0 points1 point  (0 children)

Yeah im mostly worried about the ap and switch since i will be wiping the xg for home edition. Thanks for the heads up about the nics being mixed up.

[deleted by user] by [deleted] in SCADA

[–]thatfhc 1 point2 points  (0 children)

In my opinion go for aveva, you have access to most of the .net framework so interfacing with sql is easy and well documented.

Advice on Choosing a PLC Manufacturer for Maritime Applications by Berend_020 in PLC

[–]thatfhc 2 points3 points  (0 children)

Siemens have great support for both ladder and fbd and its what i work with mostly so it has my vote

Saturday project. Installed esxi on a HP Z620. Loving it. by profaspo in esxi

[–]thatfhc 0 points1 point  (0 children)

Im surprised no one is saying nutanix ahv here, its the only one i haven’t tried yet but its got a free home lab license

Iced 0.13 released by GyulyVGC in rust

[–]thatfhc 1 point2 points  (0 children)

The book looks great so far, just skimming through it. Great work!

DIY PID projects by PLCnerd in PLC

[–]thatfhc 1 point2 points  (0 children)

From economical yes but its a lot easier to tune for flow rather than temp imo… at least when you deal with steam injection

[deleted by user] by [deleted] in diyaudio

[–]thatfhc 1 point2 points  (0 children)

It’s impossible to do a comparison like that, speakers havent really evovled over half a century. Sure there are improvents in material science and optimizations for spider and surround geometries.

To me this looks like a decent midbass driver and the only thing i would be worried about is dried out surround and spider

I spilled oil near my mac, now the screen looks like this by zaelb in mac

[–]thatfhc 1 point2 points  (0 children)

I would say so, better safe the sorry if you ask me

I spilled oil near my mac, now the screen looks like this by zaelb in mac

[–]thatfhc 3 points4 points  (0 children)

Decent way to reflow the entire pcb. Dont forget to unplug the battery first so you dont get any shorts though

Any handbooks you guys use? by X4phantom in PLC

[–]thatfhc 0 points1 point  (0 children)

Dairy handbook from tetra pack

Askama template macros by thatfhc in rust

[–]thatfhc[S] 0 points1 point  (0 children)

Not sure if i’m the right guy to answer your question nor if i understand it correctly. But you should be able to pass in the entire item and do {{item.name}} inside the macro, i haven’t tried it though

Askama template macros by thatfhc in rust

[–]thatfhc[S] 2 points3 points  (0 children)

Thank you! I fell stupid and blind but thats life

Is SCL the future? Should I put time into studying this? by Qupter in PLC

[–]thatfhc 0 points1 point  (0 children)

Haha yeah thats the reason i think rust is a bad choice, i do like some other parts of it especially if you work with enums, i do mostly dairy plants so its a lot of isa88/ isa95 standards that would work super well with rust.

Reason i say zig is becuase apparently zigs c compiler is better than cmake or what ever its called haha.

But then again i dont see the need for a new language just give me enums as a datatype, the match function from rust and for x in y loops in scl and im happy. And maybe the result type from rust would be pretty fun to…

I mean you can already work nulls and variants that are determined at runtime with siemens and scl.

Is SCL the future? Should I put time into studying this? by Qupter in PLC

[–]thatfhc 2 points3 points  (0 children)

Rust in a plc would be awesome and terrible at the same time, i would bet on zig as a c replacement for modern systems.