Commit Graph

278 Commits

Author SHA1 Message Date
Konrad Grochowski
a8eec715d8 THRIFT-2691 - C++ tutorial: printfs removed, generated operator<< used 2014-09-08 23:13:08 +02:00
John Chee
aa42d61d7a THRIFT-2677 haskell library and tutorial: build with network > 2.5 2014-09-01 21:55:04 +02:00
Noam Zilberstein
af5d64adb7 THRIFT-2641 Improvements to Haskell Compiler/Libraries
- test/test.sh integration
- add json and compact protocol

This closes #175

Signed-off-by: Roger Meier <roger@apache.org>
2014-08-10 21:11:43 +02:00
Roger Meier
2814c2e726 THRIFT-976 c_glib tutorial
Patch: Simon South
Signed-off-by: Roger Meier <roger@apache.org>
2014-07-29 23:28:46 +02:00
Roger Meier
87a0477a08 go: clean tutorial properly 2014-07-28 08:18:20 +02:00
henrique
c0a7d72c83 THRIFT-2638 travis: build with Haskell
Patch: John Chee
2014-07-26 13:11:12 +02:00
jfarrell
4c8506e30d Thrift-2602:Fix missing dist files
Client: build process
Patch: jfarrell

Introduced a bug in 8fd8c63 adding gen files to the dist, removing those
files from the EXTRA_DIST.
2014-07-10 14:17:49 -04:00
jfarrell
8fd8c6366d THRIFT-2602:Fix missing dist files
Client: build process
Patch: jfarrell

Add all missing files to the dist package.
2014-07-10 09:14:51 -04:00
Henrique Mendonça
d5acf051b5 format tutorial Java README.md 2014-06-24 16:06:32 +02:00
Roger Meier
303eb1b4f0 THRIFT-2401 Haskell tutorial compiles
Patch: John Chee & Roger Meier

includes minifix from:
THRIFT-2453 haskell tutorial: fix up division by 0 example
2014-05-14 00:49:41 +02:00
Roger Meier
a6415bc985 THRIFT-2325: SSL test certificates
CN for servername was ssltest instead of localhost
+ little update of README.md

Patch: Roger Meier
2014-04-07 23:45:19 +02:00
Roger Meier
443ced0e3a js tutorial add missing semicolon 2014-03-26 23:23:37 +01:00
Roger Meier
16fcad0b25 THRIFT-2407 use markdown (rename README => README.md)
Patch: Roger Meier
2014-03-19 06:47:47 +01:00
jfarrell
1f78987c49 THRIFT-2392: Actionscript tutorial
Client: tutorial
Patch: dima levchenko

Adds an AS3 tutorial
2014-03-11 22:21:07 -04:00
henrique
312362314c THRIFT-2376 nodejs: allow Promise style calls for client and server
patch:  Pierre Lamot
2014-02-25 22:11:10 +01:00
Roger Meier
9f4f5157a3 THRIFT-2367 Build failure: stdlib and boost both define uint64_t
Fix: remove "using namespace boost;"
Patch: Roger Meier
2014-02-19 16:28:35 +01:00
Jens Geyer
56d41eb4a7 THRIFT-2349: Golang - improve tutorial
Patch: Chris Bannister
2014-02-05 21:10:59 +01:00
Jens Geyer
38b1a04b60 THRIFT-2343 Fix tutotial code and codegen for methods without exceptions
Patch: Jens Geyer
2014-02-04 23:56:39 +01:00
Roger Meier
64998e2ac4 THRIFT-2334 nodejs: add a tutorial for node JS
Patch: Pierre Lamot
2014-01-27 21:15:56 +01:00
Roger Meier
5f2d34e5ab THRIFT-2229 thrift failed to build on OSX 10.9 GM 2013-11-16 16:43:41 +01:00
Roger Meier
ea4600b6b8 adopt new thrift.js location within tutorial.html
changed by THRIFT-2190

Patch: Roger Meier
2013-09-21 08:47:21 +02:00
Jens Geyer
c949514e41 THRIFT-2170 Generated Go code should populate all ReadErrors completely
Patch: Jens Geyer
2013-09-08 00:31:59 +02:00
jfarrell
102c600bbb Thrift-2124: .o, .so, .la, .deps, .libs, gen-* files left tutorials, test and lib/cpp when making DIST
Client: build
Patch: jfarrell

Fixing all the missing files and dist build issues that have been ignored.
2013-08-15 21:20:19 -04:00
Jens Geyer
1bb0ed88f2 THRIFT-2118 Certificate error handling still incorrect
Patch: Jens Geyer
2013-08-14 21:33:51 +02:00
Jens Geyer
4c835951be THRIFT-2109 Secure connections should be supported in Go
Patch: Justin Judd
2013-08-13 21:34:17 +02:00
Jens Geyer
44b19df535 THRIFT-2083 Improve the go lib: Testcase for buffered Transport
Patch: Feng Shen
2013-07-26 23:05:00 +02:00
Jens Geyer
a7da48805c THRIFT-2090: Go generator, fix including of other thrift files
Patch: Emir Habul
2013-07-18 00:33:05 +02:00
Jens Geyer
102bca47f7 THRIFT-2032 C# client leaks sockets/handles
Patch: Jens Geyer
2013-06-25 22:21:29 +02:00
Jens Geyer
470cae3340 THRIFT-2012: Modernize Go tooling - Fix for "make dist"
Patch: Jens Geyer
2013-06-19 23:30:50 +02:00
Jens Geyer
0e87c46c18 THRIFT-2012 Modernizing Go
Patch: Travis Cline
2013-06-18 22:25:07 +02:00
Roger Meier
ed817d0102 THRIFT-1735 integrate tutorial into regular build
THRIFT-1811 ruby tutorial as part of the regular build
2013-06-09 23:10:06 +02:00
Roger Meier
9a3a5642b8 THRIFT-1906 ocaml: add tutorial example to parallel that for other languages
Patch: Chet Murthy
2013-04-27 23:09:40 +02:00
Roger Meier
565517a16c subversion, thanks and good bye
;-r
2013-03-22 21:08:39 +01:00
Chris Piro
20c81ad74c THRIFT-1704: Tornado support (Python) 2013-03-07 11:32:48 -05:00
Roger Meier
c095919087 THRIFT-1829 cpp unit tests fail to build using multiple make jobs
Patch: David Rennalls and Roger Meier
2013-01-15 23:20:19 +01:00
Roger Meier
c9ce87fb02 THRIFT-1735 remove generated files with make clean
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1404820 13f79535-47bb-0310-9956-ffa450edef68
2012-11-01 23:02:07 +00:00
Roger Meier
f4cd5ba434 THRIFT-1735 remove generated files with make clean
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1404816 13f79535-47bb-0310-9956-ffa450edef68
2012-11-01 22:59:09 +00:00
Roger Meier
1d66d061b7 THRIFT-1735 integrate tutorial into regular build
python and python twisted


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1402680 13f79535-47bb-0310-9956-ffa450edef68
2012-10-26 21:46:18 +00:00
Roger Meier
f168e0ad46 THRIFT-1735 do nothing when building with MINGW
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1401897 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 21:38:21 +00:00
Roger Meier
585b7b8044 remove unused variable
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1401884 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 21:12:47 +00:00
Roger Meier
18a90d1625 THRIFT-1735 integrate tutorial into regular build
- cpp support
- cleanup stuff


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1401818 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 18:40:06 +00:00
Roger Meier
fa89932a49 THRIFT-1735 integrate tutorial into regular build
Patch: Roger Meier


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1401032 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 19:27:38 +00:00
Roger Meier
ca0d2f995e ignores
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1394985 13f79535-47bb-0310-9956-ffa450edef68
2012-10-06 10:35:29 +00:00
Roger Meier
21c0a85079 THRIFT-1615 PHP Namespace (was Thrift for Symfony 2)
Patch: Xavier HAUSHERR


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1381323 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 19:47:14 +00:00
Christopher Piro
860b8c9cfb fix tutorial python server
the port in TServerSocket's constructor should be passed by keyword; the first positional param is actually the hostname

Reviewed By: dreiss

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1333163 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 19:33:47 +00:00
Roger Meier
b70e04cab0 THRIFT-1586 Two small D issues
Patch: David Nadlinger

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1331810 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 19:20:23 +00:00
Roger Meier
49ff8b123a THRIFT-1552 Include paths for c/c++ should be prefixed with 'thrift/'
To ensure there are no include path collisions the C and C++ header
include paths should include 'thrift' as the root leaf. This will
prevent having to place /usr/include/thrift into the compilers include
header search path, which might otherwise result in the compiler
accidentally picking up headers that it shouldn't.

e.g. #include <foo/bar.h> should be #include <thrift/foo/bar.h>

Change-Id: I48f2b0f549bda0fc81e85506ac857adc800b98a1

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325674 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 09:12:31 +00:00
Roger Meier
5c85461995 THRIFT-1555 Delphi version of the tutorial code
Patch: Jens Geyer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1311313 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 16:31:42 +00:00
Jake Farrell
b95b0ffa72 THRIFT-1500: d programming language support
Client: D
Patch: David Nadlinger

D program language library and additions



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1304085 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 21:49:10 +00:00
Jake Farrell
2a266cb595 Thrift-1428: shared.thrft does not include namespace for php, so thrift compiler generate incorrect name
Client: test
Patch: Ruslan Shevchenko

shared.thrft does not include namespace for php, so thrift compiler generate incorrect name



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1202653 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 12:12:37 +00:00
Anthony F. Molinaro
a653067e8c THRIFT-1227 - erlang implementation of thrift json protocol
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1172199 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 04:57:50 +00:00
Jake Farrell
47f5ab3f06 Thrift-1303: Twisted tutorial client does not include correct generated path
Client: tutorial

Updated path in python client to include correct generated code.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162866 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 15:27:41 +00:00
Jake Farrell
9623fc5476 updating java tutorial readme
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1150692 13f79535-47bb-0310-9956-ffa450edef68
2011-07-25 13:22:14 +00:00
Roger Meier
5fc6973bdf THRIFT-1133 Java and JavaScript tutorial is broken since we have Java maven deployment
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1090454 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 21:28:50 +00:00
Roger Meier
3f067a86eb THRIFT-1084 Typo fixes
Patch: Bruce Mitchener


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1077939 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 13:35:05 +00:00
Christian Lavoie
afc6d8f650 THRIFT-625: Add support for 'Go'; provided by Aalok Shah.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1072478 13f79535-47bb-0310-9956-ffa450edef68
2011-02-20 02:39:19 +00:00
Anthony F. Molinaro
f8bf0d69c5 add a little README
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1071150 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 06:00:10 +00:00
Anthony F. Molinaro
10a8743f6a Fix the erlang tutorial
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1071148 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 05:54:17 +00:00
Roger Meier
cd9bc46ebd THRIFT-1024 Add Python Twisted example to the Tutorial
Patch: Michael



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1054733 13f79535-47bb-0310-9956-ffa450edef68
2011-01-03 20:19:07 +00:00
Roger Meier
5aaa02166e change URL's to TLP
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1030901 13f79535-47bb-0310-9956-ffa450edef68
2010-11-04 12:20:05 +00:00
Roger Meier
e5e50dec48 THRIFT-893 JavaScript Tutorial: dynamic part
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1030018 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 12:36:52 +00:00
Roger Meier
b942d57a79 THRIFT-969 Java Tutorial broken, move CalculatorHandler to a separate file
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1028079 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 19:39:56 +00:00
Bryan Duxbury
1b13083def THRIFT-106. java: TSSLServerSocket
This patch adds support for SSL-encrypted client and server sockets.

Patch: Nirmal Ranganathan

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1024328 13f79535-47bb-0310-9956-ffa450edef68
2010-10-19 17:20:57 +00:00
Roger Meier
f04cfca797 THRIFT-893 add JavaScript to the tutorial example (html only)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1023077 13f79535-47bb-0310-9956-ffa450edef68
2010-10-15 19:24:32 +00:00
Todd Lipcon
4abfb288ab THRIFT-890. java: Add README missing from previous commit
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001970 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 00:01:31 +00:00
Todd Lipcon
515c2381b7 THRIFT-890. java: Fix tutorial to build and run in trunk
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001856 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 18:26:07 +00:00
Bryan Duxbury
833ae49290 THRIFT-920. cpp: C++ Test and Tutorial does not compile anymore due to the change within Enum handling
Patch: Roger Meier and Christian Lavoie

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001826 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 17:26:02 +00:00
Bryan Duxbury
96b2ccc0d4 THRIFT-881. csharp: add csharp to the tutorial
This patch adds a tutorial for CSharp. It also moves the 'test' client and server into the tutorial, because they were not being used by the tests.

Patch: Roger Meier

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1000953 13f79535-47bb-0310-9956-ffa450edef68
2010-09-24 16:47:59 +00:00
David Reiss
3f660a4266 erlang: Client refactor, part 1
- Client is no longer a separate process.
- Simplified constructors moved into another module.
- All functions and exceptions return the new client,
  to allow for future statefulness in the client.

NOTE: With the new library and old gen-code, attempting to call a
nonexistent function will result in an exit.

TODO: fix docs and tests (tether test is not meaningful)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990979 13f79535-47bb-0310-9956-ffa450edef68
2010-08-30 22:05:29 +00:00
David Reiss
f32d0fb900 Rollback a few recent Erlang changes to fix blame data
My combined patch for THRIFT-599 was committed, but it is preferable
commit the individual patches to preserve the more detailed log and
blame data.  I'll recommit r987018 as a sequence of patches and r988722
as its own rev.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990957 13f79535-47bb-0310-9956-ffa450edef68
2010-08-30 22:05:00 +00:00
Bryan Duxbury
d3879f80c6 THRIFT-599. erl: Don't use unnecessary processes in the Erlang transports and clients
The only user-visible changes are to the client. Every thrift call now returns {NewClient, Result} instead of just Result.

Patch: David Reiss (assist to Anthony Molinaro)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987018 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 05:06:02 +00:00
Bryan Duxbury
23f2348fae add ASL to a handful of files
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980145 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 18:23:22 +00:00
David Reiss
68f8c389bd THRIFT-560. haskell: Add tutorial
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@898015 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 19:13:18 +00:00
David Reiss
7834ccbdac THRIFT-592. php: Make the tutorial work properly after r815878
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@888929 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 19:29:48 +00:00
T Jake Luciani
0c5c234b58 THRIFT-619: Perl server and example
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@835206 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 03:01:33 +00:00
Bryan Duxbury
b7b8af9e61 THRIFT-486. rb: ruby tutorial needs updated require statements
Fixed. 



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771969 13f79535-47bb-0310-9956-ffa450edef68
2009-05-05 18:59:49 +00:00
Bryan Duxbury
def30a6072 THRIFT-387. Add appropriate Apache header to all code files
This hits all the documentation and some misc code files that have avoided the license up to this point.



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763048 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 00:19:37 +00:00
Bryan Duxbury
07f38ff531 THRIFT-430. rb: ruby tutorials and ruby tests require deprecated files and class names
This patch cleans all this up.



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762618 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 04:37:28 +00:00
David Reiss
ea2cba8ba8 THRIFT-387. Add license headers to a bunch of files
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760189 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 21:35:00 +00:00
David Reiss
f33c7c670b cpp: Eliminate a buffer overflow in the tutorial server
Negative numbers can have 11 characters :)


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758529 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 06:15:26 +00:00
David Reiss
755c8156e8 THRIFT-405. php: Create a tutorial server
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758528 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 06:15:05 +00:00
David Reiss
4438ca5759 Fix the arguments in tutorial/README
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758525 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 06:14:17 +00:00
David Reiss
d1c8682558 Update tutorial/README now that Thrift files don't support shebang
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758453 13f79535-47bb-0310-9956-ffa450edef68
2009-03-25 22:15:18 +00:00
David Reiss
cecbed81c8 THRIFT-136. s/async/oneway/ in the Thrift IDL
This is the real change.  The lexer now recognizes "oneway"
and warns on "async".  All example and test IDLs have been
updated, as have the syntax files.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757994 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 20:02:22 +00:00
David Reiss
c51986f438 THRIFT-136. s/async/oneway/ in comments
This is an internal-only change.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757990 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 20:01:25 +00:00
David Reiss
e0a11c44ab Make .thrift files non-executable since we removed the shebangs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@753610 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 07:37:28 +00:00
David Reiss
b139f64448 THRIFT-325. Remove a bunch of uses of the old command line format
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745242 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 20:28:46 +00:00
David Reiss
554ea6f936 Make the PHP generator use non-hardcoded namespaces.
- Make the PHP generator use program->get_namespace("php")
  instead of program->get_php_namespace()
- Eliminate the explicit "php_namespace" in t_program.
- Deprecate the php_namespace token.
- Update example .thrift files and syntax files.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745241 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 20:28:37 +00:00
Bryan Duxbury
7003f876ed THRIFT-299. doc: binary type isn't documented nor demonstrated in the tutorial
The existence of the "binary" type is now documented in the relevant places. 

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739702 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 06:21:13 +00:00
T Jake Luciani
b5e6221eb5 THRIFT-270: change cpp namespaces from facebook::thrift to apache::thrift
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739644 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 22:36:20 +00:00
David Reiss
8bb593e69a THRIFT-284. python: Update tutorial files to use repr
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@737424 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 19:37:41 +00:00
Bryan Duxbury
afa80ea73d THRIFT-34 Java libraries should be namespaced under org.apache.thrift, not com.facebook.thrift
Library classes and tests have been moved to the proper package and directory structure, and references to com.facebook.thrift where replaced with org.apache.thrift throughout the code. The fb303 contrib project still contains com.facebook packages.



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@734855 13f79535-47bb-0310-9956-ffa450edef68
2009-01-15 23:47:51 +00:00
T Jake Luciani
41687fc6cf THRIFT-193: Patch for proper namespace support in perl compiler
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@728863 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 03:45:43 +00:00
David Reiss
5ff21a4df6 THRIFT-85. Include an example of an optional field in tutorial.thrift
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@679501 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 19:13:54 +00:00
Kevin Clark
21411530da Update the tutorial files to stop using deprecated names
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668935 13f79535-47bb-0310-9956-ffa450edef68
2008-06-18 01:03:33 +00:00
Kevin Clark
7618fb42fb Fix the shebangs for the tutorial thrift files
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668932 13f79535-47bb-0310-9956-ffa450edef68
2008-06-18 01:02:46 +00:00
Kevin Clark
2b1e10b21f Ensure the ruby tutorial uses the current library instead of the installed one
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668925 13f79535-47bb-0310-9956-ffa450edef68
2008-06-18 01:00:50 +00:00
Kevin Clark
2960044415 rb: Add more classes/modules to the Thrift namespace. Provide backwards compatable mappings.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668904 13f79535-47bb-0310-9956-ffa450edef68
2008-06-18 00:54:13 +00:00
David Reiss
9f2a5d7799 Rename "alterl" to "erl".
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666481 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 01:15:45 +00:00
David Reiss
f2e66c1cb7 Remove all of the old Erlang stuff in preparation for renaming alterl.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666480 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 01:14:38 +00:00
David Reiss
086c279722 Oops - dont' use server.config anymore for alterl tutorial
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666459 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 01:03:22 +00:00
David Reiss
8a162a5a01 New tutorial for alterl bindings - include working client + server
Test plan:

  ./client.sh
  server:start().
  client:t().


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666458 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 01:03:16 +00:00
David Reiss
07ef3a930a Make the Perl generator use non-hardcoded namespaces.
- Make the Perl generator use program->get_namespace("perl")
  instead of program->get_perl_package()
- Eliminate the explicit "perl_package" in t_program.
- Deprecate the perl_package token.
- Update example .thrift files and syntax files.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665624 13f79535-47bb-0310-9956-ffa450edef68
2008-03-27 21:42:39 +00:00
David Reiss
3b45501b52 Make the Smalltalk generator use non-hardcoded namespaces.
- Make the Smalltalk generator use program->get_namespace("smalltalk.*")
  instead of program->get_smalltalk_{category|prefix}()
- Eliminate the explicit "smalltalk_{category|prefix}" in t_program.
- Deprecate the smalltalk_{category|prefix} tokens.
- Update example .thrift files and syntax files.

This was a little more complex than the others.  We now convert "." to "-"
in Smalltalk categories, because we no longer lex them as tok_st_identifier.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665601 13f79535-47bb-0310-9956-ffa450edef68
2008-03-27 21:40:46 +00:00
David Reiss
771f8c797b Make the Java generator use non-hardcoded namespaces.
- Make the Java generator use program->get_namespace("java")
  instead of program->get_java_namespace()
- Eliminate the explicit "java_namespace" in t_program.
- Deprecate the java_namespace token.
- Update example .thrift files and syntax files.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665514 13f79535-47bb-0310-9956-ffa450edef68
2008-02-27 01:55:25 +00:00
David Reiss
9a08dc6184 Make the C++ generator use non-hardcoded namespaces.
- Make the C++ generator use program->get_namespace("cpp")
  instead of program->get_cpp_namespace()
- Eliminate the explicit "cpp_namespace" in t_program.
- Deprecate the cpp_namespace token.
- Update example .thrift files and syntax files.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665513 13f79535-47bb-0310-9956-ffa450edef68
2008-02-27 01:55:17 +00:00
David Reiss
2ca456a8ae Make "make clean" rules a bit more standard.
Summary:
make-generic is some sort of internal undocumented thing.
make-local is what is supposed to be used for this stuff.
Also use $(RM) instead of "rm -f".

Reviewed By: marc

Test Plan: make clean


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665498 13f79535-47bb-0310-9956-ffa450edef68
2008-02-24 16:42:18 +00:00
David Reiss
0c90f6f8af Thrift: Whitespace cleanup.
Summary:
- Expanded tabs to spaces where spaces were the norm.
- Deleted almost all trailing whitespace.
- Added newlines to the ends of a few files.
- Ran dos2unix on one file or two.

Reviewed By: mcslee

Test Plan: git diff -b

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665467 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 22:18:40 +00:00
Christopher Piro
3f1d8c7cf6 [thrift] flesh out thrift Erlang tutorial client
Summary: Added examples for all examples except inheritance and application exception handling (divide by zero); looks like both are currently broken.  Weak.

Reviewed By: eletuchy

Test Plan: works just like RubyClient.rb (modulo the commented out bits)

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665428 13f79535-47bb-0310-9956-ffa450edef68
2008-01-15 12:52:51 +00:00
Christopher Piro
8ba81573b3 [thrift] preliminary tthrift tutorial client for Erlang
Summary: we haven't had a client tutorial for the longest time -- added one that basically works.  will iron the bugs out in due order.

Reviewed By: eletuchy

Test Plan: works when launched like server.sh

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665427 13f79535-47bb-0310-9956-ffa450edef68
2008-01-15 12:04:15 +00:00
Christopher Piro
5165f3e65e [thrift] add a configuration file to the Erlang server tutorial
Summary: Logger configuration (and all Thrift config in Erlang) now uses application:get_env/2 via thrift:config/2.  Defaults can be provided on the erl command line with ``-config <filename>''.  It may also be helpful to cascade config files; {key, value} pairs provided in subsequent files will override previous ones -- e.g. in our applications we use ``-config base.config -config cpiro.config''.

server.config was added as an example and server.sh was updated to invoke erl with ``-config server.config''.

Reviewed By: eletuchy

Test Plan: the tutorial server now outputs a reasonable set of messages

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665426 13f79535-47bb-0310-9956-ffa450edef68
2008-01-15 12:04:12 +00:00
Christopher Piro
8ca66b8805 [thrift] update thrift_logger bits in Erlang server tutorial
Summary: thrift_logger changed a while back but the tutorial didn't keep up.  fixed.

Reviewed By: eletuchy

Test Plan: compiles now :p

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665425 13f79535-47bb-0310-9956-ffa450edef68
2008-01-15 12:04:09 +00:00
Mark Slee
8ec70e88e6 Remove bogus Iface inclusion from Ruby tutorial
Reviewed By: mcslee

Test Plan: The Ruby tutorial is runnable with this fix

Other Notes: Submitted by Eric Wong


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665413 13f79535-47bb-0310-9956-ffa450edef68
2008-01-07 21:50:30 +00:00
Mark Slee
bd5882259d Merging in some Smalltalk changes from Patrick Collison
Reviewed By: mcslee

Test Plan: Rebuild Thrift compiler


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665361 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 08:43:35 +00:00
pkeyani
b92e316476 made tutorial.thrift executable
Summary: made tutorial.thrift executable

Trac Bug: #

Blame Rev:

Reviewed By: mcslee

Test Plan: tested locally

Revert Plan: revertable

Notes:

EImportant:


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665298 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 05:22:31 +00:00
Mark Slee
8266443d92 OO perl accessors for Thrift objects
Summary: Submitted by Jake Luciani

Reviewed By: cpiro

Test Plan: Supplied in test/tutorial code


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665276 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 06:49:30 +00:00
Christopher Piro
93a0664aff [thrift] spruce up Erlang binding for tonight's release
Summary:
 * got rid of most of the otp_base jonx ... save that for a future release unfortunately
 * cleaned up the tutorial server, added -erl to tutorial.thrift's shebang
 * made better README and TODO

Test Plan: checked out a copy, read my directions, built and ran the tutorial, and pretended that it didn't blow


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665273 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 06:23:33 +00:00
Mark Slee
27ed6ec1f9 Merging Jake Luciani's latest perl code gen fixes
Reviewed By: dreiss

Test Plan: Watch for any weirdness on Thrift code gen, perl specific


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665206 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 01:26:31 +00:00
Christopher Piro
5b3a8f7a8b [thrift] improved error logging and handling for Erlang bindings
Summary:
 * custom, extensible error logger -- show only relevant stuff
 * clean up of errors in developer-supplied handler module
   now gives sane error messages and doesn't crash whole server
   (introduces tApplicationException_HANDLER_ERROR)
 * more precise catch in tErlProcessor (exits gracefully only if
   transport closes)

Reviewed By: iproctor

Test Plan: tutorial works

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665186 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 22:27:37 +00:00
Christopher Piro
5f5fdf3a20 [thrift] maps, lists, sets, and service inheritance for Erlang
Reviewed by: cpiro

Test Plan: tested wit tutorial/tutorial.thrift

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665175 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 22:41:00 +00:00
Christopher Piro
094823a46c [thrift] highly concurrent Erlang goodness
Summary:
 * shim to use object-oriented code as gen_servers
 * high(er) performance Erlang-style server and transport
 * sane packaging based on otp-base, i.e. Makefiles and real structure

Test Plan: tutorial server offers the same (subset of) functionality as previous version

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665164 13f79535-47bb-0310-9956-ffa450edef68
2007-07-18 00:26:12 +00:00
Christopher Piro
2f5afceeaa [thrift] preliminary Erlang support (initial import)
Summary:
 * missing {list,map,set}s, inheritance is spotty
 * loose source code, plus everything is one process (application / gen_server behavior is forthcoming)
 * codegen is a mess, need t_fp_generator

Test Plan:
 * codegen invoked without -erl generates identical code for test/
 * calculatorHandler plus 'thrift -erl -r tutorial.thrift' more or less works

Revert Plan: ok


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665146 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 07:17:33 +00:00
Christopher Piro
d795b9d3fd typo in tutorial/rb/RubyServer.rb
Reviewed By: mcslee

Test Plan:

Revert Plan:


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665145 13f79535-47bb-0310-9956-ffa450edef68
2007-06-28 01:09:22 +00:00
Mark Slee
738ad31baf Perl tutorial code
Summary: Jake Luciani

Reviewed By: mcslee


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665116 13f79535-47bb-0310-9956-ffa450edef68
2007-05-16 02:40:12 +00:00
Mark Slee
0f2916c3f6 sprintf fix on C++ tutorial server
Reviewed By: danli

Test Plan: hello


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665097 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 09:16:23 +00:00
Mark Slee
cb39f08ced Forgot to add Java tutorials to thrift
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665090 13f79535-47bb-0310-9956-ffa450edef68
2007-04-10 02:30:30 +00:00
Mark Slee
7679196f1c Various Thrift fixes, including Application Exception support in Ruby, better errror messages across languages, etc.
Reviewed By: thrift


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665058 13f79535-47bb-0310-9956-ffa450edef68
2007-03-14 02:47:35 +00:00
Mark Slee
07a3aab207 Thrift Tutorial
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665051 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 05:45:10 +00:00