glance rebol

Download Glance rebol

If you can't read please download the document

Upload: crazyaxe

Post on 19-Jun-2015

2.997 views

Category:

Technology


6 download

DESCRIPTION

Rebol, programming is fun again!

TRANSCRIPT

  • 1. R E B L Programming IsFunAgain

2. Who invented it? Carl Sassenrath,The REBOL Creator He worked for: And created Amiga: 3. Disadvantages On the rigid head, this language a bit awkward Totally different, and new. The core code is not open source Lack of good documentation Few users 4. Advantages 5. Do not need a bunch of files andconfiguration:just one file! 6. Rebol: 0,8 MB Super small size ... 7. Can do it 8. Simple and complex functions, audio and graphic ready to use 9. Dialogue Scripting Language DSL is currently the strongest language 10. Very suitable for development of disposable process 11. Orcreatequickly a prototype system 12. Across several major platforms 13. Incredible short code examples 14. View Layout [ Title "Hello" Btn "OK" [ Quit ] ] Windows programs areactually so short 15. print read http://www.rebol.com Download and print the contentsof a web page 16. view layout [ u: field "[email protected]"h: field "http://"btn "Send" [ send to-email u/textread to-url h/textalert "Sent" ] ] Open window, read the web page andsend it by email 17. foreach file load %./ [ if not dir? file [ write/binary joinftp://user:[email protected]/fileread/binary file ] ] Upload all files via FTP 18. repeat n 100 [ if not error? try [ close open probejoin tcp://localhost: n ] [ print [n "is open"] ] ]TCP port scan 19. page: remove-each tagload/markup http://www.rebol.com[ tag? Tag ]write %page.txt pageTransform a web page in asimple text file (without tags!) 20. view layout [ origin 0t: h1 red black (to string! now/time)rate 1feel [ engage: [ t/text: now/timeshow t ] ] ]Digital clock 21. view l: layout [ origin 0x0b: box "Load" [ error? try [b/image: i:load first request-fileb/text: ""l/size: b/size:i/size show l ] ] ]Picture viewer 22. REBOL change things simple!

  • Download, update, simple!

23. To install, simple! 24. Do not rely on a bunch of files, simple! 25. Write code, simple! 26. Ported to other platforms, simple! 27. Maintain, simple! Keep IT Simple 28. When It Comes to Programming, Are You A REBEL ? [`rebl] Stand up forSimplicityandFlexibility , AgainstSoftwareComplexityand SoftwareObesity , and Want to Program withFun . Hay! You Got to TryJava !!! 29. R E B O L E L A T I V E X P R E S S I O N A S E D B J E C T A N G U A G E S T A N D S F O R E 30. As A Java Programmer,You Know Objects Already. 31. But Relative Expression? 32. CAN , could be

  • Auxiliary / can

33. Noun / tank 34. Verb / canned Rebol understands the meaning from the context, for example: Relative-Expression=>Context-Sensitive Code 35. 3 Ways to Run REBOLScripts Encapsulated Encapsulated Operating System REBOL Interpreter REBOL Script REBOL Interpreter REBOL Script REBOL interactive Interpreter REBOL Script 36.

  • Windowing

37. Drawing 38. Networking 39. Database Accessing 40. Web Browser Plug-In 41. External Lib Interface Small Yet Powerful All In One, One For All REBOL 42. Rebol Has Every Data TypesYou Can Imagine... datatype value Int! 1 Decimal! 3.1416 Char! #"A" Logic! True String! "ABC" >> ? 1 1 is aninteger >> ? 3.1416 3.1416 is adecimal >> ? #"A" #"A" is achar >> ? True TRUE is alogicof value: true >> Type? "ABC" ==string! 43. ...And Data Types You Can'tImagine datatypeURL value Email! [email_address] Percent! 32% Tag! Date! 2009-7-21 Time! 18:00 File! %gdi32.dll Tuple! 127.0.0.1 URL! http://www.abc.com/ . . . More . . . 44. Java // Pseudo-Code // Include This and That // Declare This and That // ... Class MyApp { MyApp () { // } void action() { System.quit(); } void layout() { Label title = newLabel("Hello") Button btn = new Button("OK"); btn.Click = action; Window win = new Window(); win.add(btn); win.add(btn); win.show(); } } Vs Rebol do the same of Java with only 5 lines of codes instead of hundreds!!! REBOL REBOL[] View Layout [ Title "Hello" Btn "OK" [Quit ] ] The Magic Of Dialects 45. REBOL View is Easy and Fun! 46. REBOL in Web Server

  • CGI (Common Gateway Interface)
  • Fast-CGI
  • Cheyenne Web Server (300 KB Only)
  • REBOL Server Pages (RSP)

47. REBOL 3.0 Supports Unicode

  • String is in Unicode.
  • Both In Core and In View
  • Will Support Multi CharSets

48. REBOL/Services (SOA Lite) XML? Nah!Dialects are Better. 49. REBOL/Code

  • Talk to REBOL VM Directly
  • With Great Performance
  • REBOL Dialecting Technology

50. When to Use REBOL Spider Mobile Agent Instance Messenger Dialect Artificial Intelligence Text Processing 51.