Questions tagged [internals]

The internals tag denotes questions about how things work, as opposed to how to accomplish something specific. Of course, how something works underneath will have practical implications, but internals questions aren't about how to do something; rather, how to understand something.

If you understand how a database or parser or version control system actually works, you'll be better at using it. Internals questions seek this kind of inside knowledge.

660 questions
8
votes
5 answers

Are Delegates more lightweight than classes?

I tried disassembling a C# created executable, but I couldn't come to a conclusion. What I'd like to know is that if for the CLR c#'s delegates are really special entities or just a compiler sugar? I ask this because I'm implementing a language that…
Waneck
  • 2,450
  • 1
  • 19
  • 31
8
votes
2 answers

What are the inner workings of the Selenium waitFor mechanism?

I am trying to customize the behavior of Selenium's click command, (via user-extentions.js), by intercepting calls to doClick(locator). Basically I need to delay click actions whenever our application's "busy indicator" is being displayed. (Now the…
Chris Noe
  • 36,411
  • 22
  • 71
  • 92
8
votes
1 answer

How does the PACKAGE argument to .Call work?

.Call seems rather poorly documented; ?.Call gives an explanation of the PACKAGE argument: PACKAGE: if supplied, confine the search for a character string .NAME to the DLL given by this argument (plus the conventional extension, ‘.so’, ‘.dll’,…
MichaelChirico
  • 33,841
  • 14
  • 113
  • 198
8
votes
1 answer

List All Open Files

This is an add-on to another question found here. In short: I would like to list all of the open files on a system and retrieve their associated file names. If this is the wrong approach, or if there's another way, please give me a push in the…
mrduclaw
  • 3,965
  • 4
  • 36
  • 37
8
votes
3 answers

What is the "identity pointer" before a TTypeInfo there for?

If you poke around enough in Delphi internals, you'll find something strange and apparently undocumented about TTypeInfo records generated by the compiler. If the PTypeInfo points to a TTypeInfo record at address X, at X - 4 you'll find the next 4…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
8
votes
1 answer

what is unix/linux internals?

When somebody asks me about how strong you are in unix/linux internals ? What do they really mean ? Though i have some idea, i would like to hear from some experts that, what is really meant by unix/linux internals. My ideas are, i have to be…
user412125
  • 219
  • 3
  • 7
8
votes
4 answers

How does git track changes to files

For the longest time I thought git commits keep diffs of changed files and not copies. Any information I could find states the contrary. I conducted a little experiment: $ git init $ subl wtf Here I create a file with 99 999 lines, each of which…
ndnenkov
  • 35,425
  • 9
  • 72
  • 104
8
votes
1 answer

findLoadedClass() returns null

According to the JVM spec, the class loader that initiates loading of a class is recorded as the initiating class loader by the JVM. Furthermore, according to the JavaDoc of ClassLoader#findLoadedClass() the method Returns the class with the given…
musiKk
  • 14,751
  • 4
  • 55
  • 82
8
votes
3 answers

How does JVM implement the varargs?

I recently got interested in such a feature in Java, as functions with variable number of arguments. This is a very cool feature. But I'm interested: void method(int x, String.. args) { // Do something } How is this actually implemented on the…
SPIRiT_1984
  • 2,717
  • 3
  • 29
  • 46
8
votes
1 answer

How do string literals in ruby bypass new/initialize, and is there a way to instrument this?

I was playing with an idea this afternoon, and stumbled into something I don't quite understand. Basically what I'm trying to achieve in this experiment is to somehow know every time a string is created (for later use, such as in some kind of DSL).…
Mason Cloud
  • 1,266
  • 1
  • 15
  • 20
8
votes
3 answers

How are Perl's lexically-scoped pragmas implemented?

Pragmas, like autodie, according to the docs, are lexically scoped. { use autodie; .. .. } # Can die here Does this apply to all modules loaded with use? As far as I know, use is almost the same as: BEGIN { require autodie; …
snoofkin
  • 8,725
  • 14
  • 49
  • 86
7
votes
2 answers

Why can I assign an undefined variable to itself in Ruby and get nil?

Possible Duplicate: Why a = a is nil in Ruby? There's a, shall we say, "odd phenomenon" in Ruby with using undefined variables. It's like this: # irb session follows # foo # undefined local variable or method 'foo' bar # same for…
Nathan Long
  • 122,748
  • 97
  • 336
  • 451
7
votes
2 answers

Java - SAM type optimization

A working document describing the state of Project Lambda mentions the so-called SAM (single abstract method) types. As far as I know the current lambda proposal doesn't affect the runtime just the compiler by making possible automatic conversion…
Tamás
  • 298
  • 3
  • 14
7
votes
2 answers

What is ExternalRDDScan in the DAG?

What is the meaning of ExternalRDDScan in the DAG? The whole internet doesn't have an explanation for it.
Alon
  • 10,381
  • 23
  • 88
  • 152
7
votes
2 answers

How is Key-Value Observing implemented internally?

I got answer about Foundation magic for this question: What's the most *simple* way to implement a plain data object which conforms key-value-observing? What's the magic? How it work internally? Because it's dangerous using framework which I can't…
eonil
  • 83,476
  • 81
  • 317
  • 516