IT業界でベンチャービジネスの支援をしている執筆者が日々の活動ログと感じたことを、徒然なるままに書き綴っていきます。 私が編集支援している、テコラスの遠藤さまのコラムがプライム・ストラテジーで公開されました。 Private: KUSANAGI環境でCGI(perl)を動かすφ(◎。◎‐) 興味がある方はご覧ください。 ### 目次 ・CGI(perl)を動かしたい ・色々入れる ・spawn-fcgiの調整 ・nginxの調整 ・関連プロセスの再読込みと再起動時に自動実行するよう調整 4回目の投稿となります。 NHNテコラスの遠藤と申します。よろしくお願いいたします┏○ 2,4,6月とこちらで過去3回コラムを書かせていただいてるものの、実はプライムストラテジー様の方々とお会いしたことが無かったのですが、先日(2017/7/27)当社からリリースした開発者向けのクラウドサービス「Cloud
Perlモジュール徹底解説 - Perl入門ゼミPerlモジュール徹底解説では、Perlのモジュールについて詳しく解説していますが、最近は時間が取れずに、解説を書きたいモジュールがあっても、詳しい解説が書けないことが多くなっています。 そこで、モジュール紹介という形で、簡単に紹介して、リンクを張りたいと思います。「リンクに掲載してほしい」というモジュールがあれば、コメント欄にモジュール名と一行解説をどうぞ。自推、他推問いません。すべて紹介します。 FFI - Perlから共有ライブラリ(.so, .dll)を直接呼び出す FFI::Raw シンプルなFFIモジュール cpan FFI::Platypus 機能豊富なFFIモジュール cpan 日付・時刻 Time::Moment 日付・時刻の高速な処理 cpan 人工知能 AI::MXNet MXNet機械学習ライブラリのPerlインターフ
1ヶ月後に迫った吉祥寺.pm #12。今回は沖縄.pmとのコラボ企画みたいですよ。まだ席はあるみたい。コラボpmはなかなか見れないぞ。来年は沖縄で開催されるYAPCが楽しみね。 吉祥寺.pm #12 10月20日(金) 気がつけば12回目、なんと3周年!! そしてゲストはfrom Okinawa.pm!! 今回はOkinawa.pmからCodeHex氏が参戦する、コラボpmです 吉祥寺.pm #12 吉祥寺.pm #12 懇親会(合わせてこちらも忘れずに) 吉祥寺.pmは金曜日の19:30からなので、仕事帰りにちょこっと寄りたいという方にもぴったり。Perl以外の話題も普通にあるので「ちょっこだけしかPerl知らんよ」という方も安心です。 Perl Mongerが不動産屋さんで学んだこと 僕は、社内エンジニアなので、純粋な技術以外のことも、けっこうやっている。 メインはPerlのシステム開
前回の「MXNet の基礎を Perl で学んでみた part 1」では NDArray api, Symbol api を組み合わせて計算を試した。今回は、前回使用した api も使ってデータセットをどう準備するか、ニューラルネットをどのように組み立ていくかのチュートリアルを行う。 以下のサイトを参考にしながら進めた。 medium.com データセットの定義 これから扱うデータセットは想定としてサンプル数が 1000 個あるとする。 各サンプルは 100 の特徴を持っている その特徴は float で 0 ~ 1 の範囲で表現される サンプルは 10 個のカテゴリで分けられる。与えられたサンプルを 10 個のカテゴリの中からどれか予測する サンプル数が 1000 個あるうちの 800 個を学習に用いて、残りの 200 個を検証用に利用する 学習と検証に使うバッチサイズは 10 とする
これPerlerの皆さまからすれば「何を今更」な話かもしれませんが、個人的に驚いたので書きます。 Perlには範囲演算子というのがあって、他の言語でも度々採用されてる便利な演算子なんですが、 例えば my @nums = (1..5); とすることで 1 から 5 までの連番を含む配列を定義できます。 単純な文字列なら、 my @strings = ("aa".."ae"); print "@strings\n"; #==> aa ab ac ad ae とかもできますね。 さて、この2例目の("aa".."ae")みたいな文字列の範囲を配列にするにあたって、 # これは期待通り my @arr1 = ("A".."Z"); #==> A B C D E F G H I J K L M N O P Q R S T U V W X Y Z # これも期待通り my @arr2 = ("a".
最近 MXNet の論文を読んだり、MXNet はこれから使われるのかどうかについて調査していた。 結構将来ありそうな感じがした。 MXNet についてのレポートです pic.twitter.com/n6gjOcxNIQ— K (@CodeHex) 2017年9月5日 そこで、何かしら基本になりそうなチュートリアルはないかと漁っていたら以下のページにたどり着いた。 becominghuman.ai MXNet の基礎をそれぞれ重要だろうなと思った部分部分で分けてやっていこうと思う。 Perl の repl である Reply を用いた結果を記していく。 Symbol: Declarative Symbolic Expressions これについてはここを参考にするとかなり詳しく把握することができる。 Symbol API は各プログラミング間での MXNet 関連の情報のやりとりについてと
『実行可能なモジュール』と私が勝手に呼んでいる、ある種の設計パターン/コーディングイディオムについて、 私なりの意見を整理しておこうと思います。 (この設計パターンは Perl 以外の言語でもよく見かけるので、既に名前が付いているのでは?と予想しています。 教えて頂けるとありがたいです) pm に shbang と unless caller を書く unless caller Perl スクリプトで、ファイルの最後にこんなコードを見たことが有る人は、いるでしょうか? unless (caller) { ...何らかの処理... } この unless (caller) {...} のブロックは、このファイルをコマンドとして直接起動した時だけ 呼ばれる処理を記述したものです。私が初めてこの種の書き方に触れたのは 1996頃の Perl/Tk の文脈 で、 MainLoop unless c
フレームワークと聞くとJavaやPHPなどがすぐ思い浮かぶかもしれませんが、Perlにもフレームワークが存在します。特に、大規模なWebアプリケーション開発において、Perlのフレームワークが使用されていることが多いです。今回は、そんなPerlフレームワークの比較と、重宝されるエンジニアの傾向についてご紹介していきます。 Perlは、大規模Web開発や、サーバーサイド開発で使用されていたりします。特にテキスト処理に特化しており、ログの整形・集計やシステム管理系などで大いに力を発揮します。ここ最近はPythonやRubyの影に隠れていますが、まだまだ開発現場の需要はありますので、一度案件を探してみてください。 Perl案件はコチラ 未公開案件も多数ありますので「まずは相談したい。」という方もお気軽にご登録ください。 【目次】 ■Perlフレームワークのメリットと選ぶ基準 ◆Perlとフレーム
//が出てきてもググれなくて泣かないように確認しておく。 参考 こちらを見て試してみた。 Defined-or演算子「//」 - PerlならサンプルコードPerl入門 第14回 最新Perl使いこなし術―リファレンスの引き方,5.10以降の新機能(2):Perl Hackers Hub|gihyo.jp … 技術評論社 サンプルソース こんな風にdefine-or演算子はサブルーチンの引数をハッシュやハッシュリファレンスで渡す場合のデフォルト値定義に使える。 use v5.10; use warnings; test_v5_8(); # null test_v5_8(type => "list1"); # hash1 test_v5_8(type => "list2"); # hash2 test_v5_8(+{type => "hash-ref"}); # hash-ref test_
SPVM言語仕様(ベータ 1.0以前) パッケージ宣言 フィールド宣言 サブルーチン宣言 変数宣言 パッケージ宣言 パッケージ宣言は以下のように行います。 package PackageName { } 「PackageName」はパッケージ名です。 パッケージ名は、大文字、小文字、数値と「::」で構成されます。パッケージ名は、大文字で始まならなければなりません。先頭が小文字のパッケージ名は禁止されています。先頭が小文字のパッケージ名は、コアのために予約されています。 パッケージ名は、アンダースコア「_」を含むことができないことに注意してください。アンダースコアは、「パッケージテンプレート」のために使用されます。 # 適切 Foo Foo2 Foo::Bar Foo::Bar::Baz Foo::bar # 違反 foo foo::Bar 2Foo Foo_Bar パッケージ宣言はファイル
Perl Advent Calendar, 20日目担当しますpapixです. 宜しくお願い致します. 今日は, 「Perl meets GPU」というタイトルで, PerlとGPU, そしてGPUを利用したGPGPUについてのお話をさせて頂きたいと思います. GPGPUとは? GPGPUとは, General-Purpose computing on Graphics Processing Unitsの略語で, グラフィックボード(GPU)の演算資源を, 画像処理以外の汎用演算に用いる技術のことです. GPUには, 画像処理を高速に行うために大量のコアが搭載されているので, これらのコアで処理を分散することで, 高速化を実現します. GPGPUを上手く利用すれば, シミュレーション, 暗号解読, 音声処理などのデータ並列性のある処理を, 高速かつ低コストで実現できるので, 特に学術分野で
Perl入学式って? 「プログラミングに興味があるけど, ちょっと難しそう...」と思っている貴方! 「他の言語使いだけど, ちょっとPerlも使ってみよっかな?」と思っている貴方! 「仕事や研究でPerlを使い始めたけど, ちょっと自信ないな...」と思っている貴方! 「プログラミング未経験者」から「Perl初心者」を対象としたワークショップ, 「Perl入学式」で一緒にPerlで学びましょう! プログラミングの「プ」の字も知らないあなたでも大丈夫. 経験豊富な講師とサポーターが, あなたの学びを全力でサポートします. さあ, 私達と一緒にプログラミングの楽しさを体感しましょう! どんなことをするの? 「Perl入学式 in札幌」は4月から3月までの計5回開催する予定です. 開催日時は土曜日の午後4時間から5時間です. 全5回のカリキュラムは, プログラミング未経験者の人が, 「Perl
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く