This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Example | |
slot :slot1 # 出力先1の宣言(メンバメソッドをメタプログラム) | |
slot :slot2 # 出力先2の宣言(メンバメソッドをメタプログラム) | |
def func(input) | |
emit(:slot1, input.a) | |
emit(:slot2, input.b) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cpp/src/msgpack/object.hpp b/cpp/src/msgpack/object.hpp | |
index 96c026e..4d8f2f7 100644 | |
--- a/cpp/src/msgpack/object.hpp | |
+++ b/cpp/src/msgpack/object.hpp | |
@@ -26,6 +26,7 @@ | |
#include <typeinfo> | |
#include <limits> | |
#include <ostream> | |
+#include <tr1/type_traits> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example1.msgspec | |
namespace com.example | |
namespace cpp example | |
namespace ruby Example | |
message BasicTypeExample { | |
1: int8 f1 | |
2: int16 f2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started by user frsyuki | |
Checkout:workspace / /var/lib/jenkins/jobs/msgpack-java-jdk5/workspace - hudson.remoting.LocalChannel@320817d6 | |
Using strategy: Default | |
Last Built Revision: Revision 65ddd1a455eb975e6a88f87b4e89759e57289f10 (origin/master) | |
Checkout:workspace / /var/lib/jenkins/jobs/msgpack-java-jdk5/workspace - hudson.remoting.LocalChannel@320817d6 | |
Fetching changes from the remote Git repository | |
Fetching upstream changes from git://github.com/msgpack/msgpack.git | |
Commencing build of Revision 65ddd1a455eb975e6a88f87b4e89759e57289f10 (origin/master) | |
Checking out Revision 65ddd1a455eb975e6a88f87b4e89759e57289f10 (origin/master) | |
[workspace] $ /var/lib/jenkins/tools/Maven_3.0.3/bin/mvn -f java/pom.xml test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.server; | |
import java.util.Map; | |
import java.util.HashMap; | |
import java.io.IOException; | |
import org.msgpack.MessageTypeException; | |
import org.msgpack.rpc.dispatcher.Dispatcher; | |
import org.msgpack.rpc.Request; | |
public class MyApp implements Dispatcher { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map å <M-a> | |
map ∫ <M-b> | |
map ç <M-c> | |
map ∂ <M-d> | |
map ´ <M-e> | |
map ƒ <M-f> | |
map © <M-g> | |
map ˙ <M-h> | |
map ˆ <M-i> | |
map ∆ <M-j> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone [email protected]:msgpack/msgpack.git | |
cd msgpack/cpp/src | |
NG: | |
llvm-gcc -DHAVE_CONFIG_H -I. -I.. -O3 -Wall -Wno-unused-function -I/Users/frsyuki/arch/darwin-i386/gtest-1.5/include -O3 -g -MT unpack.lo -MD -MP -MF .deps/unpack.Tpo -c unpack.c -fno-common -DPIC -o .libs/unpack.o | |
llvm-gcc -DHAVE_CONFIG_H -I. -I.. -O4 -Wall -Wno-unused-function -I/Users/frsyuki/arch/darwin-i386/gtest-1.5/include -O3 -Wno-unused-function -g -MT unpack.lo -MD -MP -MF .deps/unpack.Tpo -c unpack.c -fno-common -DPIC -o .libs/unpack.o | |
llvm-gcc -DHAVE_CONFIG_H -I. -I.. -O4 -Wall -Wno-unused-function -I/Users/frsyuki/arch/darwin-i386/gtest-1.5/include -O3 -Wno-unused-function -g -MT unpack.lo -MD -MP -MF .deps/unpack.Tpo -c unpack.c -fno-common -DPIC -o .libs/unpack.o | |
unpack.c:463: internal compiler error: Segmentation fault | |
Please submit a full bug report, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'java' | |
require 'msgpack-0.6.0-devel.jar' | |
## | |
# Serialize | |
# | |
gzout = java.io.ByteArrayOutputStream.new | |
out = java.util.zip.GZIPOutputStream.new(gzout) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.InputStream; | |
public class X { | |
public static void main(String[] args) { | |
new X().write(null); | |
// ^ | |
// X.java:5: reference to write is ambiguous, both method write(java.lang.String) in X and method write(java.io.InputStream) in X match | |
} | |
public void write(Object o) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Method; | |
public class GenericsOverload { | |
public static void main(String[] args) throws Exception { | |
GenericsOverload go = new GenericsOverload(); | |
go.read(String.class); //=> Class<String> | |
go.read(Long.class); //=> Class<Long> | |
go.read(Integer.class); //=> Class<T> T=class java.lang.Integer | |
go.read(byte[].class); //=> Class<T> T=class [B |