Better HN
topnewbestaskshowjobs
Log inSign up

Osiris-Team

7 karma · joined Jul 10, 2024 (2y ago) · 37 submissions

https://github.com/Osiris-Team
Submissions

comment 1y ago · link · parent

This is my idea of a perfect programming language, it's high level and compiles to C. Meaning it tries to give you high level constructs without sacrificing performance.

Let me know what you think!

There is a pretty basic compiler available which I developed 3 years ago that misses almost all features mentioned in the readme, thus you can mostly ignore that, since I want to focus more on the language spec, its recent changes and if its something you would use!

comment 2y ago · link · parent

Yeah I proved myself wrong after adding more compiler optimizations.

comment 2y ago · link · parent

I added some further optimizations and guess I was wrong!

comment 2y ago · link · parent

Yeah, feel free to contribute / create a PR with a more C/C++ suited algorithm.

comment 2y ago · link · parent

True but let's also not forget the unpredictability of stupidity in human developers which probably cause the majority of performance loss in any language.

comment 2y ago · link · parent

Do they compare the second run of Java? Because using GraalVM native image does not really benefit from runtime info and optimization.

comment 2y ago · link · parent

I just now created the repo for this purpose, hoped to reach some more experience C developers with it and prove me wrong.

comment 2y ago · link · parent

Feel free to create a PR on the linked repo and prove me wrong.

To add some detail: I think that 99% of algorithms are faster in Java in their second run than in any other Language due to the better JIT compiler and optimizations that are possible. I am talking about the GraalVM distribution of Java and its latest version, but we might as well use other distros.

9.

Java is faster than C in its second run, prove me wrong(github.com ↗)

3 points · by Osiris-Team · 2y ago · 17 comments

comment 2y ago · link · parent

1JPM automatically resolves parent and child projects See project.isAutoParentsAndChildren. If true updates current pom, all parent and all child pom.xml files with the respective parent details, adding seamless multi-module/project support.

This expects that the parent pom is always inside the parent directory, otherwise a performant search is not possible since the entire disk would need to be checked.

1JPM helps porting your multi-module project Add JPM.java to your root project directory and add JPM.portChildProjects(); before building. This is going to download and copy the latest JPM.java file into all child projects it can find in this directory, and also run it to generate an initial pom.xml for that child project. The child projects name will be the same as its directory name.

A child project is detected if a src/main/java folder structure exists, and the parent folder of src/ is then used as child project root. Note that a child project is expected to be directly inside a subdirectory of this project.

Now project.isAutoParentsAndChildren will work properly, since all needed pom.xml files should exist.

11.

1JPM now automatically resolves parent and child projects(github.com ↗)

1 points · by Osiris-Team · 2y ago · 1 comment

12.

Desku: Desktop/Mobile/Web Apps in One Codebase(github.com ↗)

2 points · by Osiris-Team · 2y ago · discuss

comment 2y ago · link · parent

Yeah I wish I could say build tools are simple. 1JPM was until I had to deal with transitive dependencies. The recursion going on there broke my mind quite a bit.

comment 2y ago · link · parent

Running "clean build" should do the trick though, it will delete the ./build directory. Or do you mean the local maven repo?

comment 2y ago · link · parent

I'm the original developer, decided to repost since there was some nice discussion I missed.

16.

1JPM: A Maven/Gradle alternative in a single Java file - Original Dev(github.com ↗)

2 points · by Osiris-Team · 2y ago · 2 comments

comment 2y ago · link · parent

I think 1JPM is a wild idea and could be better in the future, but it's hard to compete with 20 years of development at release.

comment 2y ago · link · parent

Ah a fellow tab-autocomplete power user.

comment 2y ago · link · parent

Yeah, however once there are IntelliJ IDEA and VSCode plugins for 1JPM and I actually add some test cases, it should be usable.

comment 2y ago · link · parent

Haha yes, if the IDE isn't happy, I'm not happy. But checkout the releases under github, there you can find the magical single JPM.java file you are looking for ;)

comment 2y ago · link · parent

Its not really different. Except that bld seems to only support Java 17+, whereass 1JPM support Java 8+ and there is still a lot of Java 8 projects out there I guess.

Another difference is also that 1JPM is a single file, which has its advantages and disantwages, checkout the README for more details.

comment 2y ago · link · parent

Wow 14 years ago! Thats great!

Those variable names are madness though haha. Or a single letter class is also pretty wild.

comment 2y ago · link · parent

Happy to hear that! 1JPM is still pretty new and I expect there to be bugs, so if you have some free time and are interested in making this something usable feel free to contribute some day :)

comment 2y ago · link · parent

Thats what 1JPM is also trying to prevent a bit, by leveraging the rigid structure of Java, or more accurately by proving an API that tries to satisfy noobs and power users.

comment 2y ago · link · parent

Interesting, I guess the focus there is more on scripting. For 1JPM the focus is more Maven/Gradle similarity with Java build file.

comment 2y ago · link · parent

Yeah I don't think there is much that can be done against this. Its a complex topic and simple solutions are basically just a dream.

Worked on transitive dependencies, and let me tell you, the version of such a dependency can be literally anywhere.

comment 2y ago · link · parent

Haha glad to hear that! But really don't at the moment, the project is really fresh and I published a early access release to see if there was even demand, and I guess there is!

Contributions are welcome and I am happy to work on this project.

12