6502

Italy

gripho.it

Age: 48

Programmer... some quite outdated infos on my website (that is abandonware because I've yet to find a way to create time, so I had to take decisions instead).

8h
comment controlling an application via c++ code
@LightnessRacesinOrbit: it's indeed a bit complex, but it's all code already written (and other standard protocols are not simpler).
8h
comment controlling an application via c++ code
@LightnessRacesinOrbit: why not? unless there's a performance (bandwidth/latency) problem this is what I'd suggest (and I'm saying this after having implemented way too many other IPC protocols in the past - both standard and custom, both dynamic and static). http+json is what I'd choose today; for high performance my choice today would instead be custom dynamic marshalling over zeromq.
9h
revised What happens when I call a function without assigning its returned value to a variable?
added 1426 characters in body
10h
answered creating a new handle to class through a function in c++
10h
answered What happens when I call a function without assigning its returned value to a variable?
10h
answered controlling an application via c++ code
1d
awarded Enlightened
1d
awarded Nice Answer
1d
revised How to right shift bits in c++?
typos
1d
answered How to right shift bits in c++?
1d
answered how can i put string after int in c++
2d
revised How to randomly sample a matrix in python?
deleted 205 characters in body
2d
revised How to randomly sample a matrix in python?
added 419 characters in body
2d
revised Execution context and closures
added 54 characters in body
2d
revised Execution context and closures
added 640 characters in body
2d
comment Execution context and closures
@Genos: exactly. Every time you call foo a new closure is created with its own independent a variable. Note that variables are captured, not values; this means that if you create two closures in the same scope capturing the same variable they are sharing it, i.e. if one changes the variable the other will see the change. See edit.
2d
answered Execution context and closures
2d
answered How to randomly sample a matrix in python?
Jan
23
answered Value inside loop doesn't change
Jan
23
comment Python - Cosine gradually reveals small-amp oscillations ("wobbles")
That green line doesn't seem like the f of your equation. Can you show a plot of f? If it's not aliasing may simply be your "frequency" that is acting strangely... see edit.
1 2 3 4 5