<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Andy Li’s Blog - Python</title><link href="https://blog.onthewings.net/" rel="alternate"></link><link href="http://feeds.feedburner.com/tag/python/feed/atom.xml" rel="self"></link><id>https://blog.onthewings.net/</id><updated>2015-10-10T00:00:00+08:00</updated><entry><title>Upcoming Haxe Talks: London JavaScript Community Online Meetup and PyCon HK 2015</title><link href="https://blog.onthewings.net/2015/10/10/upcoming_haxe_talks_LondonJavaScriptCommunity_PyConHK/" rel="alternate"></link><published>2015-10-10T00:00:00+08:00</published><updated>2015-10-10T00:00:00+08:00</updated><author><name>Andy Li</name></author><id>tag:blog.onthewings.net,2015-10-10:/2015/10/10/upcoming_haxe_talks_LondonJavaScriptCommunity_PyConHK/</id><summary type="html">&lt;p&gt;This is a busy speaking year for me :) I have presented &lt;a href="http://www.silexlabs.org/continuous-integration-for-haxe-projects/"&gt;&lt;span class="caps"&gt;CI&lt;/span&gt; for Haxe projects in &lt;span class="caps"&gt;WWX&lt;/span&gt; 2015&lt;/a&gt;, and then a &lt;a href="http://2015.opensource.hk/agenda/topic/transcompiling-towards-the-freedom-of-programming-language-and-platform-choice/"&gt;HKOSCon 2015 talk on Haxe as a transcompilation technology&lt;/a&gt;. I will deliver another 2 talks in this and the follow month.&lt;/p&gt;
&lt;h2&gt;London JavaScript Community Online Meetup&lt;/h2&gt;
&lt;p&gt;I’m so …&lt;/p&gt;</summary><content type="html">&lt;p&gt;This is a busy speaking year for me :) I have presented &lt;a href="http://www.silexlabs.org/continuous-integration-for-haxe-projects/"&gt;&lt;span class="caps"&gt;CI&lt;/span&gt; for Haxe projects in &lt;span class="caps"&gt;WWX&lt;/span&gt; 2015&lt;/a&gt;, and then a &lt;a href="http://2015.opensource.hk/agenda/topic/transcompiling-towards-the-freedom-of-programming-language-and-platform-choice/"&gt;HKOSCon 2015 talk on Haxe as a transcompilation technology&lt;/a&gt;. I will deliver another 2 talks in this and the follow month.&lt;/p&gt;
&lt;h2&gt;London JavaScript Community Online Meetup&lt;/h2&gt;
&lt;p&gt;I’m so glad to be invited by the &lt;a href="http://www.meetup.com/London-JavaScript-Community/"&gt;London JavaScript Community&lt;/a&gt; to deliver a talk via video stream next week. It will be an online meetup, which means everyone will be free to join without geographic constraint. My talk will target people who are interested in web development, particularly in front-end, JavaScript-related technologies. I will introduce Haxe with a focus in its &lt;span class="caps"&gt;JS&lt;/span&gt; target.&lt;/p&gt;
&lt;p&gt;The talk will be hosted on 15th October (Thursday) at 12:30pm &lt;span class="caps"&gt;UK&lt;/span&gt; time (&lt;a href="http://www.wolframalpha.com/input/?i=15th+October+12%3A30pm+UK+time+to+local+time"&gt;convert to your timezone here&lt;/a&gt;). Sign up in the &lt;a href="http://www.meetup.com/London-JavaScript-Community/events/224686660/"&gt;online meetup event page&lt;/a&gt; if you’re interested. Don’t forget to invite your friends too ;)&lt;/p&gt;
&lt;h2&gt;PyCon &lt;span class="caps"&gt;HK&lt;/span&gt; 2015&lt;/h2&gt;
&lt;p&gt;I’m also glad to announce that my talk proposal has been accepted by &lt;a href="http://2015.pycon.hk/"&gt;PyCon &lt;span class="caps"&gt;HK&lt;/span&gt; 2015&lt;/a&gt;, which is the first PyCon in Hong Kong. My Haxe talk will also be introductory, but obviously will shift the focus to the Haxe Python target. I will demonstrate how to interop between Haxe and Python, to utilize the rich and solid scientific Python libraries in the modern, statically-typed Haxe language, using some simple examples of data analysis and visualization.&lt;/p&gt;
&lt;p&gt;PyCon &lt;span class="caps"&gt;HK&lt;/span&gt; 2015 will be held on 7-8 November 2015 (Saturday-Sunday) in Hong Kong Cyberport. My talk will be on day two, 15:40 - 16:20 (&lt;a href="http://2015.pycon.hk/schedule/"&gt;schedule&lt;/a&gt;). &lt;a href="https://www.eventbrite.com/e/pycon-hong-kong-2015-tickets-15794599071"&gt;Buy a ticket&lt;/a&gt; if you’re interested to attend.&lt;/p&gt;</content><category term="Haxe"></category><category term="JS"></category><category term="Python"></category><category term="talk"></category></entry><entry><title>Improving Haxe Syntax Highlighting Support of Pygments</title><link href="https://blog.onthewings.net/2013/02/26/improving-haxe-syntax-highlighting-support-of-pygments/" rel="alternate"></link><published>2013-02-26T02:00:00+08:00</published><updated>2013-02-26T02:00:00+08:00</updated><author><name>Andy Li</name></author><id>tag:blog.onthewings.net,2013-02-26:/2013/02/26/improving-haxe-syntax-highlighting-support-of-pygments/</id><summary type="html">&lt;p&gt;3 months ago I have started to rewrite the Haxe laxer in &lt;a href="http://pygments.org/"&gt;Pygments&lt;/a&gt;,
which is a syntax highlighter written in Python, used in both &lt;a href="https://github.com/"&gt;Github&lt;/a&gt;
and &lt;a href="https://bitbucket.org/"&gt;Bitbucket&lt;/a&gt;. Pygments included initial Haxe support back in 2010,
but sadly is not complete. Haxers should have seen some broken
highlighting like the following …&lt;/p&gt;</summary><content type="html">&lt;p&gt;3 months ago I have started to rewrite the Haxe laxer in &lt;a href="http://pygments.org/"&gt;Pygments&lt;/a&gt;,
which is a syntax highlighter written in Python, used in both &lt;a href="https://github.com/"&gt;Github&lt;/a&gt;
and &lt;a href="https://bitbucket.org/"&gt;Bitbucket&lt;/a&gt;. Pygments included initial Haxe support back in 2010,
but sadly is not complete. Haxers should have seen some broken
highlighting like the following:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Poor old haxe syntax highlight in Github" src="/files/2013/512b98bb9d29c91162000063.jpeg"/&gt;&lt;/p&gt;
&lt;p&gt;Surely it is less than optimal, so I fixed it as the following:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Great new improved Haxe syntax highlighting" src="/files/2013/512b99d39d29c97d6f00007c.jpeg"/&gt;&lt;/p&gt;
&lt;p&gt;Looks nice? I also took the chance to include 100% &lt;a href="http://haxe.org/manual/haxe3"&gt;Haxe 3&lt;/a&gt; support
(and still backward compatible for highlighting Haxe2 code), which
includes &lt;a href="http://haxe.org/manual/comprehension"&gt;Array/Map comprehension&lt;/a&gt;, &lt;a href="http://haxe.org/manual/modules#import"&gt;import wildcard&lt;/a&gt;,
&lt;a href="http://haxe.org/manual/macros#macro-reification"&gt;macro-reification&lt;/a&gt; and even &lt;a href="http://haxe.org/manual/string_interpolation"&gt;string interpolation&lt;/a&gt;! In fact I’ve
tested &lt;span class="caps"&gt;ALL&lt;/span&gt; 1589 Haxe source files appeared in the source of Haxe,
including the core std library of Haxe and its unit test files. So it
is guaranteed to be as complete as possible, supporting all tiny Haxe
features you may have never noticed (and I myself indeed learned a few
tricks and even detected some typos in the Haxe std lib when running the test!).&lt;/p&gt;
&lt;p&gt;I’ve made &lt;a href="https://bitbucket.org/birkenfeld/pygments-main/pull-request/174/rewrote-the-haxe-lexer-and-haxe-30-support"&gt;a pull request to Pygments&lt;/a&gt;, which hopefully they will
merge it soon. But even when they’ve merged it, it will still take some
time to let the Github guys updates their internal Pygments. But don’t
be sad, the future is here: I created a Chrome extension, &lt;a href="https://chrome.google.com/webstore/detail/pygmentx/ckkmmhhaihbeiemghplgkhkgdgdjnddl"&gt;Pygmentx&lt;/a&gt;,
that replace the Haxe codes on Github (and &lt;a href="https://gist.github.com/"&gt;Gist&lt;/a&gt;) with the improved
one. It only supports the normal file view at the moment, not diff view
nor the previews on Gist user page at the moment. &lt;span class="caps"&gt;BTW&lt;/span&gt;, thanks Tong
(a.k.a disktree) again for his &lt;a href="https://github.com/tong/chrome.extension"&gt;chrome.extension&lt;/a&gt; Haxe externs ;)&lt;/p&gt;</content><category term="Haxe"></category><category term="Python"></category></entry></feed>