2018年2月19日月曜日

rlang,gcc,mongodb,groovy, elixir and objective-c

https://qiita.com/stkdev/items/6aba2c1db2fa056170ae
--------------------------------------------------
http://ambiesoft.fam.cx/gcc/
-------------------------------
http://akiyoko.hatenablog.jp/entry/2014/08/01/220050
http://www.cuspy.org/diary/2012-04-17/  mongodbの薄い本
-------------------------------------------------

https://koji-k.github.io/groovy-tutorial/index.html

-------------------------------------------------------------

https://elixirschool.com/ja/ is good introducion site

------------------------------- at mac , see below --------- from libro tuyano

#import <Foundation/Foundation.h>

@interface MyTestClass : NSObject {
    NSString* message;
}

-(void)setMessage:(NSString*) str;
-(NSString*)message;
-(void)printMessage;

@end

@implementation MyTestClass

-(void)setMessage:(NSString*) str {
    message = str;
}

-(NSString*)message {
    return message;
}

-(void)printMessage {
    NSLog(@"%@",message);
}

@end

int main (int argc, const char * argv[]) {
    // NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
   
    MyTestClass* obj = [MyTestClass alloc];
    obj = [obj init];
    // obj = [obj autorelease];
    [obj setMessage:@"This is First Object!!"];
    [obj printMessage];
   
    // [pool drain];
    return 0;
}

-------------------   at linux, see below

http://krakenbeal.blogspot.jp/2009/07/ubuntu-objective-c-hello-world-2.html

2018年2月6日火曜日

CSCとFSCのメモ

(form1.cs)
using System;
using System.Drawing;
using System.Windows.Forms;

namespace MyFrmApp
{
    public class MyForm : Form
    {
        public MyForm()
        {
            Label label = new Label();
            label.Text = "Welcome to C#!";
            label.Font = new Font("Geneva",18,FontStyle.Regular);
            label.Height = 30;
            label.Width = 300;
            this.Controls.Add(label);
            this.Width = 300;
            this.Height = 200;
        }
    }
}
(main1.cs)
using System;
using System.Windows.Forms;
namespace MyFrmApp
{
    class Program
    {
        [STAThread]
        private static void Main(string[] args)
        {
            Application.Run(new MyForm());
        }
         
    }
}
-----------------------------------------------------------------------------
上記ファイルを同一フォルダにおき
csc /out:form1.exe *.cs で実行ファイルができる!
https://www.tuyano.com/index3?id=1254003&page=3 それに
https://docs.microsoft.com/ja-jp/dotnet/csharp/language-reference/compiler-options/command-line-building-with-csc-exe を参考にした
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
https://docs.microsoft.com/en-us/dotnet/fsharp/tutorials/asynchronous-and-concurrent-programming/async