Profile

Cover photo
Alex Rønne Petersen
Works at The Lycus Foundation
Attends University College North
Lives in Aalborg Øst, Denmark
25 followers|9,942 views
AboutPosts+1's

Stream

Alex Rønne Petersen

Shared publicly  - 
The D programming language has the concept of a slice. Slices are a neat way to do data processing with arrays but have a fundamental flaw, related to garbage collection, that I’ll explain he...
1
Add a comment...

Alex Rønne Petersen

Shared publicly  - 
 
I apparently forgot to post this here back when I wrote it: http://xtzgzorex.wordpress.com/2012/10/11/demystifying-garbage-collectors/
There seems to be a lot of confusion among developers on how garbage collectors actually work. They really aren’t as magical as some people think; in many ways, some garbage collectors are ac...
1
Add a comment...

Alex Rønne Petersen

Shared publicly  - 
 
I hate how Google+ keeps claiming I have unread notifications. I don't, grr.
1
Add a comment...

Alex Rønne Petersen

Shared publicly  - 
 
"Welcome to Google+"? What? Pretty sure I've been using this since forever.
1
Add a comment...

Alex Rønne Petersen

Shared publicly  - 
 
Blogged: Life: Status Update (actually slightly old but I forgot to post on G+)
I really don't blog about my life often, but a lot of interesting stuff has been happening lately that I'd like to share. First, I've just become an intern at Xamarin. I'll be working on the doc......
1
Add a comment...

Alex Rønne Petersen

Shared publicly  - 
 
So, when planning my JIT/compiler infrastructure project, I considered five languages: C, C++, C#, F#, D. I initially wrote it in C#, which quickly turned out to be a pain, mostly because of the restrictions .NET and Mono impose: You can't use signals because it would disrupt the runtime itself. I then thought about using C, but quickly turned away from this idea, because it wouldn't be very convenient for a tree object model (and generally for a sane API). C++ seemed like the ideal thing to pick then (despite the language's terribleness in general), but that also turned out to be a nightmare due to virtually everything being undefined or implementation-defined. That was when I discovered D: C(++) done right. I'm now writing this thing in D and so far, I'm very pleased.

Before all those languages, however, I considered using F#. I love the expressiveness of functional languages, and I love pure and safe code. But I'm not quite sure a functional language is the right tool for the job when it comes to something as low-level as a JIT compiler. (I can certainly see F# being useful for the compiler infrastructure though.) JITting is inherently unsafe and impure because it involves mutating shared memory. You generally have to work against the functional mindset here. Furthermore, there's the issue of performance: Pure functional code doesn't necessarily perform well (this obviously depends on the actual code). In F#, we fortunately have the mutable keyword for cases where we have to squeeze out every drop of performance, but all things considered, a JIT and a GC will need every drop. This leads me to think that there wouldn't be much advantage in using a functional language for this project; I think I'd end up working against the language rather than with it. Languages like C or D seem better for these things.

(This was a bit of a brain dump. I hope it makes sense.)

What do you folks think? Is my assessment regarding functional languages and tools like JIT compilers/GCs reasonable? Am I overlooking something? I just want to make sure I'm not making functional languages seem worse than they are for these tasks.
1
Add a comment...

Alex Rønne Petersen

Shared publicly  - 
 
I think the C++ community is probably the most arrogant of all. That might be a stereotype, but empirically, it's true.
1
Ed Chen's profile photo
Ed Chen
 
They have such a haughty attitude. It annoys the hell out of me.
Add a comment...
Have him in circles
25 people
halima akter's profile photo
Morten Klim Sørensen's profile photo
Nolan Lum's profile photo
Alex Regueiro's profile photo
Troy Spjute's profile photo
James Montemagno's profile photo
Daniel Mohl's profile photo
Jérémie Laval's profile photo
Reno Romanin's profile photo

Alex Rønne Petersen

Shared publicly  - 
So, I’ve been implementing the Secure Remote Password protocol (SRP) for a game project I’m working on. As you can see on the protocol design page, the protocol needs two values, N and ...
1
Add a comment...

Alex Rønne Petersen

Shared publicly  - 
 
I haven’t blogged in a while. Let’s fix that! So, I’ve been programming a lot in D lately, which means systems programming, which means pointers! Pointers are amazing. You can do ...
2
Mauricio Scheffer's profile photo
 
I'd love to read more about D! Maybe comparing specific examples in C++ or .NET languages and how you'd do it in D...
Add a comment...

Alex Rønne Petersen

Shared publicly  - 
 
Svyatoslav Kuzmich originally shared:
 
Hi coders,

Hooray!
I will teach a programming course for beginners in my university this year.
A small part of this course will be studying version control systems.
And now I'm thinking what to choose:

1. SVN:
- easy to learn the basics because of centralized architecture;
- the most popular.

2. GIT:
- have more advantages because of not centralized;
- no need to re-study a lot about other version control systems;
- my favorite.

What do you think will be better for beginners?
1
Add a comment...

Alex Rønne Petersen

Shared publicly  - 
 
Blogged: GSoC and the State of ILAsm
GSoC 2011 is now officially over, and I figure I should write some sort of status post. First of all, the project is not completely done. I had anticipated this early on, and discussed with JB w......
1
Add a comment...
People
Have him in circles
25 people
halima akter's profile photo
Morten Klim Sørensen's profile photo
Nolan Lum's profile photo
Alex Regueiro's profile photo
Troy Spjute's profile photo
James Montemagno's profile photo
Daniel Mohl's profile photo
Jérémie Laval's profile photo
Reno Romanin's profile photo
Work
Occupation
Software engineering and computer science study.
Employment
  • The Lycus Foundation
    Compiler Engineer, 2011 - present
  • Ignite Interactive Studio
    Software Developer, 2008 - 2012
  • Xamarin
    Documentation Build Engineer, 2011 - 2012
  • Mono Project
    Google Summer of Code Student, 2011 - 2011
  • Mono Project
    Google Summer of Code Mentor, 2012 - 2012
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Aalborg Øst, Denmark
Previously
Thisted, Denmark - Hanstholm, Denmark
Story
Tagline
Seeing Sharp
Introduction
F#/Elixir/D/Rust/C programmer. Interested in language design, compilers, VMs, GCs, and concurrency.
Education
  • University College North
    Computer Science (AP), 2011 - present
Basic Information
Gender
Male
Birthday
February 28, 1993
Other names
Zor
Alex Rønne Petersen's +1's are the things they like, agree with, or want to recommend.