ASM Bytecode Generation to unwrap Expressions of adv-expr API #94

Merged
CommanderTvis merged 44 commits from adv-expr into adv-expr 2020-06-13 21:07:15 +03:00
CommanderTvis commented 2020-06-05 18:08:43 +03:00 (Migrated from github.com)
No description provided.
altavir (Migrated from github.com) requested changes 2020-06-07 20:05:03 +03:00
altavir (Migrated from github.com) left a comment

I think that the main problem is the exposed design. The AsmGenerationContext should be made private or internal and hidden from the user. Also I think that produced entities should inherid Expression so this functionality is compatible with functional implementation.

I think that the main problem is the exposed design. The `AsmGenerationContext` should be made private or internal and hidden from the user. Also I think that produced entities should inherid `Expression` so this functionality is compatible with functional implementation.
altavir (Migrated from github.com) commented 2020-06-07 19:12:26 +03:00

Probably should be implementation

Probably should be implementation
altavir (Migrated from github.com) commented 2020-06-07 19:15:24 +03:00

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir (Migrated from github.com) commented 2020-06-07 20:02:37 +03:00

Space is not actually used.

Space is not actually used.
altavir (Migrated from github.com) commented 2020-06-07 20:02:44 +03:00

Not used

Not used
altavir (Migrated from github.com) reviewed 2020-06-13 19:23:22 +03:00
@ -0,0 +1,139 @@
package scientifik.kmath.expressions
altavir (Migrated from github.com) commented 2020-06-13 19:23:22 +03:00

The rename is meaningless since there is no class with that name. FunctionalExpressionAlgebra is acceptable though.

The rename is meaningless since there is no class with that name. FunctionalExpressionAlgebra is acceptable though.
altavir (Migrated from github.com) reviewed 2020-06-13 19:25:28 +03:00
@ -0,0 +1,23 @@
package scientifik.kmath.expressions
altavir (Migrated from github.com) commented 2020-06-13 19:25:28 +03:00

There is no class called Builders. I suggest starting the name with lower case letter.

There is no class called `Builders`. I suggest starting the name with lower case letter.
altavir (Migrated from github.com) reviewed 2020-06-13 19:27:12 +03:00
altavir (Migrated from github.com) commented 2020-06-13 19:27:11 +03:00

Add documentation since the interface is public.

Add documentation since the interface is public.
CommanderTvis (Migrated from github.com) reviewed 2020-06-13 20:01:04 +03:00
@ -0,0 +1,23 @@
package scientifik.kmath.expressions
CommanderTvis (Migrated from github.com) commented 2020-06-13 20:01:04 +03:00

This is a violation of Coding Conventions.
image

This is a violation of Coding Conventions. ![image](https://user-images.githubusercontent.com/38042667/84574662-1d07a880-add2-11ea-82bb-fb1cacc5be07.png)
altavir (Migrated from github.com) reviewed 2020-06-13 20:02:04 +03:00
altavir (Migrated from github.com) commented 2020-06-13 20:02:04 +03:00

does it make sense to do invoke without operator? It seems that it should be renamed to compile. Those method need to be documented as well.

does it make sense to do invoke without `operator`? It seems that it should be renamed to `compile`. Those method need to be documented as well.
CommanderTvis (Migrated from github.com) reviewed 2020-06-13 20:03:12 +03:00
CommanderTvis (Migrated from github.com) reviewed 2020-06-13 20:03:15 +03:00
altavir (Migrated from github.com) reviewed 2020-06-13 20:05:35 +03:00
altavir (Migrated from github.com) commented 2020-06-13 20:05:35 +03:00

It seems like compile is a better name.

It seems like `compile` is a better name.
altavir (Migrated from github.com) reviewed 2020-06-13 20:06:32 +03:00
altavir (Migrated from github.com) commented 2020-06-13 20:06:32 +03:00

Could the constructor be made internal?

Could the constructor be made internal?
CommanderTvis (Migrated from github.com) reviewed 2020-06-13 20:07:00 +03:00
CommanderTvis (Migrated from github.com) commented 2020-06-13 20:06:59 +03:00

I'll check

I'll check
altavir (Migrated from github.com) reviewed 2020-06-13 20:07:15 +03:00
altavir (Migrated from github.com) commented 2020-06-13 20:07:15 +03:00

rename to asmBuilders

rename to `asmBuilders`
CommanderTvis (Migrated from github.com) reviewed 2020-06-13 20:08:44 +03:00
CommanderTvis (Migrated from github.com) commented 2020-06-13 20:08:44 +03:00

Source file names have to be started with upper-case letter. https://kotlinlang.org/docs/reference/coding-conventions.html#source-file-names

I'll rename to AsmBuilders

Source file names have to be started with upper-case letter. https://kotlinlang.org/docs/reference/coding-conventions.html#source-file-names I'll rename to AsmBuilders
altavir (Migrated from github.com) reviewed 2020-06-13 20:10:17 +03:00
altavir (Migrated from github.com) commented 2020-06-13 20:10:17 +03:00

This method should never be made public, the whole compilation chain: creation of the context, invokation of expression and generation should hidden from API in order to avoid leaking of unfinilized AsmGenerationContext.

This method should never be made public, the whole compilation chain: creation of the context, invokation of expression and generation should hidden from API in order to avoid leaking of unfinilized AsmGenerationContext.
CommanderTvis (Migrated from github.com) reviewed 2020-06-13 20:10:36 +03:00
CommanderTvis (Migrated from github.com) reviewed 2020-06-13 20:11:34 +03:00
altavir (Migrated from github.com) reviewed 2020-06-13 20:12:51 +03:00
altavir (Migrated from github.com) commented 2020-06-13 20:12:51 +03:00

I suggest to bundle all misc methodsin one file or create internal directory for them to limit their visibility.

I suggest to bundle all misc methodsin one file or create `internal` directory for them to limit their visibility.
altavir (Migrated from github.com) reviewed 2020-06-13 20:18:17 +03:00
@ -0,0 +1,23 @@
package scientifik.kmath.expressions
altavir (Migrated from github.com) commented 2020-06-13 20:18:16 +03:00

Yes, but there are some variations of file naming accepted by the communitiy. And there is a style that is used accross other modules, so we need to keepr it uniform. I will write a doc file with local conventions.

Yes, but there are some variations of file naming accepted by the communitiy. And there is a style that is used accross other modules, so we need to keepr it uniform. I will write a doc file with local conventions.
CommanderTvis (Migrated from github.com) reviewed 2020-06-13 20:18:20 +03:00
altavir (Migrated from github.com) approved these changes 2020-06-13 21:06:16 +03:00
Sign in to join this conversation.
No description provided.