Nice TWiki > Doc > WebHome (search result) TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Doc . { Changes | Index | Search | Go }
Search: Code *Examples[^A-Za-z]

Topics in Doc web: Changed: now 10:45 GMT Changed by:
AckermannNoviceExample 28 Apr 2005 - 11:47 - r1.9 TWikiGuest
/ From the command line 1) create a directory ackermann 2) cd into directory ackermann 3) save this source code as main.nice in directory ackermann 4) compile the ...  
AspectOrientedMultiMethodExample 28 Apr 2005 - 11:42 - r1.4 TWikiGuest
See the AOP static crosscutting listings in http://www-106.ibm.com/developerworks/library/j-aopsc/ "AOP banishes the tight-coupling blues" . // Listing 5 package com ...  
BenchIntermediateExample 02 Sep 2003 - 20:25 - NEW DuncanLissett
package bench; / Martin Richards developed Bench as a test of systems programming languages. http://www.cl.cam.ac.uk/users/mr/Bench.html In this interpretation of ...  
BinaryMethodsMultiMethodExample 28 Apr 2005 - 11:41 - r1.7 TWikiGuest
/ Please try the NoviceExamples before the MultiMethodExamples To compile: nicec sourcepath .. a binarymethod.jar binarymethod To run: java jar binarymethod.jar ...  
BinarySearchTreeExample 11 Apr 2005 - 18:04 - r1.2 TWikiGuest
public ?U getValue(?IntTreeNode node, T key); getValue(null, key) null; class IntTreeNode { private !T m key; private U m value; private ?IntTreeNode left null; private ...  
BuilderPatternMultiMethodExample 30 Jan 2004 - 19:45 - NEW IsaacGouy
The BuilderPattern Director is written directly in main; and instead of creating multiple builder classes, we define default multi methods GeneratorMultiMethodExample ...  
CollectionExample 06 Jun 2003 - 18:22 - NEW DanielBonniot
package test; void main(String args) { java.util.List frenchNumbers new ArrayList(); frenchNumbers.add("Zero"); frenchNumbers.add("Un"); frenchNumbers.add("Deux" ...  
DispatchIntermediateExample 24 Dec 2003 - 21:32 - r1.2 IsaacGouy
The original MultiJava code for this benchmark, and the Java comparison code, is available from this Technical Report: "MultiJava: Design, implementation, and evaluation ...  
FiboNoviceExample 03 Apr 2005 - 16:15 - r1.11 TWikiGuest
/ From the command line 1) create a directory fibo 2) cd into directory fibo 3) save this source code as main.nice in directory fibo 4) compile the source code \fibo ...  
FiniteStateMachineMultiMethodExample 28 Apr 2005 - 11:50 - r1.6 TWikiGuest
/ Please try the NoviceExamples before the MultiMethodExamples To compile: nicec sourcepath .. a benderfsm.jar benderfsm To run: java jar benderfsm.jar / private ...  
GenericProgrammingBeginnerExample 10 Jan 2004 - 15:35 - r1.2 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. d . a generic.jar generic To run: java jar generic.jar / abstract interface ...  
GetInvolved 09 Jul 2005 - 18:24 - r1.7 DanielBonniot
Thanks for your interest in getting involved! Nice is not pushed by a single company, but developed openly by a small team, in the spirit of free software. It will ...  
GraphParametricTypeExample 22 Apr 2005 - 10:52 - r1.8 TWikiGuest
http://www.osl.iu.edu/publications/pubs/2003/comparing generic programming03.pdf "A Comparative Study of Language Support for Generic Programming" used a sample of ...  
HashBeginnerExample 10 Jan 2004 - 19:03 - r1.6 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. a hash.jar hash To run: java jar hash.jar 150 / void main(String args ...  
HaskellPreludeExample 30 Jan 2003 - 00:07 - NEW TWikiGuest
This is a large portion of the Haskell prelude, at least those parts which can be translated sensibly into Nice. This example is under construction. Still needs tests ...  
HelloSwingWorld 28 Apr 2005 - 11:50 - r1.6 TWikiGuest
This example shows how to write a little more than a simple helloworld. When you move the mouse over the (inner part of the) Frame it will say hello, when you move ...  
HelloSwtUserInterfaceExample 28 Apr 2005 - 11:53 - r1.6 TWikiGuest
/ To compile: nicec classpath "niceswt.jar;swt.jar" a helloswt.jar helloswt To run: java cp swt.jar;helloswt.jar helloswt.fun / import nice.swt; import nice.swt.events ...  
HelloWorld 30 May 2003 - 01:46 - NEW DanielBonniot
// in a file 'main.nice', in directory 'hello' // compile from the parent of 'test' package hello; void main(String ) { println("Hello, world"); } Main.DanielBonniot ...  
HelloWorldNoviceExample 10 Jan 2004 - 15:36 - r1.4 IsaacGouy
/ From the command line 1) create a directory hello 2) cd into directory hello 3) save this source code as main.nice in directory hello 4) compile the source code ...  
JavaToggleExample 17 Sep 2003 - 18:00 - r1.2 IsaacGouy
/ Please try the BeginnerExamples before the IntermediateExamples To compile: \methcall javac java toggle\ .java Let's put the files in a jar file so we can show ...  
LazyVectorExample 30 Jan 2003 - 00:16 - NEW TWikiGuest
LazyVector? is an example of a lazy data structure, one whose contents are computed only when they're actually examined. One nice thing you can do with a lazy data ...  
ListsBeginnerExample 10 Jan 2004 - 19:05 - r1.5 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. a lists.jar lists To run: java jar lists.jar 16 / void main(String args ...  
MethcallBeginnerExample 10 Jan 2004 - 19:04 - r1.6 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. a methcall.jar methcall To run: java jar methcall.jar 1000000 / void main ...  
MethcallIntermediateExample 24 Dec 2003 - 21:36 - r1.4 IsaacGouy
/ Please try the BeginnerExamples before the IntermediateExamples We've already created jar file toggle.jar containing the the java implementation of the Toggle class ...  
MethcallIntermediateTwoExample 30 Aug 2003 - 15:30 - r1.2 IsaacGouy
/ Please try the BeginnerExamples before the IntermediateExamples Put this code in directory methcall intermediatetwo Compile the Nice Toggle class: NiceToggleExample ...  
MomentsBeginnerExample 10 Jan 2004 - 19:10 - r1.5 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. a moments.jar moments To run: java jar moments.jar numbers new ArrayList ...  
NiceSwing 31 May 2003 - 01:32 - r1.3 TWikiGuest
On this page you will find the documentation of NiceSwing. I structured it a little like a FAQ not only because it made it somewhat easier for me to structure, but ...  
NiceToggleExample 24 Dec 2003 - 21:35 - r1.2 IsaacGouy
/ Please try the BeginnerExamples before the IntermediateExamples Put this code in a subdirectory: methcall intermediatetwo\toggles To compile: nicec toggles / package ...  
NumberFiveParametricTypeExample 28 Apr 2005 - 11:54 - r1.8 TWikiGuest
/ Please try the NoviceExamples before these examples To compile: nicec sourcepath .. a numberfive.jar numberfive / T numberFive(){ return 5; } void main(String args ...  
ObjinstBeginnerExample 10 Jan 2004 - 19:05 - r1.4 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. a objinst.jar objinst To run: java jar objinst.jar 1000000 / import methcall ...  
PacketBenchExample 02 Sep 2003 - 20:26 - NEW DuncanLissett
package bench; let Packet NoPacket new Packet(); let int DataSize 4; enum PacketKind { Device, Work } enum PacketId { Idle, Worker, HandlerA, HandlerB, DeviceA, DeviceB ...  
PowerSeriesCspExample 28 Apr 2005 - 11:56 - r1.8 TWikiGuest
This is an unusual use of the JCSP library. Normally the CSP processes are defined, created and then started. In this case, we spawn new processes as needed while ...  
ProducerConsumerBeginnerExample 10 Jan 2004 - 19:07 - r1.3 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples requires Nice 0.9.3 or above To compile: nicec sourcepath .. d . a prodcons.jar prodcons To run: java ...  
QuickIntroduction 27 Aug 2003 - 16:26 - r1.3 IsaacGouy
Here are some suggestion to start learning about Nice. The http://nice.sourceforge.net/language.html tutorial give a short introduction to the most used features of ...  
RandomBeginnerExample 10 Jan 2004 - 15:42 - r1.3 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. a random.jar random To run: java jar random.jar 900000 / import java.text ...  
RecursiveParametricTypeExample 28 Apr 2005 - 11:55 - r1.5 TWikiGuest
/ Please try the NoviceExamples before the ParametricTypeExamples To compile: nicec sourcepath .. a recursivetype.jar recursivetype To run: java jar recursivetype ...  
SchedulerBenchExample 02 Sep 2003 - 20:29 - NEW DuncanLissett
package bench; let int MaxTasks 6; class Scheduler { private Tcb table new Tcb MaxTasks .fill(int index NoTcb); private Tcb list NoTcb; private Tcb currentTcb NoTcb ...  
ScissorsPaperRockNoviceExample 28 Apr 2005 - 11:55 - r1.6 TWikiGuest
/ From the command line 1) create a directory scissors 2) cd into directory scissors 3) save this source code as main.nice in directory scissors 4) compile the source ...  
ShapesBeginnerExample 10 Jan 2004 - 15:43 - r1.4 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. a shapes.jar shapes / abstract class Shape { int x; int y; void moveTo ...  
ShapesIntermediateExample 24 Dec 2003 - 21:28 - r1.4 IsaacGouy
/ Please try the BeginnerExamples before the IntermediateExamples To compile: nicec sourcepath .. a shapes.jar shapes To run: java jar shapes.jar / // Let's assume ...  
SieveBeginnerExample 10 Jan 2004 - 15:44 - r1.3 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. a sieve.jar sieve To run: java jar sieve.jar 900 / void main(String args ...  
SimpleProducerConsumerCspExample 28 Apr 2005 - 11:55 - r1.9 TWikiGuest
/ Please try the NoviceExamples before these examples To compile: nicec classpath "jcspclasses.jar;nice-csp.jar" sourcepath .. a prodcons.jar prodcons To run: java ...  
SpellcheckBeginnerExample 10 Jan 2004 - 19:06 - r1.4 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. a spellcheck.jar spellcheck To run: java jar spellcheck.jar dictionary ...  
StrcatBeginnerExample 10 Jan 2004 - 19:06 - r1.4 IsaacGouy
/ Please try the NoviceExamples before the BeginnerExamples To compile: nicec sourcepath .. a strcat.jar strcat To run: java jar strcat.jar 40000 / void main(String ...  
SwingLibraryExample 30 Jan 2003 - 01:38 - NEW TWikiGuest
This example shows the way one can add and remove event listeners using the swing library. It uses new classes not present in cvs yet (See NiceGuiControlClasses for ...  
TaskBenchExample 03 Sep 2003 - 18:45 - r1.2 DanielBonniot
package bench; interface ISchedulerTask { Tcb run(Packet packet); } / The Idle task counts how often it is activated ending the simulation when the aCount limit is ...  
TcbBenchExample 02 Sep 2003 - 20:27 - NEW DuncanLissett
package bench; let Tcb NoTcb new Tcb(link: NoTcb, id: Idle, pri: 0, wkq: NoPacket); // Named bit masks to access 3 bit state value. let int RUNNABLE 1; let int SUSPENDED ...  
TreeVisitorIntermediateExample 24 Dec 2003 - 21:34 - r1.3 IsaacGouy
The original MultiJava code for this benchmark, and the Java comparison code, is available from this Technical Report: "MultiJava: Design, implementation, and evaluation ...  
VisitorPatternMultiMethodExample 04 Apr 2005 - 10:57 - r1.7 TWikiGuest
The first part of each example gives the existing datatypes and operations; the second part shows how we could add a datatype and how we could add an operation. There ...  
WebHome 29 Dec 2004 - 11:41 - r1.25 ArjanB
This is the place to document Nice. QuickIntroduction NiceTutorial KnownIssues CodeExamples NativeHowto NiceQuestions DesignPatterns LanguageComparisons NiceSwing ...  
WebStatistics 07 Aug 2005 - 10:51 - r1.515 TWikiGuest
Statistics for Doc Web Month: Topic views: Topic saves: File uploads: Most popular topic views: Top contributors for topic save and uploads: Aug 2005 814 0 0 96 QuickIntroduction ...  
WordfreqIntermediateExample 02 Sep 2003 - 01:49 - r1.4 IsaacGouy
/ Please try the BeginnerExamples before the IntermediateExamples To compile: nicec sourcepath .. a wordfreq.jar wordfreq To run: java jar wordfreq.jar wordCounts ...  

Number of topics: 52

Topic WebHome . { }
  Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.