Haxe × Unicode
Ryusei Yamaguchi @mandel59
Haxe Inoducon
looks like AconScript

with many features including…

paern matching

pe inference

generalized algebraic data pes
Various Targets
class Hello {
public static function main() {
trace("Hello, 世界🌏".length);
}
}
Hello, Unicode
What⁉
Target-dependent
Behavior
class Hello {
public static function main() {
trace("Hello, 世界🌏".length);
}
}
1117 10
Internal Character
Encoding Forms
A Я か
0000
0041
0000
042F
0000304B 00029E3D
0041 042F 304B D867 DE3D
41 D0 AF E3 81 8B F0 A9 B8 BD
Indexing Methods
By Code Points
A Я か
0 1 2 3
By Code Units (UTF-8)
41 D0 AF E3 81 8B F0 A9 B8 BD
0 1 2 3 4 5 6 7 8 9
By Code Points
A Я か
0 1 2 3
By Code Units (UTF-8)
41 D0 AF E3 81 8B F0 A9 B8 BD
0 1 2 3 4 5 6 7 8 9
Indexing Methods
s.substr(2, 2)
s.substr(3, 7)
Specificaons
Target Internal CEF Indexing
Macro
UTF-8
By Code Units
C++
Neko
PHP
Flash
UTF-16
C#
Java
JavaScript
Python 3 N/A By Code Points
Target Internal CEF Indexing
Haxe Macro
UTF-8
By Code Units
C++
Neko
PHP
Flash
UTF-16
C#
Java
JavaScript
Python 3 N/A By Code Points
Specificaons
11
17
10
How about

the present API?
Issue #3072

Unicode support
https://github.com/HaxeFoundation/haxe/issues/3072#issue-34554043
haxe.Utf8
provides methods for UTF-8

indexing by code points

NOT ue cross platform API
haxe.Utf8
decode converts om UTF-8 to
ISO-8859-1

encode converts oppositely

both have Sing -> Sing pe
haxe.Utf16
NOT IMPLEMENTED YET
haxe.Ucs2
UCS-2 is deprecated now

lack of surrogate pairs support

What called as “UCS-2” is actually
potenally ill-formed UTF-16

We MUST support UTF-16
encode/decode model
Nave Sing haxe.Ucs2
decode
process
haxe.Ucs2
encode
Nave Sing
too complecated…

hard to ansfer om legacy codes
Unifill
Unifill model
Nave Sing
process with Unifill methods
Nave Sing intuive!

easy to ansfer

usable without knowledge
Unifill
using unifill.Unifill;
class Hello {
public static function main() {
trace("Hello, 世界🌏”.uLength());
}
}
1010 10
TODO
Propose Unifill to the Haxe API

Present API is insufficient

Refine the implementaon

Speed

Usabili
ank you!

More Related Content

PDF
CBSE Question Paper Computer Science with C++ 2011
PDF
Sample Paper 2 Class XI (Computer Science)
PDF
CS50 Lecture4
PPTX
Data Applied:Outliers
PPTX
Ast 09
PPTX
C Programming Training in Ambala ! Batra Computer Centre
PDF
50120130405006
PPTX
C++ via C#
CBSE Question Paper Computer Science with C++ 2011
Sample Paper 2 Class XI (Computer Science)
CS50 Lecture4
Data Applied:Outliers
Ast 09
C Programming Training in Ambala ! Batra Computer Centre
50120130405006
C++ via C#

What's hot (19)

PPTX
Mono + .NET Core = ❤️
PPT
(02) c sharp_tutorial
PPT
Chapter1 intro toprincipleofc#_datastructure_b_cs
PPTX
built in function
PPTX
Dag representation of basic blocks
PDF
Flow Control
PPTX
Generating code from dags
PPS
C language
DOCX
PDF
Unmanaged Parallelization via P/Invoke
PDF
Empty Base Class Optimisation, [[no_unique_address]] and other C++20 Attributes
DOCX
Cs6660 compiler design may june 2017 answer key
PDF
Python 如何執行
PPT
Intermediate code generation (Compiler Design)
PPTX
Let's talks about string operations in C++17
PPT
Intermediate code generation
PDF
Cs2303 theory of computation november december 2015
DOCX
Cs6660 compiler design november december 2016 Answer key
PPTX
Egor Bogatov - .NET Core intrinsics and other micro-optimizations
Mono + .NET Core = ❤️
(02) c sharp_tutorial
Chapter1 intro toprincipleofc#_datastructure_b_cs
built in function
Dag representation of basic blocks
Flow Control
Generating code from dags
C language
Unmanaged Parallelization via P/Invoke
Empty Base Class Optimisation, [[no_unique_address]] and other C++20 Attributes
Cs6660 compiler design may june 2017 answer key
Python 如何執行
Intermediate code generation (Compiler Design)
Let's talks about string operations in C++17
Intermediate code generation
Cs2303 theory of computation november december 2015
Cs6660 compiler design november december 2016 Answer key
Egor Bogatov - .NET Core intrinsics and other micro-optimizations
Ad

Similar to Haxe vs Unicode (en) (9)

PDF
Lexyacc
PDF
PDF
expect("").length.toBe(1)
PDF
My 10 favorite haxe language features in 30 mins
PDF
Talk Lund University CS Department
PDF
Unicode & PHP6
PDF
The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6
PDF
Why Extension Programmers Should Stop Worrying About Parsing and Start Thinki...
PDF
Haxe by sergei egorov
Lexyacc
expect("").length.toBe(1)
My 10 favorite haxe language features in 30 mins
Talk Lund University CS Department
Unicode & PHP6
The Good, the Bad, and the Ugly: What Happened to Unicode and PHP 6
Why Extension Programmers Should Stop Worrying About Parsing and Start Thinki...
Haxe by sergei egorov
Ad

Recently uploaded (20)

PPTX
"Secure File Sharing Solutions on AWS".pptx
PDF
Website Design Services for Small Businesses.pdf
PDF
Topaz Photo AI Crack New Download (Latest 2025)
PDF
CCleaner 6.39.11548 Crack 2025 License Key
PDF
Microsoft Office 365 Crack Download Free
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PPTX
Introduction to Windows Operating System
PPTX
assetexplorer- product-overview - presentation
DOCX
How to Use SharePoint as an ISO-Compliant Document Management System
PDF
Visual explanation of Dijkstra's Algorithm using Python
PDF
Wondershare Recoverit Full Crack New Version (Latest 2025)
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PDF
Designing Intelligence for the Shop Floor.pdf
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
Time Tracking Features That Teams and Organizations Actually Need
PDF
AI Guide for Business Growth - Arna Softech
DOCX
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
PPTX
Computer Software - Technology and Livelihood Education
"Secure File Sharing Solutions on AWS".pptx
Website Design Services for Small Businesses.pdf
Topaz Photo AI Crack New Download (Latest 2025)
CCleaner 6.39.11548 Crack 2025 License Key
Microsoft Office 365 Crack Download Free
Oracle Fusion HCM Cloud Demo for Beginners
Introduction to Windows Operating System
assetexplorer- product-overview - presentation
How to Use SharePoint as an ISO-Compliant Document Management System
Visual explanation of Dijkstra's Algorithm using Python
Wondershare Recoverit Full Crack New Version (Latest 2025)
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
Advanced SystemCare Ultimate Crack + Portable (2025)
Designing Intelligence for the Shop Floor.pdf
Why Generative AI is the Future of Content, Code & Creativity?
Time Tracking Features That Teams and Organizations Actually Need
AI Guide for Business Growth - Arna Softech
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
Computer Software - Technology and Livelihood Education

Haxe vs Unicode (en)