Piotr Likoski likoski
Loading Heatmap…

likoski pushed to master at AerScript/Aer

  • d2335c86b2 Base32::decode() cannot return boolean values.

3 months ago

likoski closed issue AerScript/Aer#54

Small code nits

3 months ago

likoski commented on issue AerScript/Aer#54

Small code nits

Fixed second problem with 843c2d67d9.

3 months ago

likoski pushed to master at AerScript/Aer

  • 843c2d67d9 I am pretty sure we want to use the number of elements in array in this place, not the actual size of array. The size of a structure is greater than the sum of its parts because of what is called packing. A particular processor has a preferred data size that it works with. Most modern processors' preferred size if 32-bits (4 bytes).

3 months ago

likoski commented on issue AerScript/Aer#54

Small code nits

I believe 33b0f20573 fixes on of them.

3 months ago

likoski pushed to master at AerScript/Aer

3 months ago

likoski commented on issue AerScript/Aer#54

Small code nits

There is one more global warning:

3 months ago

likoski closed issue AerScript/Aer#49

Interpreter segfaults at random steps

6 months ago

likoski commented on issue AerScript/Aer#49

Interpreter segfaults at random steps

Fixed with 6b18e204cd.

6 months ago

likoski pushed to typehinting at AerScript/Aer

  • 6b18e204cd Always pop the l-value on variable declaration. Otherwise, it might lead to unexpected behaviour including protected memory access and segmentation fault. This finally fixes #49.

6 months ago

likoski commented on issue AerScript/Aer#46

AerScript Debugger

First of all, we should implement a logging support. All output from compiler and VM could be logged then. Having this, we could use same mechanism to log debugging information to another file. Such file, can be then manually interpreted or we can write some additional application for that purpose in the future.

1 year ago

likoski commented on issue AerScript/Aer#45

debug_backtrace() and __FILE__ OOP problem

We should deal with all magic constants at compilation level. This is exactly how it works in PHP.

1 year ago

likoski commented on issue AerScript/Aer#45

debug_backtrace() and __FILE__ OOP problem

You are probably right, @belliash. Great investigation. I had no time so far to trace this, but I wonder how it knows about the line number. If we know that, we could pass information about file in very same way.

1 year ago

likoski commented on issue AerScript/Aer#45

debug_backtrace() and __FILE__ OOP problem

Yes, you are right. But since get_included_files() looks at pVm->aFiles instead of pVm->aIncluded it should return both files, not just the entry point, especially if PH7_VmPushFilePath() alway pushes a file to pVm->aFiles. Tests show something else.

1 year ago

likoski commented on issue AerScript/Aer#45

debug_backtrace() and __FILE__ OOP problem

get_included_files() returns just one file since aa2d762b2937f8c04c051dcadeadf788ce7b1ac0

1 year ago

likoski commented on issue AerScript/Aer#45

debug_backtrace() and __FILE__ OOP problem

Fixing get_included_files() seems relatively easy. It intentionally cuts the full path and returns just filename.

1 year ago

likoski commented on issue AerScript/Aer#45

debug_backtrace() and __FILE__ OOP problem

array(1) {

1 year ago

likoski opened issue AerScript/Aer#45

include() and require() do not register included files

1 year ago

likoski commented on issue AerScript/Aer#25

Implement memory_usage() builtin function

I have done testing and applied patch seems to be working fine. Also fixed memory_limit branch.

1 year ago

likoski pushed to memory_limit at AerScript/Aer

  • 32dde87853 Reverting fix I am reverting fix, because it de facto breaks the code. Using get_included_files() before this commit causes segmentation fault.

1 year ago