RSS feed [root] /languages /weblog




login:

password:

title search:




 

Mon Sep 06 02:21:19 HKT 2010

languages



(google search) (amazon search) second
download here

Thu Sep 09 01:41:41 HKT 2010 From /weblog/languages/c

optimization


Optimizing Pixomatic for x86 Processors part II

http://www.ddj.com/architect/184405765
http://www.ddj.com/184405807
http://www.ddj.com/184405848
http://www.home.comcast.net[..]tom_forsyth/papers/pixomatic_gdc2004.ppt

Fast way to add null after each char from a string - http://groups.google.com[..]wse_thread/thread/51d0f84dd22ad734?hl=en


(google search) (amazon search)


Thu Sep 09 01:37:59 HKT 2010 From /weblog/languages/c

cuda


C library that allow programmer use the power of NVIDIA GPUs

http://www.nvidia.com/object/cuda_home.html
http://www.ddj.com[..]articleID=207200659&dept_url=/architect/
http://www.ddj.com[..]ept_url=/hpc-high-performance-computing/
http://www.ddj.com[..]ept_url=/hpc-high-performance-computing/

CUDA Data Parallel Primitives Library - http://www.ddj.com[..]ept_url=/hpc-high-performance-computing/

CUDA tutorial - http://www.ddj.com/architect/207200659



(google search) (amazon search)



Mon Sep 06 02:21:19 HKT 2010 From /weblog/languages

assembly


Introduction to x64 Assembly - http://software.intel.com[..]us/articles/introduction-to-x64-assembly

(google search) (amazon search)


Fri Apr 23 01:53:10 HKT 2010 From /weblog/languages/c

system


Give hint to kernal about how use swap memory - http://linux.die.net/man/2/madvise

Recursive ls - http://synesis.com.au/software/recls/

Socket programming tutorial - http://www.codedanger.com/caglar/?p=210

Discussion about making flush() reliable - http://groups.google.com[..]wse_thread/thread/71da1187ec3b0445?hl=en

(google search) (amazon search)


Sat Apr 17 18:30:40 HKT 2010 From /weblog/languages/c

misc


Interesting idea, integrate C and lisp - http://voodoo-slide.blogspot.com/2010/01/amplifying-c.html

How to prevent code duplication in C - http://groups.google.com[..]read/thread/b4d029524579944e?hl=en&pli=1

Why need header - http://stackoverflow.com[..]7/why-does-c-need-a-separate-header-file

How to monitor file usage - http://www.thegeekstuff.com/2010/04/inotify-c-program-example

(google search) (amazon search)


Thu Jan 21 01:18:27 HKT 2010 From /weblog/languages/c

concurrency


Comparing OpenMP and Intel TBB - http://www.ddj.com[..]UQSNDLPCKHSCJUNN2JVN?articleID=214303519

Tutorial about TBB - http://software.intel.com[..]es-with-intel-threading-building-blocks/

Multi-thread optimzated malloc - http://groups.google.com[..]wse_thread/thread/c1ec1fa08c744a8c?hl=en

Introduction to 2 static analysis tool to check OpenMP potential issue, like racing condition - http://software.intel.com[..]tudio-vivamp-and-intel-cc-parallel-lint/

Light weigth lock provide by Linux kernal - http://lwn.net/Articles/360699/

http://software.intel.com[..]uilding-blocks-openmp-or-native-threads/

(google search) (amazon search)


Tue Dec 01 11:22:04 HKT 2009 From /weblog/languages

Erlang


Concurrency is an area where Erlang shines - http://www.sics.se/~joe/apachevsyaws.html http://www.cincomsmalltalk.com[..]gView?showComments=true&entry=3364027251

And then, note the flatness of Erlang CPU-time curves and decent C (coroutine) performance compared to abysmal Java 6 and C++ (Pthreads) data in this benchmark - http://shootout.alioth.debian.org[..]ge&p1=hipe-2&p2=gpp-2&p3=gcc-2&p4=java-0

Another article about Erlang, contains pointers to useful site and reference large scale project - http://www.ddj.com[..]201001928?cid=RSSfeed_DDJ_ArchitectDebug http://www.infoq.com[..]2007/08/erlang-java-for-concurrent-futur http://www.ddj.com[..]og/archives/2007/10/functional_prog.html

Mnesia , DBMS powered by Erlang - http://www.infoq.com/news/2007/08/mnesia

Comment of OO from Joe Armstrong, http://www.sics.se/~joe/bluetail/vol1/v1_oo.html , that tell why Erlang look like this, and why me and my college feel uncomfortable with it....

Some issues of Erlang - http://www.artima.com/forums/flat.jsp?forum=276&thread=226786

Map reduce at Erlang - http://horicky.blogspot.com[..]/06/exploring-erlang-with-mapreduce.html

(google search) (amazon search)


Mon Nov 23 13:14:40 HKT 2009 From /weblog/languages

smalltalk


Free tutorial - http://www.iam.unibe.ch/~ducasse/FreeBooks.html http://squeak.preeminent.org/tut2007/html/index.html

History - http://users.ipa.net[..]/design_principles_behind_smalltalk.html

VirualBox image for smalltalk collection of software - http://www.schrievkrom.de/blog/?p=667

(google search) (amazon search)


Mon Nov 23 13:09:32 HKT 2009 From /weblog/languages

go


How go utilizing-multi-core

package main

import "runtime"

func calc()
{
sum := 0;
for i := 0; ; i++ {
sum += i;
}
}

func main()
{
runtime.GOMAXPROCS(4);
go calc();
go calc();
go calc();
go calc();
go calc();
go calc();
go calc();
calc();
}


http://kzk9.net[..]g-multi-core-in-go-programming-language/

(google search) (amazon search)


Fri Sep 11 00:26:57 HKT 2009 From /weblog/languages

haskell


http://donsbot.wordpress.com[..]l-programming-in-haskell-a-reading-list/

(google search) (amazon search)


Mon Jul 06 03:17:41 HKT 2009 From /weblog/languages/c

compiler


Template variable name lookup explain - http://groups.google.com[..]+/browse_thread/thread/e8755b9cb8f0fd61#



(google search) (amazon search)


Fri Mar 06 02:15:08 HKT 2009 From /weblog/languages/c

profiler


gprof - http://www.ibm.com/developerworks/library/l-gnuprof.html

(google search) (amazon search)


Tue Feb 17 10:29:23 HKT 2009 From /weblog/languages/c

memory issue


We have a process running fine for several years and recently have core dump everytime starting it up. here is the stacktrace:

(gdb) backtrace
#0 0xfe34251c in realfree () from /lib/libc.so.1
#1 0xfe342e28 in cleanfree () from /lib/libc.so.1
#2 0xfe341f5c in _malloc_unlocked () from /lib/libc.so.1
#3 0xfe341e50 in malloc () from /lib/libc.so.1
#4 0xfe38f534 in _findbuf () from /lib/libc.so.1
#5 0xfe384f38 in _doprnt () from /lib/libc.so.1
#6 0xfe3886fc in fprintf () from /lib/libc.so.1
#7 0x164f64 in _ZN7LogBook8WriteLogEPcS0_i (this=, pType=0x5c00e8 "INFO",
pMsg=0x6b0b14 "main. Database=XXXXXX. Performing Login to XXXX. user=SYSTEM.", nFile=0) at Util.cpp:164
#8 0x164e28 in _ZN7LogBook9PromptLogEPciS0_i (this=, pType=0x5c00e8 "INFO",
nType=3, pMsg=0x0, nFile=0) at Util.cpp:136
#9 0x14a364 in main (argc=3, argv=0xffbef5bc) at XXXX.cpp:385
(gdb)

Eventaully we found out the reason is the class LogBook is singleton, and it reuse few char* buffer internally, without delete and new in between, after adding delete and new for transaction, the process run correctly, as a rule of thumb, singleton is evil for most of the cases.

(google search) (amazon search)


Mon Jun 16 00:17:46 HKT 2008 From /weblog/languages

other languages


Map scala function to java - http://blogs.sun.com[..]rarajan/entry/scala_for_java_programmers

a lot of quick start cookbooks of various languages - http://pleac.sourceforge.net/ and here is video tutorials - http://freescienceonline.blogspot.com[..]ucation-lectures.html?search=programming

Yet other JVM base language, it is very erlang like - http://clojure.sourceforge.net/ http://groups.google.com[..]vuI1Vhhmpjq_tXqhHSmIzvYz_Xjy5kXSYlvYYdgY

(google search) (amazon search)


Mon Jun 16 00:17:24 HKT 2008 From /weblog/languages

ruby


Links about Ruby performance tuning - http://www.juixe.com[..]/2007/02/28/rails-performance-link-fest/

Send and receive SMS text messages with Ruby and a GSM/GPRS modem - http://snippets.dzone.com/posts/show/3647



(google search) (amazon search)


Mon Jun 16 00:16:20 HKT 2008 From /weblog/languages

function


Pointer of using function languages like OPML in finance industry - http://beautifulcode.oreillynet.com/2008/03/edge_extension_1.php

(google search) (amazon search)


Thu Feb 14 01:38:16 HKT 2008 From /weblog/languages

lisp


Implementing a blog in common lisp - http://dirtyhack.org/vetler/docs/cl-webapp-intro/part-1/

Arc, new dialect of Lisp - http://jamesshore.com/Blog/No-Take-the-Fit-Challenge-Instead.html

(google search) (amazon search)


Thu Feb 14 01:13:35 HKT 2008 From /weblog/languages

groovy


Meta-programming, change the existing class definition, look cool - http://thediscoblog.com/2008/02/02/metaprogramming-is-so-groovy/

(google search) (amazon search)


Thu Jan 31 12:13:58 HKT 2008 From /weblog/languages

html


We can use pure HTTP request as finite state machine and implement some logic in pure webserver - http://blog.beef.de/2008/01/16/html-game/

(google search) (amazon search)


Wed Nov 28 13:21:42 HKT 2007 From /weblog/languages

python


Tutorial - http://tssblog.blogs.techtarget.com[..]&asrc=EM_NLN_2652143&uid=703565#more-187

(google search) (amazon search)


Mon Aug 20 10:09:39 HKT 2007 From /weblog/languages

history


Chart of history of various languages

http://www.oreilly.com[..]/a/oreilly/news/languageposter_0504.html

Comparing paradigms of difference computer languages

http://www.info.ucl.ac.be/~pvr/paradigmsDIAGRAMeng.pdf

(google search) (amazon search)


Thu Aug 09 11:59:07 HKT 2007 From /weblog/languages

schema


Case study of using schema in web application - http://blog.plt-scheme.org[..]erience-report-scheme-in-commercial.html

I would wonder how the commercial firm found ppl to support the application if they don't support it...

(google search) (amazon search)


Fri Nov 18 14:49:30 HKT 2005 From /weblog/languages

computer language rating


Sites that rate popularity of difference computer language

http://www.tiobe.com/tpci.htm
http://dada.perl.it/shootout/
http://www.99-bottles-of-beer.net/



(google search) (amazon search)