What happens internally when a file path exceeds approx. 32767 characters in Windows?

Because I’m lazy, I didn’t write a test program but tested it using the excellent Far Manager which handles things like long paths (longer than MAX_PATH) or special filenames (con, prn etc) just fine. I made a string of exactly 255 characters (“12345678901234…012345”) and started creating nested directories. Luckily, Far’s “Make Directory” function takes a … Read more

If Java’s garbage collector moves objects, what is Object.hashCode and System.identityHashCode?

.NET’s implementation is intentionally not published (and when you attempt to decompile it, you will find that it makes an unmanaged framework call). The only documentation as such is here, which only states that it is “not guaranteed to produce a different value for each object”, and “may change between framework versions”. Making any assumptions … Read more

Where did the text segment get its name?

Going a little further with nos’s comments, I turned up a scanned version of the GE-635 Programming Manual, and found the following in the section on the macro assembler: The GE-625/635 Macro Assembler is being provided to give the professional programmers some of the conveniences of a compiler and the flexibility of an Assembler. […] … Read more

How are java interfaces implemented internally? (vtables?)

The key feature of the HotSpot JVM is inline caching. This doesn’t actually mean that the target method is inlined, but means that an assumption is put into the JIT code that every future call to the virtual or interface method will target the very same implementation (i.e. that the call site is monomorphic). In … Read more

What constitutes a merge conflict in Git?

Basically, with git, every merge is a conflict, which leaves you with an index that contains three versions of each file, the versions from each branch and the base. On this index, various resolvers are run, which can decide for each individual file how to resolve the matter. The first stage is a trivial resolver, … Read more

How does object_id assignment work?

In MRI the object_id of an object is the same as the VALUE that represents the object on the C level. For most kinds of objects this VALUE is a pointer to a location in memory where the actual object data is stored. Obviously this will be different during multiple runs because it only depends … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)