Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion parallel programing problem: asciify string
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Xah Lee  
View profile  
 More options Mar 5 2012, 7:15 pm
Newsgroups: comp.lang.lisp, comp.emacs
From: Xah Lee <xah...@gmail.com>
Date: Mon, 5 Mar 2012 16:15:17 -0800 (PST)
Local: Mon, Mar 5 2012 7:15 pm
Subject: parallel programing problem: asciify string
here's a interesting parallel programing problem.

the task is to change this function so it's parallelable.

(defun asciify-string (inputStr)
  "Make Unicode string into equivalent ASCII ones.
Todo: this command is not exhaustive."
  (setq inputStr (replace-regexp-in-string "á\\|à\\|â\\|ä" "a"
inputStr))
  (setq inputStr (replace-regexp-in-string "é\\|è\\|ê\\|ë" "e"
inputStr))
  (setq inputStr (replace-regexp-in-string "í\\|ì\\|î\\|ï" "i"
inputStr))
  (setq inputStr (replace-regexp-in-string "ó\\|ò\\|ô\\|ö" "o"
inputStr))
  (setq inputStr (replace-regexp-in-string "ú\\|ù\\|û\\|ü" "u"
inputStr))
  inputStr
  )

〈Emacs Lisp: Convert Unicode String to ASCII (Zap Gremlins)〉
http://xahlee.org/emacs/emacs_zap_gremlins.html

(refer to Guy Steele's video talk if you haven't seen already. 〈Guy
Steele on Parallel Programing: Get rid of cons〉)

 Xah


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.