The book of inspiration

November 19, 2012

revision 5000

Filed under: jsc — zproxy @ 12:56 am

Today marks the day of the 5000th commit to the JSC ScriptCoreLib Framework. Exciting times! – Arvo

August 23, 2012

Free To Play

Filed under: jsc — zproxy @ 12:01 pm
  • Even if the game is popular it might not make much money
  • Think about  things you will be able to sell in the future
  • Do make a game which is designed to make amoney
  • Consumables as a soruce of revenue
  • Do not depend on a single platform
  • Functional goods vs aesthetic goods
  • Do the marketing and self promotion

See also:

August 9, 2012

OpenGL ES 3.0

Filed under: jsc — Tags: — zproxy @ 12:36 pm

[...] August 6th, 2012 – Los Angeles, SIGGRAPH 2012 – The Khronos™ Group today announced the immediate release of the OpenGL® ES 3.0 specification

  1. OpenGL ES Shading Language 3.0 Specification
  2. OpenGL ES 3.0 Specification

[...] Do you have a phone or tablet? then OpenGL matters. - slashdot

There is a significant set of WebGL examples working as JSC Web Applications. Today, it requires a rather new laptop, does NOT run on iPad and requires Firefox Mobile on Android.

How long will it take until OpenGL ES 3.0 is running on Android or as WebGL?

See also:

May 7, 2012

Change Seeking Entrepeneurs

Filed under: jsc — zproxy @ 2:23 pm
  1. Be positive
  2. Absorb rejections
  3. Inspire others with your creation
  4. Deliver!

[...] Be involved in the most interesting thing you can!

See also:

June 21, 2011

World’s Biggest PAC-MAN

Filed under: jsc — Tags: , , , — zproxy @ 1:52 am

Only a few years ago I had this idea to have a JSC branded PAC MAN multiplayer game.

Today, I found this via RLammle:

For my amusement I found it rather remarkable to be able to log in with facebook connect and use my tablet to ink a new maze for others to play later.

It would be awesome if a future version of JSC would include a C# project template to create something like this.

What if it would be applied to other simple games? What if actual applications could be extended by crowd sourcing?

Above video by Pavel was found thanks to geeksaresexy.com

 

 

August 24, 2010

What Gets Shared?

Filed under: jsc — Tags: , , , , — zproxy @ 8:37 am

 

See also:

August 6, 2010

C# to JavaScript, WebGL

Filed under: jsc — Tags: — zproxy @ 1:39 pm

See also:

WebGL RTS

Filed under: jsc — Tags: , — zproxy @ 1:41 am

See also:

 

August 3, 2010

PSD

Filed under: jsc — Tags: , , — zproxy @ 10:58 am

Where is the Photoshop File Formats.pdf file?

You need to request the Photoshop File Formats documentation explicitly

On the other hand…

There be dragons!

You could use it to get the most basic elements of a document, as long as you are prepared for hours of trial and error as well, but most features post-5.0 are either described as black boxes, or left out entirely. Clearly nobody inside Adobe uses this document or is properly updating it for third parties.

Update: Form Field Elements

While PSD is an industry standard you may be able to just use Paint.NET to edit them.

Manually converting PSD to HTML.

There is even a book!

Update: Slav has an ActionScript implementation.

July 23, 2010

Error loading jvm

Filed under: jsc — Tags: , , — zproxy @ 9:24 am

When I was trying to use jsc to build a flash component the mxmlc compiler failed to launch with this message:

[exec] Error loading: C:\Program Files\Java\jre6\bin\client\jvm.dll

Error loading: C:\Program Files\Java\jre6\bin\client\jvm.dll

To fix that I copied from:

“C:\Program Files\Java\jre6\bin\msvcr71.dll”

to (x86)

“C:\Windows\System32\msvcr71.dll”

to (x86) on 64bit windows

“C:\Windows\SysWOW64\msvcr71.dll”

Then I ran the generated swf file in the flash player which told me the following:

VerifyError: Error #1014: Class mx.core::BitmapAsset could not be found.

As this component was not part of the new BrowserApplication project template it had a custom build.bat which needed a new flag to be passed mxmlc.

-static-link-runtime-shared-libraries=true

Update from the future: While setting up a build environment in Amazon EC the same problem occurs.

See also:

July 22, 2010

Payment

Filed under: jsc — Tags: — zproxy @ 9:24 am

See also:

July 12, 2010

Write WebGL in C# with JSC

Filed under: jsc — Tags: , , — zproxy @ 7:09 am

In the following gallery you will be shown just how easy it is to download JSC, install, create a WebGL application (see the original) and run it in your WebGL enabled browser.

Would you want to program your shaders in C# instead? It would look something like this once implemented:

Update: See GLSL overview

Update: See WebGL Awesomeness

More examples: Shadertoy and Collada tron tank

More examples: Chocolux and take screenshot from 3d and Cubepaint

More examples: Raycolor and more and some dancing frogs? and a whale?

Something simple:

-
Shortest WebGL example

More examples: Ethanol

Update: GLSL minifier, and a small c++ demo

Can we port XNA to WebGL?

Update: For debugging and see WPF OpenGL.

Update: Photoshop effects

Update: Can we have COLLADA within HTML?

See also:

June 5, 2010

WebGL

Filed under: jsc — Tags: — zproxy @ 10:52 am

Today, on another machine with I was able to test out WebGL. When I have a demo where WebGL was programmed from .NET source code I will make a post about it.

The examples I tested listed below:

orbiter



I plan to generate the assembly ScriptCoreLib.WebGL  from WebGL spec (<pre class=”idl”>). The assembly could also be named (but I like the shorter name :) as ScriptCoreLib.Ultra.WebGL.Volatile.dll.

To rehash:

  1. Ultra is the new concept where you can have more types defined your assembly than compiled by jsc.
  2. Volatile means the assembly may have online dependancies on resources like images or spec’s like WebGL IDL. (Or SVG?)

PS. WordPress just asked me “How likely would I be recommending it to my friends and family ?”! Who wouldn’t? :)

Update:

The namespace will probably be ScriptCoreLib.JavaScript.WebGL and the hosting assembly will be ScriptCoreLib.Ultra.Volatile.

May 27, 2010

JSC Live on Make Web Not War Conference Right Now

Filed under: jsc — zproxy @ 4:52 pm

It’s JSC, not me, but Carlo! The event will be recorded and made available within week.

And just in time JSC has a brand new JSC powered home page.

The installer has also been upgraded!

Last, but not least – JSC has a brand new cool shiny Visual Studio like project designer. A lot still needs to be built, but you will get the idea. Drag and drop Java Applets and Adobe Flash Sprites. Select C#, F# or Visual Basic. And save your project to disk. Facebook connected IDE? Why not.

Check back soon!

Updates from twitter:

Twitterlogo_normalWebNotWar IGNITE WEB APP DEMOS in MAIN ROOM: 5 min for each of your web apps. Carlo Godoy introducing JSC Solutions for CROSS PLATFORM DEV! #webnotwarabout 2 hours ago from web

March 10, 2010

8-Bit NYC

Filed under: jsc — zproxy @ 1:51 am

It’s interactive (like Google Maps), letting you zoom from a view of the whole city, down to an individual street — any address, anywhere in the city.

March 9, 2010

Core – What really makes us different

Filed under: jsc — Tags: , — zproxy @ 9:14 am

In this astonishing, inspirational and practical session, Geoffrey “Crossing the Chasm” Moore talks about what you need to be great at, what you need to be merely good enough at, and how companies consistently mix these two categories up.

The next generation of software can be built on top of jsc.

Your Core, My Context, I pay.

My Core, Your Context, you pay.

[#13:44] The purpose of neutralization and innovation is to get the  maximum input from the minimum input output for the minimum input and be good enough.

Differentiation – How you make money

Neutralization –  How to stay in the game

 

See also: Before product-market fit, find passion market fit by Naval

March 4, 2010

FSharp Ultra Application

Filed under: jsc — Tags: , — zproxy @ 1:19 pm

JSC Ultra Application to Support FSharp

Filed under: jsc — Tags: , — zproxy @ 11:38 am

This is awesome :)

You will basically be able to write code for javascript, java applets and flash in F#!

February 22, 2010

JSC Ultra to reuse native source code

Filed under: jsc — Tags: , , , , , — zproxy @ 9:48 am

As advertised the developers will be able to seamlessly create flash sprites and java objects inside their javascript applications in C# via the jsc ultra offering. What if they could just drop some native source code and be able to reuse them in C#?

At the moment only the HTML web page is converted to DOM building code which looks like this under reflector.

In the future releases the native source codes could be parsed and placed in the correct location based on their namespace for their respective back-end compilers.

Seems like I will need source code parsers to pull it off. First step is to generate a stub. The next step would be to convert the native source to IL. If we go just for the first step, then one can surely benefit from some native language specific syntax constructs.

Update: The second pass would mean that the native back-end compiler does it’s job and jsc will go and decompile JVM or AVM to IL as jsc is not about compiling source to IL.

Then you could consume the AboutApplet.java  in your javascript code like this:

42 var Applet1 = new AboutApplet();

43

44 Applet1.Method1(“hello world”);

45

46 var Applet1Element = Applet1.AttachAppletToDocument();

47

48 Applet1Element.style.border = “1px solid red”;

This will create a red java applet in your browser.

The AboutApplet.java should could look something like this:

1 // PromotionWebApplication1.AboutApplet.dll

2 package PromotionWebApplication1;

3

4 import java.applet.Applet;

5 import java.awt.Component;

6 import java.awt.Container;

7 import java.awt.image.ImageObserver;

8 import java.awt.Panel;

9

10 public final class AboutApplet extends Applet implements ImageObserver

11 {

12

13

14 public AboutApplet()

15 {

16 super();

17 }

18

19

20 public final void Method1(String p)

21 {

22 }

23

24 }

Ch

Cool features ahead. Including HTML5 :) Including an actual installer!

jsc has now a twitter feed!

PS. What about .class, .jar, .swf, .swc? :) I surely would like to pull media from online .swf files just to be able to recompile them into my own application.

Hey Compiler that flash game there has nice logo and sound, could you go ahead and make them accessible for me in the code? Thanks! :)

February 19, 2010

jsc ultra

Filed under: jsc — Tags: — zproxy @ 11:58 am

February 18, 2010

about jsc

Filed under: jsc — Tags: — zproxy @ 12:31 pm

Powered by flickr and sketch.

January 26, 2010

Hi Volta, Hi Ripley, Hi Stratus

Filed under: jsc — Tags: , , — zproxy @ 11:22 am

There has been a while I’ve heard about volta project. Mind you jsc.meta (frontend) is now stronger than ever and taking on IL-to-IL translation and jsc (backend) is not anymore just about IL-to-javascript.

Seems like they have yet another project cooking – ripley project.

We propose Ripley, a system that uses replicated execution to automatically preserve the integrity of a distributed computation. Ripley replicates a copy of the client-side computation on the trusted server tier. Every client-side event is transferred to the replica of the client for execution.

Ripley prevents a malicious user or remote hacker from altering the behavior of code running inside a Web browser by creating an exact copy of the computational environment and running that copy on the server. Ripley then sends all of the user’s actions, including mouse clicks, keystrokes, and any other inputs, in a compressed “event stream” from the client to the server. This stream is run through the cloned client application on the server, and the behavior of that virtual doppelganger is compared to that of the application running on the user’s browser at home. If there are any discrepancies, Ripley disconnects the client.

It is very important to carefully analyze available tools and to place one self in the market. At the moment jsc is not in the business of replicating client side business logic in the server side. Yet jsc is capable of that. I will revisit this idea in the future.

If jsc solution were to implement the idea then:

  • Server side business logic could run on PHP
  • Server side business logic could run on Google App Engine Java
  • Server side business logic could run on ASP.NET
  • Client side business logic could run on javascript
  • Client side business logic could run on flash
  • Client side business logic could run on java

Update: Come to think about it jsc solution could pursue another goal of automatic synchronization of client applications via stratus which just recently got multicast support.

More by Stefan.

Nice?

  1. Source
  2. Read the interview with the author here.

Update:

January 19, 2010

jsc solution

Filed under: jsc — Tags: — zproxy @ 3:18 pm

What if you could write all your components within C# in Visual Studio? Soon you will!

codename: jsc solution

What does jsc do? It will tear part your .net assembly and convert components to the target language and form. Neccesary proxy glue code will be generated and injected.

Future features:

  1. javascript application generation
  2. java applet object
  3. flash object with p2p stratus and alchemy
  4. java servlet for google app engine
  5. php code generation
  6. web services
  7. ORM
  8. Avalon
  9. Windows Forms

Update: The client side must be built first. Any compiled objects like javascript, assets, flash and java objects need to be embedded to server side code even just for asp.net. The second phase would then rewrite the asp.net assembly for php or java.

Source view mockup:

January 15, 2010

ReferenceWebSource

Filed under: jsc — Tags: — zproxy @ 4:13 pm

Good news! Your java application can now be compiled from source code on a web site. I am so excited:D

Disclaimer: This is a quick and dirty post.

by mxgraph

The new Pre-build event looks like this:

C:\util\jsc\bin\jsc.meta.exe ReferenceWebSource /ProjectFileName:”$(ProjectPath)”

Seriously, the other day I saw a blog post about how to make T4 download source code for you. At first I thought, thats just insane. It is a serious security liability. You will compile source code which you may have not written.

Update: I added the link. How long until the computer will automatically link to the posts by description? :D 5 years?

jsc.meta now supports this new command ReferenceWebSource, which basically scans your project and downloads references source files from the internet, compiles them, merges them, adds some attributes and adds the new assembly to your project as a reference. This opens up a whole new group of possibilites.

The upper projects are supposed to be external projects written by other developers. Your project is the ReferencingWebSource project. As you can see there are multiple folders in that project suffixed with WebSource. Each of those which has a references.txt file is basically a list of source codes on the web. They can point either to .vb or .cs.

ACME.X.WebSource.references.txt:

http://jsc.svn.sourceforge.net/viewvc/jsc/examples/java/ReferencingWebSource/MySnippetProject/ACME/Class1.cs

http://jsc.svn.sourceforge.net/viewvc/jsc/examples/java/ReferencingWebSource/MySnippetProjectVB/Class1.vb

The source code could be generated by the web server on the fly. Talk about WSDL in C# :) And after the downloaded code is compiled jsc.meta could apply any additional IL translation it wants to on it. It could go ahead and infer new types from existing code…

After you load your project you should do a build. This will invoke the pre build event and update the dynamic reference.

Here is an example of how I can use it in my project. Remember those Class1 types are downloaded via HTTP GET.

This feature is new and not fault tolerant. Oh and this windows forms project is also compiled to java.

Update: Future extension points:

  1. Reference source code in a zip or tar file.
  2. Reference assets within flash files
  3. Reference 3D objects within google warehouse.
  4. Reference HTML design documents
  5. Reference online wave files and compile them as inline components
  6. Reference windows forms textual design
  7. Reference game maker games for their assets
  8. Cache downloaded files for offline scenarios
  9. Check for forbidden API usage to increase security
  10. Reference HTML file with links to images and have them converted to embedded assets
  11. Reference UML diagrams and create components with (network) events?
  12. Reference XSD, XML, JSON to create serializeable DOM’s.
  13. Reference native classes. BCL assembly should be merged with the reference.
  14. Reference HTML DOM as IDL
  15. Reference static HTML file to inject dynamic code
  16. Merge current and sattelite assemblies and dump unused sattelite types to reduce code size.
  17. Reference open source .net projects and simplify by recompiling  them to be used with jsc

December 29, 2009

OrcasMetaWebService

Filed under: jsc — Tags: , , , , — zproxy @ 2:11 pm

Let’s build some muscle on jsc.

OrcasMetaWebService. Crosscompiled from C# to Java for Google App Engine and PHP.

The idea is that your little cute Web Service will be running on PHP and Google App Engine. See the C# source code used in this example over here.

  • See live example running on PHP.
  • See live example running on Google App Engine java

There are features missing. But you sure can see where it is going :)

PS. Video parameters “&w=800&h=500&fmt=18″

Update:

I had this idea to publish the web services via WSDL with HTTP Protocol. But it seems this scenario isn’t exactly supported by the big old Microsoft just yet. So the next step would be to implement xml-soap?

See also:

October 21, 2009

Extending ScriptCoreLib

Filed under: jsc — zproxy @ 5:25 pm

In this post I am going to show you how to implement yet another .net class for java. It is going to be Windows.Forms.Treeview.

This will be included in the next jsc release.

demobutton.png

capture_21102009_192835

It is actually a regular .net windows forms application (see c# source code)!

capture_21102009_202040

(more…)

October 14, 2009

Appengine 1.2.6

Filed under: jsc — Tags: — zproxy @ 6:53 am

As you may already know the SDK has been updated by google to version 1.2.6.

In this post I will document which files need to be changed in OrcasJavaGoogleApplication project template in order to switch to the new version.

  • OrcasJavaGoogleApplication/web/build.xml
  • OrcasJavaGoogleApplication/web/java/WEB-INF/appengine-web.xml
  • OrcasJavaGoogleApplication/tools/run.bat
  • OrcasJavaGoogleApplication/tools/update.bat

I guess you probably are now thinking this could be easier and yes it could and yes it will.

With the jsc solution you will soon be able to convert your simple web application to a Google Application Engine java servlet with ease provided you have the required tools like jsc, ant and appengine itself installed in your development environment.

October 1, 2009

jsc is awesome

Filed under: jsc — Tags: , , , , , — zproxy @ 7:40 am

Now that I got your attention:

There is a new release for jsc with two new screencasts. This time around you are able to omit [Script] attribute and ditch the tools/build.bat. The jsc solution now includes  the jsc.meta compiler which will talk to the other compilers for you.

I am also experimenting with pre compilers. For example the Forms example makes use of TextualUserControl and TextComponent. Without getting too technical they generate a new assembly and add the reference to your csproj file. This opens up some really interesting possibilities. I will talk more about this in future posts.

Future pre compilers in jsc solution could include automatic stub generators for java jar files and for flash swf and swc files.

Open javascript version.

Open actionscript version.

Open javascript version.

Open java version:

demobutton.png

PS. Video parameters “&w=800&fmt=18″

September 1, 2009

Windows Forms inside Opera Widget

Filed under: jsc — Tags: , , , , — zproxy @ 1:57 pm

Opera SoftwareIf you are like me then you probably have had a look at the new opera 10 browser. I liked the widget API so much that I just had to make a widget of my own.

>> Open my Windows Forms javascript example as opera widget!

Widget1

Cool huh? Note that this widget will only show on your primary display if you are one of the multi display citizen. Note that this widget needs a right click to close.

You may see the following warning when opening my widget:

jsc.sourceforge.net

You are installing a file which can alter the way Opera behaves. Opera may become unstable or less secure as a result.

You should only download setup and widgets from sources you know and trust. Do you want to proceed?

jsc.sourceforge.net
You are installing a file which can alter the way Opera behaves. Opera may become unstable or less secure as a result.
You should only download setup and widgets from sources you know and trust. Do you want to proceed?

August 31, 2009

Delaunay triangulation

Filed under: jsc — Tags: , , , , — zproxy @ 6:28 am

There is a new example in town and it is about Delaunay triangulation. The original java source code can be found here.

DelaunayExample

source

With this example I had to add a significant bit of awt and swing classes to ScriptCoreLibJava which ofcourse will deem helpful once it is time to start implementing Windows Forms for java.

PS. Did you know? javax.swing.plaf stands for platform look and feel :)

Problems at porting which should be fixed in the future versions:

  • C# won’t allow nested classes in interface. Workaround is to use “sattelite” nesting parent class.
  • Calling base method from a virtual method seems to be broken and will cause stack overflow. fixed
  • The is operator in if expression was missing parenthesis. Workaround is to use local variable.
  • The boolean comparision in if expression should be optimized. Workaround is to use local variable.
Older Posts »

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 34 other followers