[GitHub] larroy commented on issue #13528: Scala jar contains the scala standard library

2018-12-05 Thread GitBox
larroy commented on issue #13528: Scala jar contains the scala standard library
URL: 
https://github.com/apache/incubator-mxnet/issues/13528#issuecomment-444638931
 
 
   That's why maven / SBT etc. have the concept of transitive dependencies:
   
   
https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Transitive_Dependencies
   
   slf4j and scala language should not be in the package. Only 
libmxnet.so/jnilib Dependencies from the MXNet backend and libmxnet.so/jnilib 
Dependencies from the MXNet backend.
   
   What you describe is considered a bad practice.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] larroy commented on issue #13528: Scala jar contains the scala standard library

2018-12-05 Thread GitBox
larroy commented on issue #13528: Scala jar contains the scala standard library
URL: 
https://github.com/apache/incubator-mxnet/issues/13528#issuecomment-444626117
 
 
   While I think is ok to provide a fat jar for people trying MXNet in the 
console as you point out, we should provide a standard version with just MXNet 
and the binary dynamic libraries inside, without standard scala library or 
other dependencies that can be pulled from maven.
   
   Some of the comments I got from other engineers when I explained this issue 
were: "Definitely not. Maven artifacts should not be fat jars. The jar should 
only include classes and resources that are part of the enclosing project.
   maven has a concept of "assembly" builds and repo can have those types of 
artifacts published, but that obvioulsy should be clearly documented or has 
designated classifier to warn consumers
   In any case the build should not replace the default artifact with the 
output of an assembly build that pulls all dependencies, especially if this jar 
is then published to a Maven repository and can be imported by other Maven 
projects. 
   "
   
   I don't want to irritate anyone with this issue because you guys have done 
great work putting the Scala package forward. But my feedback about this topic 
stands as it is if there's no new information provided.
   
   I asked to other senior engineers in Amazon about this issue and their 
feedback was the same as mine with regards to this issue, as you can read 
above. They also having plenty of experience running big java / scala projects. 
I have maintained Spark myself inside amazon for a few releases (it's a huge 
project)  and worked in big Scala projects for Amazon which are now in 
production (SageMaker) and other companies, so I think I know one thing or two 
about Scala and dependencies.
   
   I suggest you guys do your due diligence about this topic and find out 
what's the best practice if my arguments are not convincing. If you need people 
to contact to gather more opinions I can suggest the Scala lists inside Amazon 
or I can provide some names. 
   
   If you need more help or feedback from my side, let me know. Happy to help.
   
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] larroy commented on issue #13528: Scala jar contains the scala standard library

2018-12-04 Thread GitBox
larroy commented on issue #13528: Scala jar contains the scala standard library
URL: 
https://github.com/apache/incubator-mxnet/issues/13528#issuecomment-444213568
 
 
   This doesn't sound like a good idea. Libraries shouldn't include the scala 
standard library. You should use scala -cp to run , and not java -cp.
   
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] larroy commented on issue #13528: Scala jar contains the scala standard library

2018-12-04 Thread GitBox
larroy commented on issue #13528: Scala jar contains the scala standard library
URL: 
https://github.com/apache/incubator-mxnet/issues/13528#issuecomment-444073477
 
 
   @nswamy @lanking520 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services