6502

Italy

andreagriffini.com

Age: 49

Programmer... some infos on my personal webpage or something more structured on an older version (that is abandonware because I've yet to find a way to create time, so I had to take decisions instead).

1h
answered Python c++ module cannot read file created by python program on windows
10h
revised no need of name mangling for another object of the same class in python?
added 25 characters in body
11h
answered no need of name mangling for another object of the same class in python?
1d
revised How expensive is it to convert between int and double?
added 142 characters in body
1d
revised How expensive is it to convert between int and double?
deleted 3 characters in body
Apr
26
revised Can I assume that a bitwise AND operation is O(1)? If so why?
added 15 characters in body
Apr
25
answered How to set a localStorage item as function?
Apr
25
answered Can I assume that a bitwise AND operation is O(1)? If so why?
Apr
24
comment Object of custom type as dictionary key
@user877329: are you trying to use some blender data structure as keys? Apparently from some repos certain objects require you to "freeze" them first to avoid mutability (mutating a value-based object that has been used as a key in a python dictionary is not permitted)
Apr
23
answered How to use lambdas from a list in Scheme
Apr
22
answered Browser loads corrupted old Javascript
Apr
19
awarded Yearling
Apr
19
awarded Yearling
Apr
14
revised Controlling a python script from another script
added 172 characters in body
Apr
14
answered Controlling a python script from another script
Apr
8
awarded Populist
Apr
8
awarded Good Answer
Apr
4
revised Why does shared_ptr<T>::use_count() return a long instead of an unsigned type?
added 162 characters in body
Apr
3
comment Why does shared_ptr<T>::use_count() return a long instead of an unsigned type?
@hvd: CPUs don't know about "type" of the data... they have unsigned or unsigned operations, but you're right that the name unsigned comes historically from that, and even if the operation was indeed a modulo one the name remained. I'll add a note about this...
Apr
3
comment Why does shared_ptr<T>::use_count() return a long instead of an unsigned type?
@hvd: I never said that unsigned was deliberately designed as a "modulo" type. I simply stated that unsigned happens to be a "modulo" type and that given C++ semantics it was the wrong choice for the size of a container (even back then in 16-bit epoch). Keeping using unsigned when it should not be used even in C++14 when not forced to because of backward compatibility would be nonsense...
1 2 3 4 5