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
1
vote
1 answer

Which kind of of data handling, internal or external, is commonly used?

I'm writing a program in Python3.5 that reads a data set and does some stuff (it's DICOM data if you are familiar with it). It uses: Large arrays of size (512,512,141) or bigger. Alot of small metadata (many single data entries). Now my program…
NineTails
  • 550
  • 4
  • 24
1
vote
1 answer

Javascript this keyword inside functions

I am trying to understand internals of Javascript. I have some misunderstanding of this keyword. Everywhere stated that this keyword is reference to the object that invokes function. But as far as I know function is an object as well. So…
user3991417
1
vote
0 answers

How does MRI Ruby store the contents of a String?

Primer: This question is quite long, because I want to give an overview of my current understanding of the inner mechanisms of MRI and how I came to my conclusions. I want to understand the code better, so please correct me if any assumption I'm…
le_me
  • 3,089
  • 3
  • 26
  • 28
1
vote
0 answers

Rails.env implementation in Rails question

browsing rails source, I found in railties/lib/initializers.rb such method def env @_env ||= begin require 'active_support/string_inquirer' ActiveSupport::StringInquirer.new(RAILS_ENV) end end I know how it works, but why it is…
Sławosz
  • 11,187
  • 15
  • 73
  • 106
1
vote
3 answers

get name of function assigned to variable in R

I have a similar question as this one, but a more special case. Consider the following example code: fun1 <- mean fun2 <- max fun3 <- median Now I want to get the names of the functions assigned to the variables as charachters. While I understand…
mschilli
  • 1,884
  • 1
  • 26
  • 56
1
vote
0 answers

Location of implementations of Spark Transformations in source code

I want to study implementations of Transformations in Spark RDDs and the I want to implement some new Transformations in future. Can someone please point me to the code segments I should look at and observe executions in details ? Thanks, S. Sarkar
1
vote
0 answers

Debug Android internal API about Sim Toolkit and UI

I am working on a project where the client wants to make automatic tests of UI components (e.g. using Appium or UI Automator), the project is based on the SIM Toolkit. The aim is to test if GUI components are displayed (thanks to commands sent to a…
Totuyaki
  • 11
  • 3
1
vote
1 answer

How to get a tuple out of a ConstVal?

With current nightlies, one can use rustc::middle::const_eval_partial(..) to get a Result. However, that ConstVal is a Tuple { node: NodeId } for tuple values. How can I get the contents of this tuple? Example code (here a minimal lint…
llogiq
  • 13,815
  • 8
  • 40
  • 72
1
vote
1 answer

How do I get the current state of a thread (e.g. blocking, suspended, running, etc..) in win32?

I couldn't find a documented API that yields this information. A friend suggested I use NtQuerySystemInformation. After looking it up, the information is there (see SYSTEM_THREAD ) but it is undocumented, and not very elegant - I get the information…
None
1
vote
0 answers

.exr ExceptionFlags contradict .lastevent

Today I saw a .NET NullReferenceException which IMHO should be a first chance exception since the exception is caught and displayed as a MessageBox. In WinDbg, it looks like this: 0:000> .exr -1 ExceptionAddress: 000007fe8e5794ba ExceptionCode:…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
1
vote
1 answer

How can I match up a CLR method table entry with a MethodDesc?

Using sos, I can get the method table entry list for a particular class: !DumpMT -MD 1d3c58 PDB symbol for mscorwks.dll not loaded EEClass: 001d195c Module: 001d2f2c Name: Class1.B mdToken: 02000005 BaseSize: 0xc ComponentSize: 0x0 Number of IFaces…
thecoop
  • 45,220
  • 19
  • 132
  • 189
1
vote
1 answer

Stack and Stack Base Address

In the MEMORY_BASIC_INFORMATION structure one finds two PVOID variables, called BaseAddress and AllocationBaserespectively. I'm reading a book on Threading and its going over how to get the stackspace left on the stack in quite some detail, however…
Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
1
vote
1 answer

MEM_FREE pages identification

I want to allocate a specific 512MB page which is MEM_FREE, and I want to change that page to MEM_RESERVE and PAGE_NOACCESS. Hence, with Windbg, I found a page and I called to NtAllocateVirtualMemory on that page address with PAGE_RESERVED…
1337
  • 317
  • 1
  • 9
1
vote
0 answers

Mapping section into own address space

So i got a little bit lost looking at memory mapping. There is shared memory which requires implementation on both processes. Then there is the possibility to inject a file using MapViewOfSection. I've implemented these two things and didn't have…
1
vote
3 answers

How do I count bytecodes in Python so I can modify sys.setcheckinterval appropriately

I have a port scanning application that uses work queues and threads. It uses simple TCP connections and spends a lot of time waiting for packets to come back (up to half a second). Thus the threads don't need to fully execute (i.e. first half sends…
user31056