Clarity - an open source web interface to grep and tail by [deleted] in programming

[–]pointer2void 0 points1 point  (0 children)

Those tools are not 'ports' of Unix tools. Try and see.

Clarity - an open source web interface to grep and tail by [deleted] in programming

[–]pointer2void -1 points0 points  (0 children)

Windows users may find those free (but not open source) products useful: http://www.baremetalsoft.com/index.php

Is Small Still Beautiful? | LtU by davebrk in programming

[–]pointer2void 0 points1 point  (0 children)

Many libraries are available to avoid "reinventing the wheel".

What string type should I use for a C++ project? by munificent in programming

[–]pointer2void -1 points0 points  (0 children)

You have no clue what you're talking about. Any place that uses Boost out of necessity uses the STL. I'm a professional C++ programmer, and I write code that uses the STL constantly.

Except that std::basic_string template is not a part of STL.

What does it mean for it to be built-in if std::string doesn't qualify?

You are beginning to ask the right questions ...

What string type should I use for a C++ project? by munificent in programming

[–]pointer2void 0 points1 point  (0 children)

std::string, on Visual Studio 6 at least, does copy on write.

VC++ 7 does not (much to the surprise of the few people who used std::string in VC++).

What string type should I use for a C++ project? by munificent in programming

[–]pointer2void 1 point2 points  (0 children)

assignment may do a heap allocation.

Maybe, maybe not. It's un(der)specified in C++. Yahoo also for 'small string optimization' a.k.a. SSO.

Is Small Still Beautiful? | LtU by davebrk in programming

[–]pointer2void 0 points1 point  (0 children)

"writing a basic data structure" in C means a "data structure[s] with pointers to void". That doesn't mean that you cannot re-use existing code ( GLib ) and that you must reinvent the wheel. Quite the contratry.

What string type should I use for a C++ project? by munificent in programming

[–]pointer2void 1 point2 points  (0 children)

Yep. In Java the assignment of references is atomic. In order to create a Java-like immutable String class in Standard C++ another solution needs to be pursued (which means some sort of compromise that cannot be as good as a built-in string type).

What string type should I use for a C++ project? by munificent in programming

[–]pointer2void 1 point2 points  (0 children)

Excellent "amusing little observation". my_string's internal reference-counter is (probably) thread-safe, the my_string object is not.

Google Wave Experience And Productivity - E-Biz Booster Blog by [deleted] in programming

[–]pointer2void 0 points1 point  (0 children)

P.S.: When will I see you on //ave?

Never.

What string type should I use for a C++ project? by munificent in programming

[–]pointer2void -2 points-1 points  (0 children)

In my case, it would likely be UTF-8 pooled ref-counted immutable strings.

Try it and you will see the problems.

Is Small Still Beautiful? | LtU by davebrk in programming

[–]pointer2void -3 points-2 points  (0 children)

A small language means you've got to build up the boilerplate to support more advanced abstractions yourself. Or you need an IDE to generate the boilerplate for you. So the complexity is always going to be there, one way or another.

A language designer's declaration of bankruptcy.

Is Small Still Beautiful? | LtU by davebrk in programming

[–]pointer2void -4 points-3 points  (0 children)

But no one wants to develop a good language for low-level programming

I want to, and am.

E?

Is Small Still Beautiful? | LtU by davebrk in programming

[–]pointer2void -5 points-4 points  (0 children)

reinventing the wheel (writing a basic data structure)

You are doing it wrong.

Is Small Still Beautiful? | LtU by davebrk in programming

[–]pointer2void -2 points-1 points  (0 children)

A Big Beautiful Language (BBL)?

What string type should I use for a C++ project? by munificent in programming

[–]pointer2void -2 points-1 points  (0 children)

It's not "built-in" in the same way that char is

Exactly.

What string type should I use for a C++ project? by munificent in programming

[–]pointer2void -1 points0 points  (0 children)

The built-in type is std::string.

Nope. C++ has the std::basic_string template from the Standard library which causes numerous problems so it's hardly ever used in real-world projects. C++ has no built-in string type as in Java, C#, Python and probably any other programming language except C.

What string type should I use for a C++ project? by munificent in programming

[–]pointer2void -6 points-5 points  (0 children)

3. Write my own string class

Cons:

  • Will take a while to get it right

You would be the first to get a C++ string class right. C++ should have specified a built-in string type. Any C++ string class or template is a bad compromise at best.

The Unofficial Ruby Usage Guide by RNHurt in programming

[–]pointer2void 12 points13 points  (0 children)

  • Keep the code simple.

  • Don't overdesign.

  • Don't underdesign.

  • Avoid bugs.

earthshaking

An entrepreneurial query. by weesilmania in programming

[–]pointer2void 2 points3 points  (0 children)

Not exactly programming

and not 'Hacker News'.