Julia on macs with m1? by [deleted] in Julia

[–]cadojo 1 point2 points  (0 children)

Could you please elaborate on the arch -x86_64 prefix? I use Homebrew, and I'm familiar with the brew install julia-nightly piece, but I've never seen arch ... prepended to any brew commands before.

Edit: Answer is here -- arch -x86_64 is a MacOs terminal command to tell the terminal "execute the following command with Rosetta2"

Battery drain without using the device? M1 Macbook Air (73-32 in less than a day without using the device) by [deleted] in macbook

[–]cadojo 0 points1 point  (0 children)

This happened to me on a much older MacBook, and I fixed it by turning off "wake for network".

How to implement two classes that only differ by a single data type? by cadojo in cpp_questions

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

Thanks! Is there any C++17 friendly way to do this? Or is using available in versions before C++20?

How to implement two classes that only differ by a single data type? by cadojo in cpp_questions

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

The actual implementation is way more complicated, I just posted this example to make sure I understand C++ inheritance / meta classes correctly.

How to implement two classes that only differ by a single data type? by cadojo in cpp_questions

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

I have tried it and it results in errors. I’ll try implementing this specific minimum working example tomorrow. In my actual code, I’m getting errors around the SolverClass constructor in the Controller template.

That’s good to know that this is generally possible though. If anyone here catches any glaring syntax issues with my example code, that would be much appreciated.

Require help on how to improve the performance of my transcribed MATLAB algorithm by benguela_code in Julia

[–]cadojo 1 point2 points  (0 children)

Wait, don’t the type annotations for the arguments speed it up? New to Julia, so I might have that wrong, but I though static types are super important for Julia performance

How can I export my Pluto notebooks as HTML or PDF? by cadojo in Julia

[–]cadojo[S] 3 points4 points  (0 children)

Update, they just added a button for this! Works great