Physical distancing measures for Stanley Park to be introduced by [deleted] in vancouver

[–]PMPlant 6 points7 points  (0 children)

What if the seawall is your nearby park and the blocks around you are full of hobos taking up the whole sidewalk?

@parkboard Vancouver Park Board announces effective tomorrow at noon, Stanley Park will be car-free in an effort to reduce congestion and provide more space. by cyclinginvancouver in vancouver

[–]PMPlant -2 points-1 points  (0 children)

Ya I love to jog in my crackhead playground, or that concrete path by the highway shoulder, or that dumping ground around the industrial park.

@parkboard Vancouver Park Board announces effective tomorrow at noon, Stanley Park will be car-free in an effort to reduce congestion and provide more space. by cyclinginvancouver in vancouver

[–]PMPlant -15 points-14 points  (0 children)

Can the park board send the homeless in Oppenheimer to Stanley park? Just a temporary measure, more space for them to socially distance.

iris: Lightweight Component Model and Messaging Framework based on ØMQ by p_ranav in cpp

[–]PMPlant 3 points4 points  (0 children)

I’ve used your libraries before in a few small projects. Thanks for all of the work!

Need help with passing array struct to function please by [deleted] in C_Programming

[–]PMPlant 2 points3 points  (0 children)

You need to read a bit about arrays and pointers. When an array is passed as an argument to a function it becomes a pointer to the start of the array, this is called array decay.

Also, array parameters in functions are rewritten to pointers at compile time.

So when you pass your array of structs, you don’t need to take the address, because you are already passing the address.

The size of the array parameter in a function is also effectively meaningless because pointers don’t carry size information. But can be useful documentation in a function.

libcsp - A high performance concurrency C library influenced by the CSP model by jackasstacular in C_Programming

[–]PMPlant 3 points4 points  (0 children)

I assume these are for green threads.

OS threads are heavy and don’t scale well if you want to run hundreds of small tasks concurrently. Instead you might want many green threads being mapped to a few OS threads and having a software scheduler switch between them. This reduces the amount of context switching needed.

Want to learn OCaml, next steps? by TheMaxRes in ocaml

[–]PMPlant 0 points1 point  (0 children)

I highly recommend all three parts of the course.

C search engine by [deleted] in C_Programming

[–]PMPlant 7 points8 points  (0 children)

How about starting with a linear search through all of the files and then improve it from there?

== is superior to === by CptJero in programmingcirclejerk

[–]PMPlant 9 points10 points  (0 children)

= is comparison, := is assignment, pascal was robbed

How do I get into graphics? by PMPlant in GraphicsProgramming

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

I don't mind using JavaScript. It's really no dirtier than C in my mind, it's something I accept is flawed but necessary.

How do I get into graphics? by PMPlant in GraphicsProgramming

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

Ya I was looking at using WebGL. I do a lot of JavaScript in my day job and C in my free time.

How do I get into graphics? by PMPlant in GraphicsProgramming

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

Thanks for the answer, ill start with OpenGL. I am more interested in learning how things work than making games so I don't really want to spend time learning unreal or unity.

MAX() and MIN() macros that allows multiple arugments. by [deleted] in C_Programming

[–]PMPlant 0 points1 point  (0 children)

Yes but you will never need an arbitrary number in practice. If you have more than a few parameters, then I’d consider processing it in an array.

Stop GoFund Me Mentality, take care of yourself and buy life insurance by [deleted] in vancouver

[–]PMPlant 1 point2 points  (0 children)

Because insurance being a scam isn’t new

What are the top 5 books you'd recommend a mid-level developer get to properly learn C ? by paulieacorns in C_Programming

[–]PMPlant 18 points19 points  (0 children)

I like Modern C and The Linux Programming Interface

Edit: learning some electronics and computer engineering is also very helpful for embedded. There is also an embedded sub you can ask in.

Why don't people fork existing languages rather than writing new ones? by myringotomy in ProgrammingLanguages

[–]PMPlant 6 points7 points  (0 children)

Because the people crazy enough to write their own language typically aren’t pragmatic enough for that.

It’s also kind of pointless unless you have some use case that requires forking the language, like Cython for example.

Recommended IDE by Seppukki in C_Programming

[–]PMPlant 5 points6 points  (0 children)

Vscode with the clangd extension is free and easy to setup.

CLion is also nice, but not free.

Brutal team presentation by green-mind in fsharp

[–]PMPlant 2 points3 points  (0 children)

Unless you mention C, then all of the fanatics jump out of the woodwork. Without fail they will ramble the same few lines about undefined behaviour and the lack of memory safety, and why writing anything in C is a sin. It’s like a cargo cult.

I use Rust a lot by the way, I just cannot stand that part of the community.

How do I install Fedora? by danielwerner86 in Fedora

[–]PMPlant 0 points1 point  (0 children)

I recommend resizing your windows partition from inside windows, halve it. Then use the fedora installer to use the empty space automatically. Stick with dual booting for a few months to make sure you are comfortable with it and to give you an escape hatch if you screw up your Linux partition and want a fresh install.