3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Q言語でHello World!を書いてみる

Last updated at Posted at 2025-12-15

こちらがQ言語のHello World!です。

-1 "Hello World";

Q言語は、KX Systems社によって開発されたベクトル処理(配列処理)を得意とする言語です。 元々は金融機関(ヘッジファンドや投資銀行)が、膨大な株価データや取引ログをミリ秒単位で処理するために開発されました。また、Q言語とkdb+はセットで語られます。「kdb+」というデータベースを高速に操作する言語がQです。

Hello World!について解説します。Q言語には print() という名前の関数はありません。その代わり、File Handleを使って画面に出力します。標準出力(stdout)を表すハンドルは 1 ですが、これを負の数にすることで文字列として読みやすく整形して出力してくれます。(pretty print)

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?