Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: Problems/Algorithms that test a languagememberleppie11 Nov '07 - 6:17 
Marc Clifton wrote:
C# is doing just fine without lambda expressions, so this isn't a fundamental concept IMO.

 
Lambda's is just sugar/shorthand for delegate's, and without them C# would be like C without function pointers :p
 
Marc Clifton wrote:
what are the fundamental concepts that a programming language should implement

 
Scheme defines 4 basic syntax forms:
- set!
- lambda
- quote
- if
 
That is it. You can define all other forms in terms of those 4 (and with 'set!' you cannot even define a variable!).
 
xacc.ide
IronScheme a R5RS-compliant Scheme on the DLR

The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

GeneralRe: Problems/Algorithms that test a languagememberRay Cassick11 Nov '07 - 10:58 
Marc Clifton wrote:
Fizbin

 
You are showing your Star Trek geekyness Smile | :)

 

GeneralRe: Problems/Algorithms that test a languagememberpeterchen11 Nov '07 - 11:03 
Standard measures I can think of:
* turing complete (see above), it's the real meat
* can you write an interpreter/compiler for the language in the language?
(assuming required I/O to be available...) - what I'd call first level of self awareness
* can you write a program that outputs it's own source code? (fun value only, I guess)
 


We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
My first real C# project | Linkify!|FoldWithUs! | sighist

QuestionBoost LibrariesmemberMustafa Ismail Mustafa10 Nov '07 - 22:18 
Has anyone played around with the boost libraries? Would you recommend them?
 
rant:
 
See, the story is as follows. I used to do quite a bit of C/C++/C#/Java coding until recently which is about 2 years ago. Now, its mostly VB.NET ( Dead | X| ). So I'm trying to get myself back into the groove. I had the rudest awakening a few days ago when trying to help my brother write up a small 21 (black jack) game for his university work. Man, do I suck now or what Frown | :(
 
/rant
 
So I've decided that as many of my Masters Degree projects will be in C++, and any coding I do at home will also be in C/C++.
 
Any suggestions? Tips?
 
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
 
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
 
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"

AnswerRe: Boost LibrariesmvpHans Dietrich11 Nov '07 - 0:44 
Boost is always handy to be familiar with. I'm sure you know that boost is used much more on Unix than on Windows, but I think that is mostly because early MS C++ compilers sucked.
 
You should also brush up on your STL, since it is now being used more on Windows platforms, with the latest improved/compliant MS C++ compilers.
 

AnswerRe: Boost LibrariesmemberGary R. Wheeler11 Nov '07 - 0:56 
I've used the regular expressions 'sub-library' from the Boost set. It seems to work well, and wasn't difficult to incorporate into my application. I recommend it.
 

Software Zen: delete this;

AnswerRe: Boost LibrariesmemberRoland Pibinger11 Nov '07 - 2:56 
Mustafa Ismail Mustafa wrote:
Has anyone played around with the boost libraries? Would you recommend them?
rant:
See, the story is as follows. I used to do quite a bit of C/C++/C#/Java coding until recently which is about 2 years ago. Now, its mostly VB.NET ( ). So I'm trying to get myself back into the groove. I had the rudest awakening a few days ago when trying to help my brother write up a small 21 (black jack) game for his university work. Man, do I suck now or what
/rant
So I've decided that as many of my Masters Degree projects will be in C++, and any coding I do at home will also be in C/C++.
Any suggestions? Tips?

 
Boost was created as a playground to experiment with templates and push the limits of template programming in C++. Boost libraries were never meant as a convenient tool for Jo Programmer. I wouldn't use Boost in a real production environment. But for a master's thesis they are well suited. You can most probably impress you professor with the code obfuscation Boost libraries produce. Be prepared for a culture shock, though. You first need to learn to decipher the 80 lines or more long template error messages typical for Boost.
 

 

GeneralRe: Boost LibrariesmemberJohn M. Drescher11 Nov '07 - 3:46 
Roland Pibinger wrote:
Boost libraries were never meant as a convenient tool for Jo Programmer.

I think the problem here is that a lot of library documentation is written for people who fully understand what is going on under the hood of a particular boost library.
 
Roland Pibinger wrote:
I wouldn't use Boost in a real production environment.

I have used them in a real production environment for years. They work well but it does take a while to understand boost and also adding boost to your project will increase compile times significantly.

Roland Pibinger wrote:
You first need to learn to decipher the 80 lines or more long template error messages typical for Boost.


I consider this a Microsoft bug but at least there is a tool to get rid of this. StlFilt[^]
 

 
John

GeneralRe: Boost LibrariesmemberRoland Pibinger11 Nov '07 - 6:03 
John M. Drescher wrote:

Roland Pibinger wrote:

You first need to learn to decipher the 80 lines or more long template error messages typical for Boost.

 
I consider this a Microsoft bug but at least there is a tool to get rid of this. StlFilt[^]

 
It's not a Microsoft bug but a template bug (a bug in C++). StlFilt treats the symptoms but doesn't cure the disease.
GeneralRe: Boost Librariesmemberto_be_defined12 Nov '07 - 1:14 
Boost was started by members of the C++ Standards Committee Library Working Group to rapidly create robust and efficient C++ libraries. Boost is made up of many libraries; some push the limits of template programming, others are quite simple and helpful (smart pointers for instance).
 
A large part of the boost libraries has been added to the C++ TR1 and will be part of the standard in the future.
 
I suppose a lot of people reinvent the wheel instead of using STL and boost. Sometimes this is justified by performance, political or technical reasons, often it is not.
 

AnswerRe: Boost LibrariesmemberNemanja Trifunovic11 Nov '07 - 10:09 
Mustafa Ismail Mustafa wrote:
Has anyone played around with the boost libraries? Would you recommend them?

 
I used Boost libraries a lot in the past (unfortunately, not in the current project) and found them to be very helpful in the most practical way. E.g., see Boost Filesystem[^], string algorithms[^], or regex[^].

 

 

AnswerRe: Boost LibrariesmemberIndependent12311 Nov '07 - 10:20 
I tried using them once, but I couldn't get them to compile on my machine. D'Oh! | :doh: Sigh | :sigh:
AnswerRe: Boost LibrariesmemberJosh Gray11 Nov '07 - 10:42 
We use them a lot and I really like them. We use the function pointers the most, the regex stuff a little bit, lexical_cast and the thread library with pthreads for unux / windows
AnswerRe: Boost Librariesmemberpeterchen11 Nov '07 - 11:00 
Boost is what it says - a collection of libraries.
While they have very high standars in what they accept, still individual libraries have different levels of completion, elegance and usefulness. Also, style and method of the different authors may differ.
 
So asking about them as awhole, it's almost like asking "are ropes any good"?
 
well, boost is at least rope, not just laces.
 
I definitely do recommend the smart pointer library, see my articles.
 


We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
My first real C# project | Linkify!|FoldWithUs! | sighist

AnswerRe: Boost LibrariesmemberStuart Dootson11 Nov '07 - 22:12 
Mustafa Ismail Mustafa wrote:
Has anyone played around with the boost libraries?

Yes - function, lambda, bind, spirit, regex, smart_ptr, filesystem, multi_index, crc, signals, tuple, variant, optional, tokenizer, string_algo, range.
 
Mustafa Ismail Mustafa wrote:
Would you recommend them?

Yes - as far as I'm concerned, C++ without Boost isn't something I want to use to develop large systems.
 
Mustafa Ismail Mustafa wrote:
Any suggestions? Tips?

  • Use MSVC 7.1 or above - that's when MSVC gained partial specialisation, one of the key template techniques Boost relies on.
  • Use smart_ptr for memory management. With suitable custom deleters, you can use it for all resource management as well
  • Use boost::function rather than boost::signal for callbacks if you can guarantee a single reciever - it's a lot quicker.
  • variant, optional and (to a lesser extent) tuple can be incredibly useful
  • Become familiar with the STL algorithms - if you use lambda with them, they become a lot easier to use, as you can write (small) functions in-line.
  • Be prepared for larger compile times - that's the main downfall of Boost, IMO.

 

GeneralAlways on Top NotepadmemberBrady Kelly10 Nov '07 - 21:25 
The other day I wished I had something like this. I needed to create close to 40 new GL accounts in an accounting application, which I did by copying and pasting missing account numbers from my log. At under ten key-strokes per account, it went quite quickly, but what annoyed me was having to keep switching between my log and the accounting app. I would really have like to have a text editor that remained on top, z wise, in the accounting app, making it easier to grab the next account number. Is there anything like this, or should I just build the ultimate, a text display dedicated to copying to clipboard, with enhanced, automatic selection and copy etc?
 

MY BLOG

Calling all South African developers! Your participation in this local dev community will be mutually beneficial, to you and us.

GeneralRe: Always on Top Notepadmemberleppie10 Nov '07 - 21:29 
I am sure you will find something like that on BetaNews, else resort to Spy++ Smile | :)
 
xacc.ide
IronScheme a R5RS-compliant Scheme on the DLR

The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

GeneralRe: Always on Top NotepadmemberBrady Kelly10 Nov '07 - 21:40 
Do you mean set up something to send messages to my text 'provider', to copy text from it without leaving my primary app? That actually sounds like a damn interesting project and even article idea.
 

MY BLOG

Calling all South African developers! Your participation in this local dev community will be mutually beneficial, to you and us.

GeneralRe: Always on Top NotepadmemberAnna-Jayne Metcalfe10 Nov '07 - 21:47 
Notepad2[^]does this, so why don't you try that instead?
 
Anna Rose | [Rose]
 
Linting the day away Cool | :cool:
 
Anna's Place | Tears and Laughter
 
"If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

GeneralRe: Always on Top NotepadmemberBrady Kelly10 Nov '07 - 22:27 
Anna-Jayne Metcalfe wrote:
pl

I'm using NotePad2, and completely missed this D'Oh! | :doh: . I even looked for it, but it was one of those days. Blush | :O Thanks!
 

MY BLOG

Calling all South African developers! Your participation in this local dev community will be mutually beneficial, to you and us.

GeneralRe: Always on Top NotepadmemberAnna-Jayne Metcalfe11 Nov '07 - 6:08 
Anytime. Smile | :)
 
Anna Rose | [Rose]
 
Linting the day away Cool | :cool:
 
Anna's Place | Tears and Laughter
 
"If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

GeneralRe: Always on Top NotepadmemberMike Hankey11 Nov '07 - 3:02 
Nice utility!
 
Thanks
Mike
 
Life is not measured by the number of breaths we take, but by the
moments that take our breath away. "George Carlin"

GeneralRe: Always on Top NotepadmemberAnna-Jayne Metcalfe11 Nov '07 - 6:08 
It sure is. I've been using it for a couple of years now. Smile | :)
 
Anna Rose | [Rose]
 
Linting the day away Cool | :cool:
 
Anna's Place | Tears and Laughter
 
"If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

GeneralRe: Always on Top NotepadmemberMike Hankey11 Nov '07 - 6:39 
I like the Syntax highlighting and its light weight. Who could ask for more? (and actually get it for free)
 
Thanks again
Mike
 
Life is not measured by the number of breaths we take, but by the
moments that take our breath away. "George Carlin"

GeneralRe: Always on Top NotepadmemberAnna-Jayne Metcalfe11 Nov '07 - 7:15 
My pleasure. Smile | :)
 
Anna Rose | [Rose]
 
Linting the day away Cool | :cool:
 
Anna's Place | Tears and Laughter
 
"If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid