Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

November 08 2013

Michel Fortin – PHP Markdown Extra

Michel Fortin – PHP Markdown Extra

une extension du parseur PHP Markdown qui permet d’utiliser de nombreux éléments supplémentaires : tableuax, notes de bas de page, abbréviations

#markdown #php #parseur #extension

December 14 2011

Four short links: 14 December 2011

  1. The HipHop Virtual Machine (Facebook) -- inside the new virtual machine for PHP from Facebook.
  2. PHP Fog's Free Thinkup Hosting (Expert Labs) -- ThinkUp archives your tweets and other social media activity for you to search, visualize, and analyze. PHPFog hosts PHP apps scalably, and I'm delighted to be an advisor. Andy's made a video showing how to get up and running with ThinkUp in 3m. (This is impressive given how long I squinted at ThinkUp and swore trying to get it going on my colo box just a year ago)
  3. The Secret Lives of Links (Luke Wroblewski) -- notes on a talk by Jared Spool. On the Walgreen’s site, 21% of people go to photos, 16% go to search, 11% go to prescriptions, 6% go to pharmacy link, 5% go to find stores. Total traffic is 59% for these five links. The total amount of page used for these 5 links is ~4% of page space. The most important stuff on the page occupies less than 1/20th of the page. This violates Fitts's Law. Makes me think of the motor and sensory homunculi.
  4. VC Memes -- the success kid is my favourite, I think.

Sponsored post

April 19 2011

Four short links: 19 April 2011

  1. Lines (Mark Jason Dominus) -- If you wanted to hear more about phylogeny, Java programming, or tree algorithms, you are about to be disappointed. The subject of my article today is those fat black lines. Anatomy of a clever piece of everyday programming. There is no part of this program of which I am proud. Rather, I am proud of the thing as a whole. It did the job I needed, and it did it by 5 PM. Larry Wall once said that "a Perl script is correct if it's halfway readable and gets the job done before your boss fires you." Thank you, Larry.
  2. PHP Clone of Panic Status Board (GitHub) -- The Panic status board shows state of downloads, servers, countdown, etc. It's a dashboard for the company. This PHP implementation lets you build your own. (via Hacker News)
  3. The Management Myth (The Atlantic) -- a philosophy PhD gets an MBA, works as management consultant, then calls bullshit on the whole thing. Taylorism, like much of management theory to come, is at its core a collection of quasi-religious dicta on the virtue of being good at what you do, ensconced in a protective bubble of parables (otherwise known as case studies). (via BoingBoing)
  4. Obsolete Technology -- or, as I like to think of it, post-Zombie-apocalypse technology. Bone up on your kilns if you want your earthen cookware once our undead overlords are running (or, at least, lurching) the country. (via Bruce Sterling)

December 22 2010

Developer Year in Review: Programming Languages

Continuing our look at the year in development, let's move on to the exciting land of languages. We'll finish off next week with operating systems.

Java: Strategic asset or red-headed stepchild?

Watching Oracle's machinations around Java can be more than a little confusing. One minute, they're talking about forking it into free and commercial versions, a potential slap in the face to the open source community. Then they refused to let Apache's Harmony project have access to key testing suites to certify the Java alternative. But then Oracle ended the year on their hands and knees begging Apache to stay in the JCP (and failing).

Meanwhile, we saw yet another "that's not really Java" lawsuit. This time Oracle was suing Google over the Android implementation. Evidently, having Bill Gates and Steve Ballmer as dire enemies wasn't good enough for Larry Ellison, so he's trying to add Sergey Brin and Larry Page to his list as well.

On a side note, has anyone noticed how Java basically took over the mobile space? Of the three major smartphone platforms (sorry Windows, you have a ways to go before you make that list again ...), two of them run Java of some sort. If you add in J2ME, which is inside many of the "clamshell" phones, Java is the dominant player in mobile.

It was also a good year for the JVM, as JVM-powered languages such as Closure, Groovy and Scala leveraged the omnipresence of Java to gain traction.

I see your 8 cores, and raise you 8

Functional programming considers to gain in popularity in the years ahead, mainly as programmers try to come to terms with how to leverage all the multi-threaded power available to them in modern hardware. Along with the aforementioned Scala, Erlang and Haskell have also seen commercial deployments increase.

Francesco Cesarini gave a great talk at OSCON on how Erlang can help developers. Unfortunately, there was no transcript, because it had no side effects. (Trust me, the functional programmers in the readership are falling over laughing.)

In other language news ...

Perl: Perl 6 still lags "Duke Nukem Forever" as far as being promised software still awaiting final shipment, but only by three years.

PHP: With adding PHP to their language arsenal, you can now run PHP on all the major cloud-based platforms (the others being Amazon, Windows and Google.)

Ruby: No new major version of Ruby this year, nor any earth-shattering news, but it continues to be the language that all the cool kids use.

Python: Release 3.2 is on track for a Q1 2011 release. "Python" is also a lousy word to put into a Google News search, unless you enjoy reading about people smuggling snakes through customs and DPW workers making unexpected discoveries in sewers.

That's it for this week. I'll take a look at the year in operating systems in the next edition. Suggestions are always welcome, so please send tips or news here.


June 21 2010

Four short links: 21 June 2010

  1. Law of Success 2.0 -- a blog of interviews with famous and/or interesting people, from Brad Feld to Uri Geller.
  2. Pioneer One -- crowdsourced funding for TV show, perhaps a hint of the future. Pilot shot for $6,000 which was raised through KickStarter. Distributed via BitTorrent.
  3. DrasticTools -- PHP/MySQL visualisation tools, including TreeMap, tag cloud, hierarchical bar chart, and animated list. (via TomC on Delicious)
  4. GoogleCL -- command-line interface to Google services. At the moment the services are Picasa, Blogger, YouTube, Contacts, Docs, and Calendar.

February 03 2010

What Facebook's HipHop means for developers and businesses

Facebook HipHop for PHPFacebook's PHP overhaul, HipHop, reportedly cut CPU usage on the company's servers by around 50 percent. You don't have to be a programmer to understand that kind of result.

Facebook says it wants to share that efficiency -- and presumably influence a few things along the way -- so it's setting HipHop loose as an open source project. I asked Kevin Tatroe, co-author of O'Reilly's Programming PHP, to weigh in on HipHop's functionality and its broader applications.

Mac Slocum: How will HipHop help programmers?

Kevin Tatroe: One of PHP's greatest strengths is its expansive leniency. But for very large code bases, it can also be somewhat problematic. For example, while you can change the type of data stored in a variable mid-script, I'd wager that the vast majority of the time, it's a mistake.

Those are the kinds of things HipHop's analysis and type inference steps will find. For that reason, I can even see running sites through HipHop that don't need footprint savings, just as a sanity check.

MS: How about businesses that rely on PHP. Does HipHop offer them any utility?

KT: Certainly. At its best, PHP scales very well by running on teeming hordes of cheap servers. As great as that strategy has turned out to be, running on half as many teeming hordes of cheap servers has clear benefits in deployment costs and costs to maintain.

There's also benefits at the other end of the scale. I've seen more companies than I can count stick with one deployment server when they really ought to be scaling up to two or three. There's a "leap of faith" barrier there. Companies say: "Obviously, we can't deploy on zero servers, so one seems fine. But two? We're just a small operation. Can't you make your code work better?"

MS: Facebook calls HipHop a "source code transformer." In plain terms, what is that?

KT: It takes the PHP code written by PHP programmers and converts it to C++ code, which is then compiled by g++ into machine code.

In doing so, it has to disallow certain PHP language features, like eval(). And it runs a pass to determine what type each variable in your PHP code should be in C++.

PHP does not require you to state up front what kind of data you're going to store in a variable. It lets you change the type of data stored in a given variable willy-nilly, which is not necessarily the best idea.

MS: Facebook says HipHop reduced CPU load on its servers by about 50 percent. Any idea how it does that?

KT: Running native, compiled C++ takes less processing effort to run than PHP's scripts via an opcode virtual machine (such as using Zend Engine). That's because it's skipping the virtual machine entirely.

It's telling that Facebook didn't mention any HipHop speed increases. It'd be surprising if there weren't any measurable speed improvements, but their primary focus seems to be: use less cheap hardware to run the same site.

MS: How easy -- or hard -- do you think it will be for other companies to take advantage of HipHop?

KT: This all depends on the tools. Certainly, any organization with deployments large enough to really notice much out of this will have devs comfortable with the more traditional "write, compile, test, deploy" cycle.

PHP also attracts a large percentage of folks who've never had to compile anything in their lives. But these same people aren't necessarily afraid of the command line. If the tools are simple enough that people aren't scared off, it should be pretty simple to get a site up and running using HipHop.

Note: Kevin's comments were condensed and edited from a longer interview.

Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.
No Soup for you

Don't be the product, buy the product!

YES, I want to SOUP ●UP for ...