8,088 reputation
43275
bio website
location
age
visits member for 3 years
seen 18 hours ago

0x2B | ~0x2B


Jul
7
comment Is there a real advantage to dynamic languages?
@MattFenwick: On the other hand, how much of the unit tests deal with type-checking is debatable: some claim that by unit-testing the application logic you also cover most type errors and therefore there is very little overhead due to type checking. In other words, some maintain that you do not have to write unit tests that specifically cover type errors.
Jul
7
comment Is there a real advantage to dynamic languages?
@MattFenwick: You wrote that it is an advantage that "... for a dynamic language, a static type system doesn't have to be designed, implemented, tested, and maintained." and Den observed that you often do have to design and test your types directly in your code. So the effort is not removed but moved from language design to the application code.
Jul
7
comment Is there a real advantage to dynamic languages?
@Den: Very good point: I often observe that unit tests I write in Python cover errors that would be caught by a compiler in a statically typed language.
Jul
7
reviewed Leave Open Is there a real advantage to dynamic languages?
Jul
7
comment An algorithm for reconstructing a graph from its shortest path information?
I think the algorithm cannot be generalized to the case of nonuniform edge lengths but I haven't proved it.
Jul
7
comment An algorithm for reconstructing a graph from its shortest path information?
See my first comment, if the statement it contains is correct, it gives an algorithm for reconstructing the graph.
Jul
7
comment An algorithm for reconstructing a graph from its shortest path information?
I am not sure if 1) and 2) are equivalent: there might be more than one graph for a given shortest path information and also an algorithm that finds all possible solutions.
Jul
7
comment An algorithm for reconstructing a graph from its shortest path information?
If there is an edge between two vertices v1 and v2, then exactly these two vertices are in the shortest path between v1 and v2. So for any other vertex v, [v1, v] == 0 == [v, v1] in the matrix of v2, and [v2, v] == 0 == [v, v2] in the matrix of v1.
Jul
6
comment Continuations, coroutines, and tail-call optimization
@Robert Harvey: Maybe I have formulated my question in the wrong way. What I mean is that I would like to find a solution that will work even without TCO. This would be useful e.g. if I wanted to use continuations to implement coroutines in Python.
Jul
6
revised Continuations, coroutines, and tail-call optimization
added 17 characters in body
Jul
6
reviewed Close How to structure a program into classes
Jul
6
comment Continuations, coroutines, and tail-call optimization
Also, I am not sure if there does not exist an alternative implementation that does not require TCO: I think such an implementation does not exist, but I am not sure. I would like to use a similar solution in another language and I hoped there does exist a solution that works without TCO.
Jul
6
comment Continuations, coroutines, and tail-call optimization
@RobertHarvey: I have tried my example and it seems to work: the execution switches back and forth between the two coroutines, but I am not sure whether this solution is idiomatic in Scheme. Maybe there is a different and more idiomatic implementation of coroutines using continuations.
Jul
6
revised Continuations, coroutines, and tail-call optimization
Corrected text.
Jul
6
asked Continuations, coroutines, and tail-call optimization
Jul
6
comment Are the different available programming languages redundant?
@Jetti: J++ was followed by C#, which is still the mainstream language that's most similar to Java.
Jul
6
reviewed Reopen Is it common to lie in job ads regarding the technologies in use?
Jul
6
comment Can daily reports decrease a developer's productivity?
@Murph: There is a very high demand for developers and certain practices make it more profitable for companies to employ less experienced / lower-level (and therefore cheaper) developers because they compensate for the developers' poor organizational skills.
Jul
6
comment Can daily reports decrease a developer's productivity?
@A-B-B: Developers are not sheep, but many companies would like to treat them as such.
Jul
6
revised Can daily reports decrease a developer's productivity?
Updated answer