並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 45件

新着順 人気順

type-inferenceの検索結果1 - 40 件 / 45件

  • PHPに型推論を実装する ~入門編~ / Type inference on PHP

    PHPカンファレンス福岡2016の資料です。

      PHPに型推論を実装する ~入門編~ / Type inference on PHP
    • JS NICE: Statistical renaming, Type inference and Deobfuscation

      Welcome to JSNice — we make even obfuscated JavaScript code readable. We will rename variables and parameters to names that we learn from thousands of open source projects. Furthermore, often we are also able to guess or infer type annotations. Try JSNice on your JavaScript code to see how it works! Override the names suggested by JSNice (by enabling "interactive renames" in settings). Click to le

        JS NICE: Statistical renaming, Type inference and Deobfuscation
      • JS NICE: Statistical renaming, Type inference and Deobfuscation

        Welcome to JSNice — we make even obfuscated JavaScript code readable. We will rename variables and parameters to names that we learn from thousands of open source projects. Furthermore, often we are also able to guess or infer type annotations. Try JSNice on your JavaScript code to see how it works! Override the names suggested by JSNice (by enabling "interactive renames" in settings). Click to le

          JS NICE: Statistical renaming, Type inference and Deobfuscation
        • GitHub - colinhacks/zod: TypeScript-first schema validation with static type inference

          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

            GitHub - colinhacks/zod: TypeScript-first schema validation with static type inference
          • GitHub - gvergnaud/ts-pattern: 🎨 The exhaustive Pattern Matching library for TypeScript, with smart type inference.

            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

              GitHub - gvergnaud/ts-pattern: 🎨 The exhaustive Pattern Matching library for TypeScript, with smart type inference.
            • Effective TypeScript › Flow Nodes: How Type Inference Is Implemented

              In most programming languages a variable has a type and that type does not change. But one of the most interesting aspects of TypeScript's type system is that a symbol has a type at a location. Various control flow constructs can change this type: function refine(x: string | number) { // type of x is string | number here if (typeof x === 'number') { // type of x is number here. } else { // type of

                Effective TypeScript › Flow Nodes: How Type Inference Is Implemented
              • Local Variable Type Inference: Style Guidelines

                Introduction Java SE 10 introduced type inference for local variables. Previously, all local variable declarations required an explicit (manifest) type on the left-hand side. With type inference, the explicit type can be replaced by the reserved type name var for local variable declarations that have initializers. The type of the variable is inferred from the type of the initializer. There is a ce

                • Type Profiler: Ambitious Type Inference for Ruby 3

                  TypeProf for IDE: Enrich Development Experience without Annotations

                    Type Profiler: Ambitious Type Inference for Ruby 3
                  • TypeScript-first schema validation with static type inference

                    TypeScript-first schema validation with static type inference

                      TypeScript-first schema validation with static type inference
                    • [Java] Style Guidelines for Local Variable Type Inference in Java

                      Oracle Blogsの主としてテクノロジー製品のエントリを日本語でご紹介します(オリジナルのエントリを投稿することもあります)。厳密性をご所望の方は原文をどうぞ。よい内容でしたら原文に対し、"Good Entry, thanks!"でもいいので、是非コメントお願いします(Typoや誤訳はコメント欄からどうぞ)。なお、このエントリは個人の見解であり、所属する会社の公式見解ではありません。また、エントリ内でご紹介している製品・サービスは国内導入時期が未定の場合もありますのでご了承下さい。 Good entries on Oracle Blogs are put into Japanese. Mainly this blog covers technology products. Opinions expressed in this blog is my personal one and d

                      • GitHub - Tricertops/Typed: Brings type inference to Objective-C with almost no hacks.

                        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

                          GitHub - Tricertops/Typed: Brings type inference to Objective-C with almost no hacks.
                        • Chapter 16 Hindley/Milner Type Inference - プログラミング言語 Scala Wiki

                          Chapter 16 Hindley > Milner Type Inference 第 16 章 Hindley/Milner 型推論 (Hindley/Milner Type Inference) この章では、Hindely/Milner スタイル[Mil78] の型推論システムの開発を通して、Scala のデータ型とパターンマッチングを見てみます。型推論器の対象言語は、mini-ML と呼ばれる let 構成子を持つ λ計算です。mini-ML の抽象構文木は、次のデータ型 Term によって表現されます。 abstract class Term {} case class Var(x: String) extends Term { override def toString = x } case class Lam(x: String, e: Term) extends Term

                            Chapter 16 Hindley/Milner Type Inference - プログラミング言語 Scala Wiki
                          • Introduction to type inference

                            JS 実装をしようかな、と思い立ち、 まずは型推論の知識をしっかり取得するところから初めようと考えています. そもそも、型推論とはなんぞや、というところからおさらいしてみます. 私が型推論について知りたいことの一番の目的は、 「型推論を行うことで動的言語の事前コンパイルを可能にしプログラムの実行を早くすることができるのではないか」, ということになりますので、それに特化した内容になっています. もちろん型推論には、プログラムを早くするという以外の目的もありますが、 ここではそれらは取り上げないことにします. 型推論(type inference)とは、簡単に言うと、 var muda = 7 というコードがあったら、 「変数 muda って Int 型(整数型)じゃね?」 とコンパイラがよろしく変数の型を決定してくれる(推測してくれる)機能になります. 静的な関数型言語(Ocaml, Ha

                              Introduction to type inference
                            • JEP 286: Local-Variable Type Inference

                              Summary Enhance the Java Language to extend type inference to declarations of local variables with initializers. Goals We seek to improve the developer experience by reducing the ceremony associated with writing Java code, while maintaining Java's commitment to static type safety, by allowing developers to elide the often-unnecessary manifest declaration of local variable types. This feature would

                              • lucille development blog » Blog Archive » Introduction to type inference

                                JS 実装をしようかな、と思い立ち、 まずは型推論の知識をしっかり取得するところから初めようと考えています. そもそも、型推論とはなんぞや、というところからおさらいしてみます. 私が型推論について知りたいことの一番の目的は、 「型推論を行うことで動的言語の事前コンパイルを可能にしプログラムの実行を早くすることができるのではないか」, ということになりますので、それに特化した内容になっています. もちろん型推論には、プログラムを早くするという以外の目的もありますが、 ここではそれらは取り上げないことにします. 型推論(type inference)とは、簡単に言うと、 var muda = 7 というコードがあったら、 「変数 muda って Int 型(整数型)じゃね?」 とコンパイラがよろしく変数の型を決定してくれる(推測してくれる)機能になります. 静的な関数型言語(Ocam

                                • GitHub - JetBrains/ruby-type-inference: Dynamic definitions and types provider for ruby static analysis

                                  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.

                                    GitHub - JetBrains/ruby-type-inference: Dynamic definitions and types provider for ruby static analysis
                                  • Fast and Precise Hybrid Type Inference for JavaScript

                                    Fast and Precise Hybrid Type Inference for JavaScript Abstract1 JavaScript performance is often bound by its dynamically typed na-2 ture. Compilers do not have access to static type information, mak-3 ing generation of efficient, type-specialized machine code difficult.4 To avoid incurring extra overhead on the programmer and to im-5 prove the performance of deployed JavaScript programs, we seek6 t

                                    • Type inference - Wikipedia

                                      Type inference, sometimes called type reconstruction,[1]: 320  refers to the automatic detection of the type of an expression in a formal language. These include programming languages and mathematical type systems, but also natural languages in some branches of computer science and linguistics. Types in a most general view can be associated to a designated use suggesting and restricting the activi

                                      • GitHub - pi8027/typeinfer: Type inference in OCaml

                                        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

                                          GitHub - pi8027/typeinfer: Type inference in OCaml
                                        • GitHub - szktty/bran: A strongly-typed language with type inference running on Erlang VM, influenced by OCaml.

                                          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

                                            GitHub - szktty/bran: A strongly-typed language with type inference running on Erlang VM, influenced by OCaml.
                                          • Type Inference in Context

                                            Adam Gundry, Conor McBride and James McKinna We consider the problems of first-order unification and type inference from a very general perspective on problem-solving, namely that of information increase in the problem context. This leads to a powerful technique for implementing type inference algorithms. We describe a unification algorithm and illustrate the technique by applying it to the famili

                                            • JavaScript Type Inference

                                              The type inference algorithm is based on the CFA2 control-flow analysis. Currently, it handles core JavaScript only (DOM support will be added soon). For comments and suggestions, email: dimvar at ccs dot neu dot edu.

                                              • Type Inference brings JS improvements to Firefox Beta – Future Releases

                                                Blog by Brian Hackett, Firefox Engineer Firefox 9 features the release of Type Inference, or TI, a research project under way for over a year. TI is a feature in the SpiderMonkey Javascript engine which generates type information about Javascript programs through a combination of analyzing the program’s code and monitoring the types of values as the program executes. This type information is used

                                                • Cédric Champeau's blog: Closure parameter type inference for Groovy

                                                  Let’s start 2014 with a new blog post about a long standing request since we introduced static type checking in Groovy 2: closure parameter type inference. Before we start, let me wish you a happy new year and a lot of open source contributions!

                                                  • JEP 286: Local-Variable Type Inferenceをテキトーに訳した - kagamihogeの日記

                                                    http://openjdk.java.net/jeps/286 をテキトーに訳した。英語とJavaの勉強には丁度良かろうと読んでみたけど、型推論の知識あんま無いんでかなり苦戦した。なので、誤訳してる可能性がかなりあると思います。 JEP 286: Local-Variable Type Inference Author Brian Goetz Owner Dan Smith Created 2016/03/08 15:37 Updated 2016/03/09 20:18 Type Feature Status Candidate Component specification?/?language Scope SE Discussion platform dash jep dash discuss at openjdk dot java dot net Effort M Duratio

                                                      JEP 286: Local-Variable Type Inferenceをテキトーに訳した - kagamihogeの日記
                                                    • Typesetting Type Inference Rules

                                                      Typesetting Type Inference Rules The package mathpartir provides: An environment mathpar for typesetting a sequence of math formulas in mixed horizontal and vertical mode. The environment selects the best arrangement according to the line width, exactly as paragraph mode does for words. A macro inferrule for typesetting type inference rules. See the package documentation (in HTML) for more informa

                                                      • Type Inference Was a Mistake

                                                        Type inference is bad. It makes code harder to read, and languages that use it too much are harder to write. It’s a false economy whereby you save unobservable milliseconds of typing today and make everything else worse. Type Inference Makes Code Less Readable If you have an IDE with a working LSP, you can hover over variables to see their types. In VSCode with rust-analyzer I can see the type ann

                                                        • HMF: Simple Type Inference for First-Class Polymorphism - Microsoft Research

                                                            HMF: Simple Type Inference for First-Class Polymorphism - Microsoft Research
                                                          • Type Inference, Haskell and Dependent Types

                                                            Adam Gundry This thesis studies questions of type inference, unification and elaboration for languages that combine dependent type theory and functional programming. Languages such as modern Haskell have very expressive type systems, allowing the programmer a great deal of freedom. These require advanced type inference and unification algorithms to reconstruct details that were left implicit, and

                                                            • Archive of Jason Morrison's Google Summer of Code 2006 Participation: Type Inference in Ruby

                                                              Jason Morrison SoC 2006: Type Inference in Ruby This page is an archive of Jason Morrison's Google Summer of Code 2006 Participation: Type Inference in Ruby. My Typo installation creaked to a halt, the database was corrupted during an attempt to upgrade, and I've been unable to revive the blog as a whole; however, this static copy can hopefully serve as a future reference to my work. Unfortunately

                                                              • 2023-01-18のJS: Flow v0.197.0(Local Type Inference)、Fetch APIのエラーハンドリング

                                                                JSer.info #627 - Flow v0.197.0がリリースされました。 Release v0.197.0 · facebook/flow Flow v0.197.0ではLocal Type Inferenceという機能がopt-inで導入されています。 Introducing: Local Type Inference for Flow | by Michael Matson Vitousek | Flow | Medium Flowは、強い型推論エンジンを持っていましたが、Type-Firstなアーキテクチャへと移行しています。 そのため、依然と比べると明示的な型付けが必要となるケースは増えますが、安全性やバグが減ります。 Clarity on Flow’s Direction and Open Source Engagement | by Vladan Djeric | F

                                                                  2023-01-18のJS: Flow v0.197.0(Local Type Inference)、Fetch APIのエラーハンドリング
                                                                • Java Has Type Inference and Refinement Types (But With Strange Restrictions)

                                                                  When enthusiasts talk about Scala they frequently start with "it's a lot like Java but with all this other cool stuff like type inference and structural types and..." I guess it's okay to introduce Scala that way. I've done it myself. But it does give the impression that Scala has somehow heaped complexity onto the Java. Oddly enough, it hasn't, at least not in the areas of type inference and stru

                                                                  • Java Type Inference Won't Support Mutability Specification

                                                                    InfoQ Software Architects' Newsletter A monthly overview of things you need to know as an architect or aspiring architect. View an example

                                                                      Java Type Inference Won't Support Mutability Specification
                                                                    • Type Inference on function arguments · Issue #15114 · microsoft/TypeScript

                                                                      Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Pick a username Email Address Password Sign up for GitHub By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails. Already on GitHub? Sign in to your account

                                                                        Type Inference on function arguments · Issue #15114 · microsoft/TypeScript
                                                                      • Using type inference to make web templates robust against XSS

                                                                        Using type inference to make web templates robust against XSS Mike Samuel <msamuel@google.com>, Prateek Saxena <prateeks@eecs.berkeley.edu> Contents Motivation Scripting vulnerabilities plague web applications today. To streamline the output generation from application code, numerous web templating frameworks have recently emerged and are gaining widespread adoption. However, existing web framewor

                                                                        • Practical Type Inference Based on Success Typings

                                                                          Practical Type Inference Based on Success Typings Tobias Lindahl 1 Konstantinos Sagonas 1,2 1 Department of Information Technology, Uppsala University, Sweden 2 School of Electrical and Computer Engineering, National Technical University of Athens, Greece {tobiasl,kostis}@it.uu.se Abstract In languages where the compiler performs no static type checks, many programs never go wrong, but the intende

                                                                          • 【Modern Java】Local-Variable Type Inference - A Memorandum

                                                                            JEP 286: Local-Variable Type Inference ローカル変数宣言型推論の注意点 4つの原則 7つのガイドライン 「インターフェースを使ったプログラミング」についてはローカル変数では重視しなくてよい ダイヤモンド<> やジェネリックメソッドにおける var 利用は注意すること リテラルにおける var 利用は注意すること var の利用例 まとめ blog1.mammb.com JEP 286: Local-Variable Type Inference Java 10 によりローカル変数宣言で型推論(type inference)が可能となり var により型定義を省略できるようになりました。 C++ での auto、C# での var、Scala での var/val、Go での := のように大抵の言語ではローカル変数型推論をサポートしており、Java は

                                                                              【Modern Java】Local-Variable Type Inference - A Memorandum
                                                                            • Local Type Inference

                                                                              Local Type Inference Benjamin C. Pierce Computer Science Department Indiana University Lindley Hall 215 Bloomington, IN 47405, USA pierce@cs.indiana.edu David N. Turner An Teallach Limited Technology Transfer Center King's Buildings Edinburgh, EH9 3JL, UK dnt@an-teallach.com Indiana University CSCI Technical Report #493 November 12, 1997 Abstract We study two partial type inference methods for a l

                                                                              • GitHub - sinelaw/infernu: Type inference and checking for a safer JavaScript.

                                                                                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

                                                                                  GitHub - sinelaw/infernu: Type inference and checking for a safer JavaScript.
                                                                                • Go's Type Inference Algorithm

                                                                                  What type inference algorithm does the Go compiler use? I tried looking this up on golang but I can't find documentation. I am tempted to assume that it would be Hindley-Milner, but I would like to know for sure

                                                                                    Go's Type Inference Algorithm