Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I like OpenSCAD for teaching the rules of semicolons and curly braces. Within 20 minutes, students can write programs, learn about transformations, and see the results of misplaced semicolons and curly braces without worrying about other semantics. In other words, OpenSCAD is a great tool to teach the fundamentals of the C-family syntax rules to beginners.
But OpenSCAD lacks expressive power. There is no storage of shapes as variables -- everything has to be written as a function. I have found PLasM, based on Python to be much more powerful since python itself can be used in the script.
Does anyone know of a Java-based language, essentially where the underlying CGAL is embedded in Java functions? That would be ideal since I am using Processing and Arduino to teach programming.
SolidPython? Not Java based, but might just be what you are looking for?
It's a python frontend for solid modelling that compiles to OpenSCAD:
https://github.com/SolidCode/SolidPython
What about this - https://code.google.com/p/cgal-bindings/? It is a set of SWIG bindings for CGAL that supports Python and Java.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to know, if there are recommended libraries for decision trees.
For me best laguages atm are Java (easiest) and PHP (long term-usefulness).
I need them for a thesis at university and want to use the code later on as a webservice. The problem itself is not important and could be solved in various ways. But as a condition/constraint I have to use decision trees.
And I searched for quiet a while, but nothing really smashing turned up. So I decided to ask you.
As I said, Java would be easiest for me. And so would be Java-like languages (C++,...). PHP would be most useful as I want to use pieces of that code later on a server. Also frontend programming would be much easier ;-)
Other hosting-supported languages would be ok, too, but I'm not yet familiar with them.
The functionality doesn't need to be very complex as the problem isn't that based on decision trees. It would be nice if I could load the structure (kind of nodes, costs, units) via i.e. XML and than load a configuration-set with dedicated numbers for each node/transistion.
But I'm wondering, if it's maybe easier to implement that stuff myself.
I would be very pleased, if you can recommend something. (And for future investigators other languages wouldn't bother ;-) )
You should look into the Weka API: https://weka.wikispaces.com/Use+WEKA+in+your+Java+code
They have an abundance of decision tree algorithms: ID3, CART, ...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there an equivalent of .net's Expression Trees that underly LINQ for the JVM? I would like to implement some LINQ like code structures in Scala and I am wondering if I have to roll my own expression tree library also.
Update:
I am not interested in a linq equivalent itself. .net has a large set of expression tree tools that make it easy to dynamically compile code at runtime can have it be callable from your code. The project I want to undertake has no relation to databases. Expression tree's provide an easy way to describe code that operates on data.
If there is no library my other option I think is to create one that emits byte code.
Since 2.10, Scala has macros, which give you access to abstract syntax trees of their arguments at compile-time: http://scalamacros.org/. Here are some examples of their usage including a sketch of LINQ: http://scalamacros.org/paperstalks/2013-12-02-WhatAreMacrosGoodFor.pdf.
The closest thing I am aware of is Julian Hyde's linq4j and Optiq libraries. They have an expression tree model, support a LINQ-like model of programming (subject to Java syntax) against many types of data sources.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
For my java project I need to check a code written in C for errors and syntax ... Is there any API or anyother Java implementation of C syntax and error checker?
You could invoke a C compiler in Java and parse the results.
An alternative could be Ideone.com, since they offer an API.
What is ideone?
Ideone is something more than a pastebin; it's an online compiler and
debugging tool which allows to compile and run code online in more
than 40 programming languages.
That's pretty broad, but it looks like antlr might be the tool you need. There's a load of grammars available, including one for C.
Real answer:
i used to do something liek this a few years ago... basically you need JFlex and CUP or some form of a scanner/parser combo.
take a look, i don't think i have the finished thing uploaded but you can take it from there... http://code.google.com/p/javamicko/
Coco/R[1] is a LL1 compiler generator available in Java.
You can define a language by your own (tokens + syntax) and parse/check a given input.
[1] http://ssw.jku.at/Coco/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
One thing I find very confortable with Numpy is the vectorization of operations with arrays (ie. the absence of any explicit looping), and the implicit element-by-element behavior of operations.
Since I have to move from Python to Java for a project, I was looking for any equivalent in well known math libraries (Colt, JScience, Apache Commons Math). But as far as I see it, none of them have equivalent capabilities.
Could anyone advise me?
I had the same problem as you but did not find a java solution. Java misses operator overloading for [] and has no slices. So you will not find a Java solution with the same, easy to read notation as numpy provides.
The nd4j library is essentially "NumPy for Java". It supports broadcasting and vector operations.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
What is the single best pretty-printing library for Java? I mean a library for printing formatted output with indentation, break hints, etc., not a library for beautifying/re-formatting Java code itself. Ideally, the library would "play nice" with System.out.println and friends.
For an idea of what I'm looking for, see OCaml's Format module, particularly Format.fprintf.
[UPDATE] I am not looking for a console windowing library. A pretty-printing library allows you to define methods for formatting arbitrary values such that indentation is preserved and line breaks are chosen at sensible locations. Such libraries exist for Haskell, Standard ML, OCaml, F#, and Scheme. The XTC library provides some of this functionality in xtc.tree.Printer, but it is not nearly as flexible as the libraries in other languages.
Is it jpplib?
Since you talk about boxes, break hints and so on I assume you mean to build a text-based windowing application. So I guess that you are looking for something similar to Ncurses but in Java. Maybe charva could help you.
You may also try javacurses.
According to Dr. Dobb's Code Talk it is cute.
I would say its still easier using Xalan + Sax, like in this example.