2024 State of Marketing Report – by HubspotMarius Sescu
https://www.hubspot.com/state-of-marketing
· Scaling relationships and proving ROI
· Social media is the place for search, sales, and service
· Authentic influencer partnerships fuel brand growth
· The strongest connections happen via call, click, chat, and camera.
· Time saved with AI leads to more creative work
· Seeking: A single source of truth
· TLDR; Get on social, try AI, and align your systems.
· More human marketing, powered by robots
2024 State of Marketing Report – by HubspotMarius Sescu
https://www.hubspot.com/state-of-marketing
· Scaling relationships and proving ROI
· Social media is the place for search, sales, and service
· Authentic influencer partnerships fuel brand growth
· The strongest connections happen via call, click, chat, and camera.
· Time saved with AI leads to more creative work
· Seeking: A single source of truth
· TLDR; Get on social, try AI, and align your systems.
· More human marketing, powered by robots
ChatGPT is a revolutionary addition to the world since its introduction in 2022. A big shift in the sector of information gathering and processing happened because of this chatbot. What is the story of ChatGPT? How is the bot responding to prompts and generating contents? Swipe through these slides prepared by Expeed Software, a web development company regarding the development and technical intricacies of ChatGPT!
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
The realm of product design is a constantly changing environment where technology and style intersect. Every year introduces fresh challenges and exciting trends that mold the future of this captivating art form. In this piece, we delve into the significant trends set to influence the look and functionality of product design in the year 2024.
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
Mental health has been in the news quite a bit lately. Dozens of U.S. states are currently suing Meta for contributing to the youth mental health crisis by inserting addictive features into their products, while the U.S. Surgeon General is touring the nation to bring awareness to the growing epidemic of loneliness and isolation. The country has endured periods of low national morale, such as in the 1970s when high inflation and the energy crisis worsened public sentiment following the Vietnam War. The current mood, however, feels different. Gallup recently reported that national mental health is at an all-time low, with few bright spots to lift spirits.
To better understand how Americans are feeling and their attitudes towards mental health in general, ThinkNow conducted a nationally representative quantitative survey of 1,500 respondents and found some interesting differences among ethnic, age and gender groups.
Technology
For example, 52% agree that technology and social media have a negative impact on mental health, but when broken out by race, 61% of Whites felt technology had a negative effect, and only 48% of Hispanics thought it did.
While technology has helped us keep in touch with friends and family in faraway places, it appears to have degraded our ability to connect in person. Staying connected online is a double-edged sword since the same news feed that brings us pictures of the grandkids and fluffy kittens also feeds us news about the wars in Israel and Ukraine, the dysfunction in Washington, the latest mass shooting and the climate crisis.
Hispanics may have a built-in defense against the isolation technology breeds, owing to their large, multigenerational households, strong social support systems, and tendency to use social media to stay connected with relatives abroad.
Age and Gender
When asked how individuals rate their mental health, men rate it higher than women by 11 percentage points, and Baby Boomers rank it highest at 83%, saying it’s good or excellent vs. 57% of Gen Z saying the same.
Gen Z spends the most amount of time on social media, so the notion that social media negatively affects mental health appears to be correlated. Unfortunately, Gen Z is also the generation that’s least comfortable discussing mental health concerns with healthcare professionals. Only 40% of them state they’re comfortable discussing their issues with a professional compared to 60% of Millennials and 65% of Boomers.
Race Affects Attitudes
As seen in previous research conducted by ThinkNow, Asian Americans lag other groups when it comes to awareness of mental health issues. Twenty-four percent of Asian Americans believe that having a mental health issue is a sign of weakness compared to the 16% average for all groups. Asians are also considerably less likely to be aware of mental health services in their communities (42% vs. 55%) and most likely to seek out information on social media (51% vs. 35%).
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
This article is all about what AI trends will emerge in the field of creative operations in 2024. All the marketers and brand builders should be aware of these trends for their further use and save themselves some time!
A report by thenetworkone and Kurio.
The contributing experts and agencies are (in an alphabetical order): Sylwia Rytel, Social Media Supervisor, 180heartbeats + JUNG v MATT (PL), Sharlene Jenner, Vice President - Director of Engagement Strategy, Abelson Taylor (USA), Alex Casanovas, Digital Director, Atrevia (ES), Dora Beilin, Senior Social Strategist, Barrett Hoffher (USA), Min Seo, Campaign Director, Brand New Agency (KR), Deshé M. Gully, Associate Strategist, Day One Agency (USA), Francesca Trevisan, Strategist, Different (IT), Trevor Crossman, CX and Digital Transformation Director; Olivia Hussey, Strategic Planner; Simi Srinarula, Social Media Manager, The Hallway (AUS), James Hebbert, Managing Director, Hylink (CN / UK), Mundy Álvarez, Planning Director; Pedro Rojas, Social Media Manager; Pancho González, CCO, Inbrax (CH), Oana Oprea, Head of Digital Planning, Jam Session Agency (RO), Amy Bottrill, Social Account Director, Launch (UK), Gaby Arriaga, Founder, Leonardo1452 (MX), Shantesh S Row, Creative Director, Liwa (UAE), Rajesh Mehta, Chief Strategy Officer; Dhruv Gaur, Digital Planning Lead; Leonie Mergulhao, Account Supervisor - Social Media & PR, Medulla (IN), Aurelija Plioplytė, Head of Digital & Social, Not Perfect (LI), Daiana Khaidargaliyeva, Account Manager, Osaka Labs (UK / USA), Stefanie Söhnchen, Vice President Digital, PIABO Communications (DE), Elisabeth Winiartati, Managing Consultant, Head of Global Integrated Communications; Lydia Aprina, Account Manager, Integrated Marketing and Communications; Nita Prabowo, Account Manager, Integrated Marketing and Communications; Okhi, Web Developer, PNTR Group (ID), Kei Obusan, Insights Director; Daffi Ranandi, Insights Manager, Radarr (SG), Gautam Reghunath, Co-founder & CEO, Talented (IN), Donagh Humphreys, Head of Social and Digital Innovation, THINKHOUSE (IRE), Sarah Yim, Strategy Director, Zulu Alpha Kilo (CA).
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
The search marketing landscape is evolving rapidly with new technologies, and professionals, like you, rely on innovative paid search strategies to meet changing demands.
It’s important that you’re ready to implement new strategies in 2024.
Check this out and learn the top trends in paid search advertising that are expected to gain traction, so you can drive higher ROI more efficiently in 2024.
You’ll learn:
- The latest trends in AI and automation, and what this means for an evolving paid search ecosystem.
- New developments in privacy and data regulation.
- Emerging ad formats that are expected to make an impact next year.
Watch Sreekant Lanka from iQuanti and Irina Klein from OneMain Financial as they dive into the future of paid search and explore the trends, strategies, and technologies that will shape the search marketing landscape.
If you’re looking to assess your paid search strategy and design an industry-aligned plan for 2024, then this webinar is for you.
5 Public speaking tips from TED - Visualized summarySpeakerHub
From their humble beginnings in 1984, TED has grown into the world’s most powerful amplifier for speakers and thought-leaders to share their ideas. They have over 2,400 filmed talks (not including the 30,000+ TEDx videos) freely available online, and have hosted over 17,500 events around the world.
With over one billion views in a year, it’s no wonder that so many speakers are looking to TED for ideas on how to share their message more effectively.
The article “5 Public-Speaking Tips TED Gives Its Speakers”, by Carmine Gallo for Forbes, gives speakers five practical ways to connect with their audience, and effectively share their ideas on stage.
Whether you are gearing up to get on a TED stage yourself, or just want to master the skills that so many of their speakers possess, these tips and quotes from Chris Anderson, the TED Talks Curator, will encourage you to make the most impactful impression on your audience.
See the full article and more summaries like this on SpeakerHub here: https://speakerhub.com/blog/5-presentation-tips-ted-gives-its-speakers
See the original article on Forbes here:
http://www.forbes.com/forbes/welcome/?toURL=http://www.forbes.com/sites/carminegallo/2016/05/06/5-public-speaking-tips-ted-gives-its-speakers/&refURL=&referrer=#5c07a8221d9b
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
Everyone is in agreement that ChatGPT (and other generative AI tools) will shape the future of work. Yet there is little consensus on exactly how, when, and to what extent this technology will change our world.
Businesses that extract maximum value from ChatGPT will use it as a collaborative tool for everything from brainstorming to technical maintenance.
For individuals, now is the time to pinpoint the skills the future professional will need to thrive in the AI age.
Check out this presentation to understand what ChatGPT is, how it will shape the future of work, and how you can prepare to take advantage.
A brief introduction to DataScience with explaining of the concepts, algorithms, machine learning, supervised and unsupervised learning, clustering, statistics, data preprocessing, real-world applications etc.
It's part of a Data Science Corner Campaign where I will be discussing the fundamentals of DataScience, AIML, Statistics etc.
Time Management & Productivity - Best PracticesVit Horky
Here's my presentation on by proven best practices how to manage your work time effectively and how to improve your productivity. It includes practical tips and how to use tools such as Slack, Google Apps, Hubspot, Google Calendar, Gmail and others.
The six step guide to practical project managementMindGenius
The six step guide to practical project management
If you think managing projects is too difficult, think again.
We’ve stripped back project management processes to the
basics – to make it quicker and easier, without sacrificing
the vital ingredients for success.
“If you’re looking for some real-world guidance, then The Six Step Guide to Practical Project Management will help.”
Dr Andrew Makar, Tactical Project Management
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
During this webinar, Anand Bagmar demonstrates how AI tools such as ChatGPT can be applied to various stages of the software development life cycle (SDLC) using an eCommerce application case study. Find the on-demand recording and more info at https://applitools.info/b59
Key takeaways:
• Learn how to use ChatGPT to add AI power to your testing and test automation
• Understand the limitations of the technology and where human expertise is crucial
• Gain insight into different AI-based tools
• Adopt AI-based tools to stay relevant and optimize work for developers and testers
* ChatGPT and OpenAI belong to OpenAI, L.L.C.
ChatGPT is a revolutionary addition to the world since its introduction in 2022. A big shift in the sector of information gathering and processing happened because of this chatbot. What is the story of ChatGPT? How is the bot responding to prompts and generating contents? Swipe through these slides prepared by Expeed Software, a web development company regarding the development and technical intricacies of ChatGPT!
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
The realm of product design is a constantly changing environment where technology and style intersect. Every year introduces fresh challenges and exciting trends that mold the future of this captivating art form. In this piece, we delve into the significant trends set to influence the look and functionality of product design in the year 2024.
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
Mental health has been in the news quite a bit lately. Dozens of U.S. states are currently suing Meta for contributing to the youth mental health crisis by inserting addictive features into their products, while the U.S. Surgeon General is touring the nation to bring awareness to the growing epidemic of loneliness and isolation. The country has endured periods of low national morale, such as in the 1970s when high inflation and the energy crisis worsened public sentiment following the Vietnam War. The current mood, however, feels different. Gallup recently reported that national mental health is at an all-time low, with few bright spots to lift spirits.
To better understand how Americans are feeling and their attitudes towards mental health in general, ThinkNow conducted a nationally representative quantitative survey of 1,500 respondents and found some interesting differences among ethnic, age and gender groups.
Technology
For example, 52% agree that technology and social media have a negative impact on mental health, but when broken out by race, 61% of Whites felt technology had a negative effect, and only 48% of Hispanics thought it did.
While technology has helped us keep in touch with friends and family in faraway places, it appears to have degraded our ability to connect in person. Staying connected online is a double-edged sword since the same news feed that brings us pictures of the grandkids and fluffy kittens also feeds us news about the wars in Israel and Ukraine, the dysfunction in Washington, the latest mass shooting and the climate crisis.
Hispanics may have a built-in defense against the isolation technology breeds, owing to their large, multigenerational households, strong social support systems, and tendency to use social media to stay connected with relatives abroad.
Age and Gender
When asked how individuals rate their mental health, men rate it higher than women by 11 percentage points, and Baby Boomers rank it highest at 83%, saying it’s good or excellent vs. 57% of Gen Z saying the same.
Gen Z spends the most amount of time on social media, so the notion that social media negatively affects mental health appears to be correlated. Unfortunately, Gen Z is also the generation that’s least comfortable discussing mental health concerns with healthcare professionals. Only 40% of them state they’re comfortable discussing their issues with a professional compared to 60% of Millennials and 65% of Boomers.
Race Affects Attitudes
As seen in previous research conducted by ThinkNow, Asian Americans lag other groups when it comes to awareness of mental health issues. Twenty-four percent of Asian Americans believe that having a mental health issue is a sign of weakness compared to the 16% average for all groups. Asians are also considerably less likely to be aware of mental health services in their communities (42% vs. 55%) and most likely to seek out information on social media (51% vs. 35%).
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
This article is all about what AI trends will emerge in the field of creative operations in 2024. All the marketers and brand builders should be aware of these trends for their further use and save themselves some time!
A report by thenetworkone and Kurio.
The contributing experts and agencies are (in an alphabetical order): Sylwia Rytel, Social Media Supervisor, 180heartbeats + JUNG v MATT (PL), Sharlene Jenner, Vice President - Director of Engagement Strategy, Abelson Taylor (USA), Alex Casanovas, Digital Director, Atrevia (ES), Dora Beilin, Senior Social Strategist, Barrett Hoffher (USA), Min Seo, Campaign Director, Brand New Agency (KR), Deshé M. Gully, Associate Strategist, Day One Agency (USA), Francesca Trevisan, Strategist, Different (IT), Trevor Crossman, CX and Digital Transformation Director; Olivia Hussey, Strategic Planner; Simi Srinarula, Social Media Manager, The Hallway (AUS), James Hebbert, Managing Director, Hylink (CN / UK), Mundy Álvarez, Planning Director; Pedro Rojas, Social Media Manager; Pancho González, CCO, Inbrax (CH), Oana Oprea, Head of Digital Planning, Jam Session Agency (RO), Amy Bottrill, Social Account Director, Launch (UK), Gaby Arriaga, Founder, Leonardo1452 (MX), Shantesh S Row, Creative Director, Liwa (UAE), Rajesh Mehta, Chief Strategy Officer; Dhruv Gaur, Digital Planning Lead; Leonie Mergulhao, Account Supervisor - Social Media & PR, Medulla (IN), Aurelija Plioplytė, Head of Digital & Social, Not Perfect (LI), Daiana Khaidargaliyeva, Account Manager, Osaka Labs (UK / USA), Stefanie Söhnchen, Vice President Digital, PIABO Communications (DE), Elisabeth Winiartati, Managing Consultant, Head of Global Integrated Communications; Lydia Aprina, Account Manager, Integrated Marketing and Communications; Nita Prabowo, Account Manager, Integrated Marketing and Communications; Okhi, Web Developer, PNTR Group (ID), Kei Obusan, Insights Director; Daffi Ranandi, Insights Manager, Radarr (SG), Gautam Reghunath, Co-founder & CEO, Talented (IN), Donagh Humphreys, Head of Social and Digital Innovation, THINKHOUSE (IRE), Sarah Yim, Strategy Director, Zulu Alpha Kilo (CA).
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
The search marketing landscape is evolving rapidly with new technologies, and professionals, like you, rely on innovative paid search strategies to meet changing demands.
It’s important that you’re ready to implement new strategies in 2024.
Check this out and learn the top trends in paid search advertising that are expected to gain traction, so you can drive higher ROI more efficiently in 2024.
You’ll learn:
- The latest trends in AI and automation, and what this means for an evolving paid search ecosystem.
- New developments in privacy and data regulation.
- Emerging ad formats that are expected to make an impact next year.
Watch Sreekant Lanka from iQuanti and Irina Klein from OneMain Financial as they dive into the future of paid search and explore the trends, strategies, and technologies that will shape the search marketing landscape.
If you’re looking to assess your paid search strategy and design an industry-aligned plan for 2024, then this webinar is for you.
5 Public speaking tips from TED - Visualized summarySpeakerHub
From their humble beginnings in 1984, TED has grown into the world’s most powerful amplifier for speakers and thought-leaders to share their ideas. They have over 2,400 filmed talks (not including the 30,000+ TEDx videos) freely available online, and have hosted over 17,500 events around the world.
With over one billion views in a year, it’s no wonder that so many speakers are looking to TED for ideas on how to share their message more effectively.
The article “5 Public-Speaking Tips TED Gives Its Speakers”, by Carmine Gallo for Forbes, gives speakers five practical ways to connect with their audience, and effectively share their ideas on stage.
Whether you are gearing up to get on a TED stage yourself, or just want to master the skills that so many of their speakers possess, these tips and quotes from Chris Anderson, the TED Talks Curator, will encourage you to make the most impactful impression on your audience.
See the full article and more summaries like this on SpeakerHub here: https://speakerhub.com/blog/5-presentation-tips-ted-gives-its-speakers
See the original article on Forbes here:
http://www.forbes.com/forbes/welcome/?toURL=http://www.forbes.com/sites/carminegallo/2016/05/06/5-public-speaking-tips-ted-gives-its-speakers/&refURL=&referrer=#5c07a8221d9b
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
Everyone is in agreement that ChatGPT (and other generative AI tools) will shape the future of work. Yet there is little consensus on exactly how, when, and to what extent this technology will change our world.
Businesses that extract maximum value from ChatGPT will use it as a collaborative tool for everything from brainstorming to technical maintenance.
For individuals, now is the time to pinpoint the skills the future professional will need to thrive in the AI age.
Check out this presentation to understand what ChatGPT is, how it will shape the future of work, and how you can prepare to take advantage.
A brief introduction to DataScience with explaining of the concepts, algorithms, machine learning, supervised and unsupervised learning, clustering, statistics, data preprocessing, real-world applications etc.
It's part of a Data Science Corner Campaign where I will be discussing the fundamentals of DataScience, AIML, Statistics etc.
Time Management & Productivity - Best PracticesVit Horky
Here's my presentation on by proven best practices how to manage your work time effectively and how to improve your productivity. It includes practical tips and how to use tools such as Slack, Google Apps, Hubspot, Google Calendar, Gmail and others.
The six step guide to practical project managementMindGenius
The six step guide to practical project management
If you think managing projects is too difficult, think again.
We’ve stripped back project management processes to the
basics – to make it quicker and easier, without sacrificing
the vital ingredients for success.
“If you’re looking for some real-world guidance, then The Six Step Guide to Practical Project Management will help.”
Dr Andrew Makar, Tactical Project Management
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
During this webinar, Anand Bagmar demonstrates how AI tools such as ChatGPT can be applied to various stages of the software development life cycle (SDLC) using an eCommerce application case study. Find the on-demand recording and more info at https://applitools.info/b59
Key takeaways:
• Learn how to use ChatGPT to add AI power to your testing and test automation
• Understand the limitations of the technology and where human expertise is crucial
• Gain insight into different AI-based tools
• Adopt AI-based tools to stay relevant and optimize work for developers and testers
* ChatGPT and OpenAI belong to OpenAI, L.L.C.
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
devsummit2009js
1. ブラウザ JavaScr ip t 高速化
JIT バトル最終決戦
12-B-5 森田創
Co m m u n it y En g in e, In c
o m o @d o d g so n .o r g
2. 本日の趣旨
J a va S c r ip t VM に使われている
高速化技法を
紹介します。
2
3. 自己紹介
森田創
勤め先 : Co mm unity Eng ine ( 株 )
●
オンラインゲームなどの開発や開発支援
オンラインゲームのミドルウェア販売
仕事 :↑ らのためにコードを書くこと
●
主に C+ + ( たまに r ub y, p ytho n, Ac t io nS c r ip t...)
●
ウェブとかよくわかんない
●
アマチュア J a va S c r ip t VM 評論家
●
↑ これでよばれた。
3
7. /speedup|optimiz/ の回数
@Saf ar i JS エンジンの ChangeLog
50
45
40
35
30
Go o g le Chr o me 登場
25
20
S a f a r i J S 刷新
15
S a f a r i リリース “ x”登場
Aja
10
5
0
02
02
03
03
04
05
05
06
06
07
07
08
/0
/1
/0
/0
/0
/0
/1
/0
/0
/0
/0
/1
6
3
0
7
2
9
4
1
1
8
5
2
/0
/0
/0
/0
/0
/0
/0
/0
/0
/0
/0
/0
7
1
1
1
1
1
1
1
1
1
1
1
1
12. ブラウザ J a v a Sc r ip t 高速化
J IT バトル最終決戦
観戦ガイド
森田創
Co m m u n it y En g in e, In c
o m o @d o d g so n .o r g
12
13. これまでのあらすじ
登場人物 VM x3
V8
●
f r o m Go o g le Chro m e
SquirrelFish Extreme
●
f r o m Ap p le S a f a ri/We b Kit
TraceM onkey
●
f r o m Mo zilla Fire f o x
が、血みどろの戦いを繰り広げていた!!!
13
14. V8 の系譜
S un から引き抜かれた
●
La r s Ba k がエース
S t r o ng ta lk VM
●
J a va Ho t s p o t VM
●
コードにも
●
S t r ong t a lk の残骸
GC
●
アセンブラ
●
14
15. SquirrelFish Extreme の系譜
J a va S c r ip tCo r e 高速化バージョン
●
バイトコード化 (“ q uirr e lFis h”
●
S )
J IT 追加 (“
●
Extre m e ”
)
KHTML/KJ S から派生
●
まだあるよ↑
●
15
16. TraceMonkey の系譜
S p id e rMo nke y
●
+
Ta m a r in Tr a c ing
And r e a s Ga l の研究成果
●
コードも書いてる
●
16
17. 決戦の舞台
V8
●
b r a nc he s /b le e d ing _e d g e r1198
S q uir re lFis h Extre me
●
t r unk r40447
Tr a c e Mo nke y
●
hg .m o zilla .o rg /tr a c e m o nke y 24328
スライド作成時の最新版
※ すべて未リリース
17
18. 本題 :JavaScript VM の高速化
J a va S c r ip t は遅い。なぜなら・・・
昔は実装をさぼっていた。
●
うざいポップアップを出せればよかった。
●
g m a il も zo ho もなかった。
●
言語仕様も割と面倒。
●
でも最近はがんばっている。
●
最終決戦ですから !
●
今日のテーマ
18
19. JSVM 高速化の戦略
J S 言語固有の面倒をとりのぞき、
●
既存 VM の高速化技法をとりいれる
●
J a va , S ma llta lk, Lis p , …
●
ウェブアプリのツボをチューンする
●
19
20. JSVM 高速化の見所3つ
J S 言語固有の面倒をとりのぞき、
●
既存 VM の高速化技法をとりいれる
●
J a va , S ma llta lk, Lis p , …
●
ウェブアプリのツボをチューンする
●
20
21. JSVM 高速化の見所3つ+1
J S 言語固有の面倒をとりのぞき、
●
既存 VM の高速化技法をとりいれる
●
J a va , S ma llta lk, Lis p , …
●
ウェブアプリのツボをチューンする
●
競合 VM への追従
●
オープンソース+宣伝熱心
●
∴ノーガードぱくり殴り合い
21
22. ここからのあらすじ
J S 言語固有の面倒 :
●
クラスがないのをどうにかする話
既存 VM 技術の応用 :
●
メソッド呼び出しの高速化の話
ウェブアプリのツボ :
●
正規表現の高速化の話
どれも三大 VM すべてが実装している
●
激戦区。
22
23. ここからのあらすじ
J S 言語固有の面倒 :
●
クラスがないのをどうにかする話
既存 VM 技術の応用 :
●
メソッド呼び出しの高速化の話ヘ
∴ã€
ウェブアプリ固有のホットスポット :
●
正規表現の高速化の話
23
30. ベンチマーク :
配列 vs. ハッシュ表 in C++
int benchmark(bool use_hash) {
const int NELEM = 100;
if (use_hash) {
std::tr1::unordered_map<int, int> obj;
for (int i=0; i<NELEM; ++i) { obj[i] = i; }
for (int i=0; i<NELEM*NELEM*NELEM; ++i)
{ int x = obj[i%NELEM]; touch(x); }
} else {
int obj[NELEM];
for (int i=0; i<NELEM; ++i) { obj[i] = i; }
for (int i=0; i<NELEM*NELEM*NELEM; ++i)
{ int x = obj[i%NELEM]; touch(x); }
}
}
int touch(int x) { volatile int y = x; }
30
39. 各 VM 上での名前
V8 では
●
Hidden Class
Tr a c e Mo nke y では
●
Shape Inf erence
S q uir re lFis h Extre me では
●
Structure Chain
どれもだいたい同じもの。
●
歴史の長さは TM > V8 > S FX
●
39
48. 復習 (2/3):
JS のメソッド呼び出し
function Greeting() {
this.hello = function() {
alert(quot;hello!quot;);
};
}
var g = new Greeting();
g.hello();
48
49. 復習 (2/3):
JS のメソッド呼び出し
function Greeting() {
this.hello = function() {
alert(quot;hello!quot;);
};
}
/ / プロパティをとりだして
/ / t h is つきで呼ぶのと同じ。
var g = new Greeting();
g.hello(); var gh = g.hello;
gh.apply(g);
49
52. 復習 (3/3) の前に・・・
C++ は静的型付けの言語
変数にクラスがある。
●
int lengthSquared(Point p) {
int x = p.x;
int y = p.y;
int xx = x*x;
int yy = y*y;
int ret = xx + xx;
return ret;
}
52
53. クラスがある=構造がわかる
int lengthSquared(Point p)
{
// pushl %ebp
// movl %esp, %ebp
int x = p.x;
// movl 12(%ebp), %edx ← 構造がわかるから
1命令でアクセスできる
int y = p.y;
// movl 8(%ebp), %eax
// leave
int xx = x*x;
// imull %edx, %edx
int yy = y*y;
// imull %eax, %eax
int ret = xx + xx;
// addl %edx, %eax
return ret;
// ret 53
}
54. 復習 (3/3)
JS は動的型付けの言語
// x と y がプロパティ
function Point(x0, y0) {
this.x = x0;
this.y = y0;
}
// name と x と y がプロパティ
function Item(name, x0, y0) {
this.name = name;
this.x = x0;
this.y = y0;
}
構造の違う二つのコンストラクタがあって・・・
54
55. 復習 (3/3)
JS は動的型付けの言語
?
// p のクラスはなに?
function lengthSquared(p) {
return p.x*p.x + p.y*p.y;
?
}
var pt
= new Point(10, 20);
var ptlensq = lengthSquared(pt);
var it
= new Item(quot;yakusouquot;, 10, 20);
var itlensq = lengthSquared(it);
55
56. 動的型付けの言語は
変数にクラス指定がない
オブジェクトごとのクラスはわかっても
●
変数のクラスは ( 調べるまで ) わからない
構造を仮定した高速化ができない
●
動的型付け言語一般の問題
●
J a va S c r ip t だけじゃない。
●
56
57. JS のプロパティアクセスは
素朴な
結局ハッシュ表検索 (+ 配列アクセス)
// 等価な C++ 風コード
// JS
var x = p.x; Object* x
= p->getProperty(X_NAME_ID);
...
Object*
Object::getProperty(int id)
{
Hash* h
= this->klass->m_propHash;
int index = h->lookup(id);
Property* p
= this->prop_array;
return p[index];
} 57
63. 予想が間違っていたら?
var pt = new Point(10, 20);
var it = new Item(quot;yakusouquot;, 10, 20);
for (var i=0; i<100; ++i) {
var p0lensq = lengthSquared(pt);
}
// こっちはたまにだよね?こっちがメインだった・・・
for (var i=0; i<100000; ++i) {
var p1lensq = lengthSquared(it);
...
}
63
64. 元のコードを書き換える !
// 等価な C++ 風コード
// JS
var x = p.x; if (p->klass == PointClass
ItemClass) {
return Point_GetX((int*)p);
return Item_GetX((int*)p);
} else {
return p->getProperty(...);
}
…
Object*
Item_GetX(int* p) {// 新たに生成
return p[2];
}
64
68. 各 VM 上での名前
V8 , S q uir r e lFis h Ext r e m e では
●
Po ly m o r p h ic In lin e Cac h in g
SELF 言語由来
●
J a va Hotspot VM でも利用
●
Tr a c e Mo nke y では
●
Tr ac e Tr ee
J a va Hotpath Re s e a r c h VM 由来
●
Tr a c ing 自体は Dynamo VM 由来
●
コアのアイデアはよく似ている
●
実現方法はちょっと違う 68
●
69. Polymorphic Inline Caching
コードの中 (Inline ) に
●
比較用のクラスを保存する (Ca c hing )
一つ以上のクラス (Po lym o r p hic ) を
●
保存する
if (p->klass == ItemClass) {
return Item_GetX((int*)p);
} else if (p->klass == PointClass) {
return Point_GetX((int*)p);
} else {
return p->getProperty(...);
}
69
70. Tracing Tree
バイトコードを実行しながら (Tr a c ing )
●
ひとつながりのネイティブコードを生成
コードがインライン化される
●
( メソッド呼び出しもインライン化 )
生成されたコード片は合流しない (Tr e e )
●
if (p->klass == ItemClass) {
return [(int*)p][2]; // inlined!
} else {
...
}
70
71. // 設定切替
ベンチマーク
var mono = false;
var n = 10000;
var arr = [];
for (var i=0; i<n; ++i) {
if (mono) {
arr.push(new Point(i, i)); mono
} else {
poly
arr.push((i%2) ? new Point(i, i) :
new Item(quot;itemquot;, i, i));
}
}
for (var i=0; i<n; ++i) {
for (var j=0; j<n; ++j) {
lengthSquared(arr[j]);
} 71
}
82. 今後の見所
ブラウザを含めたアプリの総合性能
●
FF1 1 ベンチ → g m a il ベンチ
●
モバイル機器での性能
●
消費メモリ
●
ARM CPU 向けの高速化
●
Int e rne t Exp lo re r の動向
●
今は遅すぎて話題にすらならず。
●
82
83. 観戦 HOWTO
とりあえずコードを読んでみよう
●
コア部分は 1 -2 万行程度
●
元ねたの論文を探して読もう
●
大抵コードよりわかりやすい
●
プロジェクトのブログを読もう
●
Mo zilla , We b kit, Chr o m e すべてあり
●
開発者自身のブログもあり
●
開発記録を読もう
●
ChangeLog 、 M L 、バグトラッカー
●
新機能もバグトラックで管理するのが定石
●
83
84. ブラウザ J a v a Sc r ip t 高速化
J IT バトル最終決戦
観戦ガイド
ご清聴ありがとうございました。
84
85. 写真たち
htt p ://f ic kr.c o m /p ho to s /d c jo hn/2 4 4 0 1 7 8 8 0 1 /
l
●
htt p ://f ic kr.c o m /p ho to s /s ri-h/2 8 6 6 4 5 8 7 4 7 /
l
●
htt p ://f ic kr.c o m /p ho to s /7 1 5 0 2 6 4 6 @ N0 0 /2 7 7 6 9 0 1 8 2 2 /
l
●
htt p ://f ic kr.c o m /p ho to s /a llis o nje nning s /2 5 0 3 4 1 0 2 1 3 /
l
●
htt p ://f ic kr.c o m /p ho to s /g r e e nmys t/1 4 6 8 7 6 0 7 9 1 /
l
●
85