Submit Search
Upload
Why is it Dim? (BASIC Language)
•
Download as PPTX, PDF
•
0 likes
•
455 views
Keiichi HARA
Follow
Written in Japanege Language. Why is it Dim? History of BASIC Language Dim.
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 22
Download now
Recommended
でるお(仮)
でるお(仮)
Hideaki Tominaga
Electricity atom energy
Electricity atom energy
Kongrat Suntornrojpattana
มอเตอร์ไฟฟ้า
มอเตอร์ไฟฟ้า
Kumpon Ruangphung
ไฟฟ้า
ไฟฟ้า
ท๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊อป น้อง
Lesson11
Lesson11
Surachai Thammayarit
Electricity lecture 2012 Week01
Electricity lecture 2012 Week01
Kongrat Suntornrojpattana
Fundamental of electrical ไฟฟ้าเบื้องต้น-r1
Fundamental of electrical ไฟฟ้าเบื้องต้น-r1
MaloNe Wanger
ไฟฟ้าและวงจร
ไฟฟ้าและวงจร
ประเสริฐ ผามั่ง
Recommended
でるお(仮)
でるお(仮)
Hideaki Tominaga
Electricity atom energy
Electricity atom energy
Kongrat Suntornrojpattana
มอเตอร์ไฟฟ้า
มอเตอร์ไฟฟ้า
Kumpon Ruangphung
ไฟฟ้า
ไฟฟ้า
ท๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊๊อป น้อง
Lesson11
Lesson11
Surachai Thammayarit
Electricity lecture 2012 Week01
Electricity lecture 2012 Week01
Kongrat Suntornrojpattana
Fundamental of electrical ไฟฟ้าเบื้องต้น-r1
Fundamental of electrical ไฟฟ้าเบื้องต้น-r1
MaloNe Wanger
ไฟฟ้าและวงจร
ไฟฟ้าและวงจร
ประเสริฐ ผามั่ง
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Why is it Dim? (BASIC Language)
1.
Dimの話 BASICの変数宣言はなぜDimなのかというBASIC生誕50周年な歴史 の話 NAWA Tech ~東京・奉納祭~
LT http://nawatech.connpass.com/event/12344/
2.
自己紹介 • 原 敬一 •
駆逐艦 痛風 • BASIC好き
3.
なんで「Dim」って聞かれた 他の勉強会でC#のvar(型推論の宣言)とval(readonlyの書き換え案)の 話をしていたとき、 ところで、Visual Basicの変数宣言のDimってなんでDimなの?と聞か れました。 知らない人が多いのですね。 (この資料での発表をした会場でも50%の人が知りませんでした)
4.
BASICの変数宣言はDimです こう書きます。 Dim UserName As
String UserName という文字列変数を 宣言する、という意味です。
5.
英和辞書サイトのアルクさんによると • Dimの意味 • 【自動】薄暗くなる、かすむ、曇る •
【他動】〔照明{しょうめい}や明かりを〕薄暗くする、落とす 〈米〉〔車のヘッドライトを〕ロー・ビームにする◆【同】〈英〉dip • 【形】〔場所{ばしょ}・照明{しょうめい}などが〕薄暗い{うすぐらい} 〔物が〕ぼやけた、ぼんやりとした、はっきり見えない 〔視力{しりょく}が〕弱い、悪い 〔記憶{きおく}などが〕おぼろげな、不鮮明{ふせんめい}な 〔考えなどが〕はっきりしない頭の鈍い、理解{りかい}が遅い
6.
おぼろげな、不鮮明{ふせんめい}な? となると、たとえば、 Dim UserName As
String は 不鮮明な UserName は 文字列 という意味になりますね。
7.
質問ありますか? • ご清聴ありがとうございました。 • ご質問ありましたらどうぞ。
8.
ちょっと待ってください! Dimって、Dimensionじゃないんですか?
9.
Dimension って次元ですか? 不自然だとおもうんだけど 面積とかとしても不自然な気がするし
10.
ではちょっと、古いBASICとかからご説明 • DimをBASICで使い始めたのにはちゃんと理由があります
11.
そもそも、BASICでは変数宣言は不要です Public Class Form1 Private
Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load UserName = "hara" MsgBox(UserName) End Sub End Class
12.
昔のBASICではこう書くことができました 10 A =
1 20 B = “原” 30 A = “敬一” 40 C = 2 50 PRINT A + B + STR$(C) 変数宣言がいりません。 というか、変数宣言がしたくてもできない言語処理系もありました。
13.
BASICは変数の宣言をする必要がない • BASICは変数の宣言をする必要がありませんでした。 • ですから、変数を宣言する命令語が定義されていませんでした。 •
Dimは変数宣言の命令ではなかったのです。
14.
Beginner's All-Purpse Symbolic
Instruction Code • 初心者でも扱いやすいように設計された • 簡単に扱えるよう、 変数宣言は不要とされた 変数名の長さが1文字とか2文字とか、よくて6文字とか 保存できる文字列の長さもそんなに長いのダメだったりした 簡単にしたかった
15.
言語処理系実装の都合も大きい • インタープリターの実装を楽にしたいという動機なんだろうなあと思っ てます。 • 古いインタープリターでは、変数宣言をしなくても使える変数領域を 用意しておいた。 •
BASICのROMを解析したところ、たとえば、変数Aは0x7F00から16バ イトね、という風に固定になっているものがあった。 • これは実装が超楽ちん。
16.
しかし、配列はメモリー確保が必要でした • 超楽ちんな変数の実装でしたが、配列では可変の容量を使うためにつか うことができず、メモリー確保の手続きが必要となりました。そこで、 配列だけ特別扱いしよう!となり、 10 Dim
a$(2,3) という風に書くことにしました。 これは、2つの次元指定で、aという変数の領域を、2 × 3だけ宣言という意 味です。
17.
あ! • Dimensionって配列変数の次元指定という意味なんですね。 (すっと ぼけ)
18.
配列変数の宣言をDimとしよう • 配列変数のためにDimという宣言語を作ったんです。 • あくまでも配列変数の宣言と、配列領域の確保のためのものでした。
19.
しかし、ここからがBASICの不幸・・・ • BASICは変数宣言をしなくてもいい、できないというのが欠点として語 られるようになり、変数宣言のための命令を導入する流れになった のですが・・・
20.
Dimの用途拡大! • あろうことか、「Dim」を配列次元指定以外にも流用することになり Dim UserName(2,3)
As String も Dim UserName As String もOKに
21.
• 言語仕様の拡張をしてほしかったのが本音です
22.
祝BASIC 50周年 • 1964年、米国ダートマス大学にて、数学者ジョン・ケメニー(1926- 1992)とトーマス・カーツ(1928-)により、コンピュータ教育用の言語 ダートマスBASICとして開発された。これは同時期にともに開発され た、タイムシェアリングシステム
DTSS 上のラインエディタ(テレタイプ 端末環境)で利用されるよう設計されていた。 (wikipediaより)
Download now