You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
これはiRidge Advent Calendarの七日目の記事です。 この記事では、Pythonで実装されたLisp方言のHyを紹介します。 動機 株式会社アイリッジのサーバサイドエンジニア、tanaka.lispです。ウェブとPythonの世界を見てみたいと思い、Pythonの会社であるアイリッジでお仕事しています。 突然ですが、ぼくがこよなく愛する言語はCommon Lispです。業務ではもっぱらPythonを読んだり書いたりするわけですが、PythonはLispではないので、自動インデントに翻弄されたり、if pred1 and pred2: ...をif (and pred1 pred2): ...なんて書いてしまったりと苦労が絶えません。Lisper特有の禁断症状が顔を出すこともあります。S式のことを考え始めたり、おもむろに"Hyperspec 関数名"でググったり、Emacs
はじめに PythonistaのためのLisp入門(Hyチュートリアル和訳)の補足的な記事です.Hy Tutorialでは**「Pythonでこう書くものはHyではこう書く」的な内容がほとんどでしたがそれも実用には十分でないところが有ります.この記事ではHyならではの,言い換えるとPythonにはないHyの機能およびHy独自の特徴**について補足的に解説したいと思います.これを読めばとりあえずPythonの代わりにHyを使うには十分だと思います. あわせて読みたい PythonistaのためのLisp入門(Hyチュートリアル和訳) Pythonで書かれたイカしたLisp: Hy HyでDjangoアプリを実装する Hyをネイティブコンパイルするツールを作った Qiita以外だと以下の良記事を見つけたので併せてご参照ください.(前の投稿とモロかぶりのうえこちらのほうが有用です...) ゼロか
gist.md Haskell vs Clojure The JSON data is in the following format { "Genesis": { "1": { "1": "In the beginning..." , "2": "..." }, "2": { ... } }, "Exodus": { ... }, ... } In JSON, keys aren't ordered and must be strings. The goal is to parse the JSON file, order everything correctly (which means parsing the keys into integers), and produce an array that looks like this: [ ("Genesis", 1, 1, "In
Below you will find resources from my presentation on High Performance Django. Slides Profiling Middleware Template Engine Benchmarks: Real-world Example, Benchmark Testcase Related Posts Denormalizing Model Abstraction in Django (December 29th, 2008) An Identity Mapper in Django (formerly Django Singletons) (December 2nd, 2008) Spaceless HTML in Django (December 1st, 2008) Sidebar Widgets Com
Python Database Access Simplified FUTURE I do not plan to release or work on this library going forward. I’m not really using it much these days and it needs some work to modernize it. Feel free to reach out if you have questions. DOWNLOAD Here’s a link to download the most recent version of this library. Download Now. WHAT YOU GET In case you are wondering “What does this package do?”, wonder no
Outline Getting Started Downloading this tutorial Setting up the environment Preamble Making hello world Creating Classes @interface @implementation Piecing it together The Details... Multiple Parameters Constructors Access Privledges Class level access Exceptions Inheritance, Polymorphism, and other OOP features The id type Inheritance Dynamic types Categories Posing Protocols Memory Management R
CleanやHaskellといった純粋関数プログラミング言語は生産性が高いとあちこちに書いてあったので、いろいろと勉強しているところだ。 勉強していると、Pythonなどの最近の命令型(imperative)あるいは手続き型(procedural)といわれる言語でもかなり似たような記述ができそうな気がした(さすがにJavaやCとかだと無理そうだが)。そこで、Pythonを使って関数プログラミングの醍醐味をどこまで味わえるかチャレンジしてみることにした。あまり関数プログラミングに馴染みのない人にも理解しやすく説明できるように心がけるつもりだ(というか私もあまり馴染みがない)。 純粋関数プログラミング言語では、遅延評価を行えることが特徴となっている。遅延評価とは、すごく簡単に言ってしまうと、必要になるまで式の評価や文の実行をしないことだ。たとえば、無限に続く数列(数値のリスト)を生成する関数を
前のエントリー で簡易S式パーサを re.Scanner で作ったのですが、まぁ個人的にまとめておいたほうが後々使えるだろう、ということでライブラリにまとめました。ダンパもついているので、S式の読み込みの他、PythonオブジェクトをS式で出力することができます。 実装には引き続き re.Scanner を活用しています。おかげで短い行数でキレイにかけているのではないかと。 ダウンロード simplesexp.py ソースはこんな感じ(テストのぞく)。 1import re, sys 2from unicodedata import east_asian_width 3 4try: 5 from re import Scanner 6except ImportError: 7 from sre import Scanner 8 9class ParseError(StandardError
Captcha security check replore.com is for sale Please prove you're not a robot View Price Processing
2026/04/01 桜が悪天候を手引きしてる 朝、両手でカフェオレを運ぶわたしと夫がすれ違いぎわで接触し、カフェオレをすこしこぼす事故がおきて、あつい!!!!と、大きい声をだしてしまった。これが本当に熱いなら仕方がないと思うけど、カフェオレはたいして熱くなく、ほとんど舌打ち的な意味合いで怒りを…
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く