constexpr関数はコンパイル時処理。これはいい。実行時が霞んで見える。cpuの嬌声が聞こえてきそうだGenya Murakami
![実用Brainf*ckプログラミング入門編](https://cdn-ak-scissors.b.st-hatena.com/image/square/bff331143300ad6b114385ee4319f7dc638faec7/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fbfintrowww-130721074702-phpapp01-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)
Extensible Effects はモナド変換子に対する救世主になり得るか? konn-san.com Oleg, Sabry and Swords らによる Extensible Effects: An Alternative to Monad Transformers の論文を読んだメモ的な何かです。モナド変換子に関する簡単な現状確認から入ってはいますが、想定読者層は日常的にモナドやモナド変換子を用いたプログラムを書いている人達です。 どちらかというと自分向けのメモの性格が強いので、詳しい部分は論文を参照してみてください。 背景:モナド変換子とその問題 Haskell を中心に、関数型言語では副作用のある函数を合成するための手段としてモナドが広く用いられている。モナドは非常に強力な抽象化で、およそ副作用と呼べるものはモナドを使って定式化することが出来た。例えば、大域的な環境 r を
この記事は Vim Advent Calendar 2012 233日目の記事になります。 一昨日からメインのマシンが起動しなくなりましたが、わたしは元気です。 さて、前回は textobj プラグインをまとめてみました。 ご覧の通り textobj プラグインはたくさんあり、これを使い分けるのは大変ですし、使用するマッピングするキーもどんどん枯渇していきます。 そこで複数の textobj を1つにまとめ、抽象的に使用できるような textobj をつくりました。 この textobj を使用する事で設定した複数の textobj から最初にマッチした textobj を使用します。 要は文脈によって使用する textobj が変わるような感じです。 コンセプトとしては textobj-multiblock と似ています。 [インストール] osyo-manga/vim-textobj-
Whether you are an artist, a crypto investor, or simply browsing through some Internet content recently, you certainly have heard about NFT. Everyone is talking about NFTs: the future of digital art, digital money, investments, and more… But what are NFTs? How can you make money with them? Let's find out anything you need to know about the NFT world. What are NFTs?To understand what are NFTs (Non-
Generator support in CoffeeScript _ _ _ ___ _ _ _ _ /_\ | |_ __ ___ __| |_ / _ \| |__ ___ ___| |___| |_ ___ _ _ ___| |_ / _ \| | ' \/ _ (_-< _| (_) | '_ (_-</ _ \ / -_) _/ -_)_| ' \/ -_) _| /_/ \_\_|_|_|_\___/__/\__|\___/|_.__/__/\___/_\___|\__\___(_)_||_\___|\__| In Glorious ASCII-VISION Summary: I added generator support to CoffeeScript, my fork is on GitHub and there's an example webserver port
Little more than a week ago, I had the great pleasure of attending the inaugural Lambda Jam conference in Chicago, Illinois. It was a terrific experience, and highly recommended for anyone interested in functional programming. One of the more interesting aspects of the conference was the daily “Jam Sessions”. Part hack-a-thon, part coding contest, each jam saw groups of participants trying to solv
In a previous post I indicated that operating on smaller datasets was one of the best ways to ensure productivity and rapid experimentation when doing data science. At ICML 2013, Nikos and I presented a general strategy for using less data that applies to a wide variety of problems. The idea was inspired by the class-imbalanced subsampling heuristic. This is a well-known trick amongst computationa
Featured webinar Accelerate Your Kubernetes Adoption by Running and Managing Kubernetes at Scale
※ @tomerun さんに書いてもらったコードとその検証結果を記事の最後に追記しました.(2013-07-21 2:00) ふとしたきっかけで非復元抽出 (random sampling without replacement) を実装するときに気になったのでどんな実装がよいのか考えてみた.なお非復元抽出はビンゴのように,N個の要素の中からk個の異なる要素をランダムに選択するという意味である. 復元抽出については @unnonouno さんのブログなどに書いてあり,非復元抽出についてもリンクが張ってあったのだけれど,リンク先のブログ記事が読めない状態になっていていたのが残念. unnonouno: 高速な復元抽出の直感的な説明 はじめに std::vector
Today’s web applications are facing all kind of security intrusions commonly derived from Password cracking attacks. The user itself could even write the password somewhere accessible to untrusted parties making it easy for identity thieves access private information or worst, take over the user account. One of the most effective ways to address this situation is requiring additional secrets that
VimAdventCalendar 2012 225日目 VimAdventCalendar 2012 225日目の記事になります。昨日224日めは@BOXPさんの「VimでClojureする時のあれこれ」でした。 コンパイル時間とかの空き時間のアレ さて、プログラマのみなさまにおかれましては、シェルでコンパイルとかそういう時間がかかるコマンドを行なっている際に手持ち無沙汰になり他の作業を進めるものの、その作業に熱中してしまい気付いた時にはとうにコマンドが終了していた、みたいなあの現象に悩まされている方も少なくないと思います。 私は仕事でRailsをよく使うのですが、bundle installやAssetsのprecompile時にこういった事が頻発しています。不便です。 Vimshellで解決 そう、Hookという便利なしくみがあるVimshellなら、この問題を鮮やかに解決可能です。
Vim この記事はVim Advent Calendar 2012の232日目の記事です。 231日目はrbtnnさんによる`vimproc#system({expr})`の{expr}の展開のされ方でした。 本記事は、Vimで編集を効率的に行うための繰り返し操作について記載します。 カーソル位置の単語編集の繰り返し カーソル位置の単語を編集して同じ単語の編集をファイル内で繰り返したい場合、 以下の順で実行します。 *でカーソル位置の単語で前方検索する (必要に応じて)Nで最初の位置に戻る(私は*に*Nをマッピングしてます) ciwでカーソル位置の単語を削除し編集する n.で単語の編集を繰り返し 確認不要だったり量が多ければ%s//<C-r>./g 以下は上記操作のGIF画像です。 最初から:substituteコマンドを使う事も考えられますが、 検索で確認しながら、編集に移行するかどうか
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く