help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Re: Java GLPK to Javascript GLPK bindings


From: Nigel Galloway
Subject: Re: [Help-glpk] Re: Java GLPK to Javascript GLPK bindings
Date: Fri, 25 Mar 2011 05:43:06 -0700

I can not resist throwing my two penneth in any longer.

I think the trend is All -> Server Side.

Note that swig produces excellent bindings to php5.

If one wants to do something looking for a tool is OK, but better is to
understand what you want to do. The following dyslexic link may be a
start:

http://p2p.wrox.com/javascript/17313-how-call-dll-method-javascritp-urgent.html

My executive summary would be: don't.


-- 
  Nigel Galloway
  address@hidden


On Tue, 22 Mar 2011 09:09 +1100, "Noli Sicad" <address@hidden> wrote:
> Hi Xypron,
> 
> This project might not be as relevant at moment.
> 
> Here is the trend.
> 
> Sun -> Java, Google -> Javascript.
> 
> Thanks for the link of SWIGJS, I was looking for it before I even
> posted the topic in Help-glpk. SWIGJS is relevant now, not 5 years
> ago.
> 
> Right now, we just shelf it. We will revisit it at the later date.
> 
> Thanks.
> 
> Regards, Noli
> 
> 
> 
> 
> On 3/22/11, glpk xypron <address@hidden> wrote:
> > Hello Noli,
> >
> > it seems to me that the project you envision does not relate
> > to GLPK for Java.
> >
> > Currently I have no time to support you to port GLPK to the
> > iPhone or Android.
> >
> > There have been attempts to provide a JavaScript module to SWIG:
> > http://www.ultravioletconsulting.com/projects/swigjs/index.html
> > Such a module would allow to create wrapping code automatically.
> >
> > Android contains a Java Virtual Machine, on which you might be
> > able to run GLPK for Java.
> >
> > Good luck with your project.
> >
> > Best regards
> >
> > Xypron
> >
> > -------- Original-Nachricht --------
> >> Datum: Mon, 21 Mar 2011 20:45:47 +1100
> >> Von: Noli Sicad <address@hidden>
> >> An: glpk xypron <address@hidden>
> >> CC: address@hidden, address@hidden
> >> Betreff: Re: Java GLPK to Javascript GLPK bindings
> >
> >> Hi Xypron,
> >>
> >> Now, this is getting warmer.
> >>
> >> Here is the right spot.
> >>
> >> CreatingJSClasses
> >> Creating new JS classes from C++ and binding C++ classes to JS
> >>
> >> http://code.google.com/p/v8-juice/wiki/CreatingJSClasses
> >>
> >> Danke Schoen.
> >>
> >> Noli
> >>
> >>
> >> On 3/21/11, Noli Sicad <address@hidden> wrote:
> >> > Hi Xypron,
> >> >
> >> > I finally found the right Javascript engine to create GLPK bindings.
> >> >
> >> > http://code.google.com/apis/v8/embed.html
> >> >
> >> > "
> >> >
> >> > Embedder's Guide
> >> >
> >> > If you've read the Getting Started guide you will already be familiar
> >> > with using V8 as a standalone virtual machine and with some key V8
> >> > concepts such as handles, scopes, and contexts. This document
> >> > discusses these concepts further and introduces others that are key to
> >> > embedding V8 within your own C++ application.
> >> >
> >> > The V8 API provides functions for compiling and executing scripts,
> >> > accessing C++ methods and data structures, handling errors, and
> >> > enabling security checks. Your application can use V8 just like any
> >> > other C++ library. Your C++ code accesses V8 through the V8 API by
> >> > including the header include/v8.h.
> >> >
> >> > The V8 Design Elements document provides background you may find
> >> > useful when optimizing your application for V8.
> >> >
> >> > "
> >> >
> >> > Thanks.
> >> >
> >> > Noli
> >> >
> >> > On 3/21/11, Noli Sicad <address@hidden> wrote:
> >> >> Hello Xypron,
> >> >>
> >> >> I want to run in Firefox for cross platform in general.  Firefox is
> >> >> leading the way with Firebug add-on. It has HTML5 database (i.e.
> >> >> sqlite) as well.
> >> >>
> >> >> My specific needs right now, is to run glpk javascript / glpk jquery
> >> >> in iOS (iphone and ipad) and Android platform later on. I will be
> >> >> using PhoneGap for this 2 arm platform. jQuery mobile will take care
> >> >> with other platform - Meego, WebOS (Hp tablet), etc. later on.
> >> >>
> >> >> Right now, I managed to compile the glpk (glpsol and libqlpk) in iOS
> >> >> (arm7) in Mac OS X. It is cross compilation. However, I have not
> >> >> tested it yet. You need Mobile terminal to run glpsol.
> >> >>
> >> >> Anybody interested I can send this to you.
> >> >>
> >> >> Thanks.
> >> >>
> >> >> Regards, Noli
> >> >>
> >> >>
> >> >>
> >> >> On 3/21/11, glpk xypron <address@hidden> wrote:
> >> >>> Hello Noli,
> >> >>>
> >> >>> the ECMAScript language specification does not provide an interface
> >> >>> to other languages:
> >> >>>
> >> http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf
> >> >>>
> >> >>> Some JavaScript runtimes allow calling Java classes, see for example
> >> >>>
> >> https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/LiveConnect_Overview#JavaScript_to_Java_Communication
> >> >>>
> >> >>> What a solution could look like will depend on the environment which
> >> >>> you want use.
> >> >>>
> >> >>> E.g. if you want to run the application in Firefox, you would have
> >> >>> to supply a plugin for Firefox, which provides amongst others the
> >> >>> GLPK binary library. If you want to run the application in the
> >> >>> Microsoft Internet Explorer you might think about ActiveX.
> >> >>>
> >> >>> Please, describe in which environment you want to use GLPK.
> >> >>>
> >> >>> Best regards
> >> >>>
> >> >>> Xypron
> >> >>>
> >> >>> -------- Original-Nachricht --------
> >> >>>> Datum: Sun, 20 Mar 2011 09:31:06 +1100
> >> >>>> Betreff: Java GLPK to Javascript GLPK bindings
> >> >>>
> >> >>>> Hi Xypron,
> >> >>>>
> >> >>>> I am becoming interested in javascripts and jquery as part of my
> >> >>>> interests in open source GIS (i.e. openlayers) and presenting glpk /
> >> >>>> mathprog output in business graphics (e.g. bar, lines, etc.)
> >> >>>>
> >> >>>> I found out that javascript and jquery are easy to learn and code
> >> less
> >> >>>> as
> >> >>>> well.
> >> >>>>
> >> >>>> Now, would it be kind enough to generate / create  glpk binding for
> >> >>>> javascripts?
> >> >>>>
> >> >>>> Here is Java to Javascripts compiler - Ellipse plugin
> >> >>>>
> >> >>>> "Java2Script (J2S) provides an Eclipse Java to JavaScript compiler
> >> >>>> plugin and an implementation of JavaScript version of Eclipse
> >> Standard
> >> >>>> Widget Toolkit (SWT) with other common utilities, such as package
> >> >>>> java.lang and package java.util. You can convert your SWT-base Rich
> >> >>>> Client Platform (RCP) into Rich Internet Application (RIA) by
> >> >>>> Java2Script"
> >> >>>>
> >> >>>> http://code.google.com/p/java2script/
> >> >>>>
> >> >>>> Thanks in advance.
> >> >>>>
> >> >>>> Regards, Noli
> >> >>>
> >> >>> --
> >> >>> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> >> >>> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> >> >>>
> >> >>
> >> >
> >
> > --
> > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> >
> 
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk
> 

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]