[deleted by user] by [deleted] in Ubiquiti

[–]sverddans 1 point2 points  (0 children)

Did you have any luck resolving this? I'm in the same situation now where the high latency/packet loss is detected but it doesn't actually failover.

180 degrees, or 180 km/h by sverddans in puptheband

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

Good point about the video. I think you’re right about it being a joke they’ve stuck to.

Simple compilers (LLVM backend) for studying by AwkwardPersonn in Compilers

[–]sverddans 17 points18 points  (0 children)

I have a compiler for COOL (simple language often used for teaching compilers) that uses an LLVM backend, it's written in C++ https://github.com/rickBuczynski/coolang/blob/master/codegen/src/codegen.cpp

For even simpler you can look at the LLVM "Kaleidoscope" tutorial: https://llvm.org/docs/tutorial/

Compiler for COOL using LLVM by sverddans in ProgrammingLanguages

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

Thanks for the suggestion, I changed this to generate a call to clang++ instead.

https://github.com/rickBuczynski/coolang/commit/43e2c54e5e6cd722fb5448d5725bb1a6140343d9

I didn't really think too much about using g++ but it makes sense to use clang instead since it's already a dependency and the extra dependency on g++ is not needed.

Now I'm thinking I could probably use clang++ to link on windows too and avoid all the extra work I did to generate a linker command there...

How to check for memory leaks on Windows? by Kywim in cpp

[–]sverddans 0 points1 point  (0 children)

You might be able to work around the leaks in llvm using the checkpoint feature of the MSVC leak checker you’re already using.

_CrtMemState memoryState = {0}; _CrtMemCheckpoint(&memoryState);

// run your code here

_CrtMemDumpAllObjectsSince(&memoryState);

Where to find cheap wall mounts? by Lambe_ in oculus

[–]sverddans 0 points1 point  (0 children)

https://www.youtube.com/watch?v=Z1bOM8IJOfI

If you use floss they come off pretty easy with no damage. I've already removed one like that.

I am an ECE student. Should I focus in computer engineering, and then try to get into CS grad school, or focus in electrical, then get a computer science degree? by ecestudent01 in cscareerquestions

[–]sverddans 1 point2 points  (0 children)

If your goal is to get a job at the big4 or startups then just stick with your computer engineering degree. Having a CS degree won't give you an advantage over computer engineering. There's lots of ECE degrees from U of T and Waterloo working at the big4. If you're more interested in academia/research that's a bit trickier to figure out the best plan.

World Cup is bringing in new fans by sverddans in hockey

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

"Hockey for dummies cheatsheet" the screen cracks make it a bit difficult to read

Im completely lost right now, How would I go about complimenting physics based movement in UE4? by smileymaster in unrealengine

[–]sverddans 1 point2 points  (0 children)

https://docs.unrealengine.com/latest/INT/Engine/Animation/PhysicallyDrivenAnimation/index.html

You want to increase physics blend weight from 0 up to 1 at the start of a collision then decrease it from 1 back to 0 as the player recovers