• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:56
CET 16:56
KST 00:56
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners11Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation6Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
[TLMC] Fall/Winter 2025 Ladder Map Rotation Mech is the composition that needs teleportation t Weekly Cups (Nov 3-9): Clem Conquers in Canada Craziest Micro Moments Of All Time? SC: Evo Complete - Ranked Ladder OPEN ALPHA
Tourneys
Master Swan Open (Global Bronze-Master 2) Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
BW General Discussion FlaSh on: Biggest Problem With SnOw's Playstyle Terran 1:35 12 Gas Optimization BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET [ASL20] Grand Finals [Megathread] Daily Proleagues
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
EVE Corporation Nintendo Switch Thread Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread The Games Industry And ATVI
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1238 users

The Big Programming Thread - Page 14

Forum Index > General Forum
Post a Reply
Prev 1 12 13 14 15 16 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
narri
Profile Joined November 2009
United States55 Posts
Last Edited: 2010-07-16 01:29:20
July 16 2010 01:23 GMT
#261
On July 15 2010 21:35 Cloud wrote:
Hey, could someone help me with problem 10? (find the sum of all primes below two million).

My code works just fine for small numbers but when it goes above a certain number it just displays a bunch of crap. I wanna know if I'm declaring my types wrong or if there's something else wrong.

+ Show Spoiler +


The function primo checks if it's a prime. If it's a prime it returns a 1 and the main function sums it to 17 (I skip 2, 3, 5 and 7). All prime numbers apart from 2 and 3 are of the form 6*i +/- 1, and to check if it's a prime you don't need to go above the sqrt of the number.

#include <stdio.h>
#include <math.h>

#define MAX 2000000

int primo(int);

int main(void)
{
int i;
long int suma = 17;

for (i= 2; i * 6 + 1 < MAX; i++) {
if (primo((i * 6) + 1) == 1)
suma += ((i * 6) + 1);
}

for (i = 2; i * 6 - 1 < MAX; i++) {
if (primo((i * 6) - 1) == 1)
suma += ((i * 6) - 1);
}

printf("%d", suma);

return 0;
}

int primo(int num)
{
int i;
float j;

if (num % 2 == 0)
return 0;

if (num % 3 == 0)
return 0;

j = sqrt(num);

for (i = 1; i * 6 + 1 <= j; i++) {
if (num % (i * 6 + 1) == 0)
return 0;
}

for (i = 1; i * 6 - 1 <= j; i++) {
if (num % (i * 6 - 1) == 0)
return 0;
}

return 1;
}



Your algorithm is correct and fast enough. The problem is that the sum of all primes < 2000000 does NOT fit in a C long int (which in reality is the same 32-bit size as a regular int*). You get garbage because you overflow. Use the 64-bit integer type long long (in gcc, in VC++ it's probably called something else, use google). After you do that, you have to change the format string of printf to say that you're printing a long long (in gcc, its "%lld" (two el's)).


*This is because in the olden days of 16-bit processors (when C was created), the type "int" was meant to be the standard word size of the processor. "long" is guaranteed to be at least 32 bits. When 32-bit processors got popular, the C99 standard added "long long", which guarantees 64-bits.
RoTaNiMoD
Profile Blog Joined January 2004
United States558 Posts
July 16 2010 01:45 GMT
#262
I just modified an old C++ version of the Sieve of Eratosthenes to do #10 and it ran in about 50ms. It's ugly, way too long, hard to understand, and largely uncommented but I don't feel like rewriting it at the moment. Maybe later. Main reason for ugliness: I didn't understand creating dynamic arrays at the time and just settled for making array chunks 500,000 big which created a huge amount of unnecessary complication. Kinda fun to look at old projects and see how far you've come.

+ Show Spoiler +

#include <fstream>
#include <math.h>
#include "StopWatch.h"

using namespace std;

const long TOTAL_NUMS = 2000000;
const int INITIALPRIMES_SIZE = 1415; // INITIALPRIMES_SIZE = sqrt( TOTAL_NUMS )
const long SIEVECHUNK_SIZE = 500000; // arbitrary but anything much bigger crashes
long long primesTotal;
long primeCount;

void FillSievePrimes( int sievePrimes[], long totalNums );
void InitialSieve( bool initialPrimes[], int sieveNum, int sieveMax );
void InitializeTestPrimes( bool testPrimes[], int duplicateCount );
void SieveChunk( int chunkNumber, bool testPrimes[], int sievePrimes[] );
void NormalSieve( bool testPrimes[], long sieveNum, long sieveMin, long sieveMax );
void OutputResults( double elapsedTime );

void main()
{
bool testPrimes[SIEVECHUNK_SIZE];
int sievePrimes[INITIALPRIMES_SIZE / 2];
StopWatch stopWatch;

stopWatch.StartTimer();

// fill sievePrimes with the primes up to sqrt( 2,000,000 ) to be used for the rest of the sieves
FillSievePrimes( sievePrimes, TOTAL_NUMS );

// prepare the testPrimes array for use
InitializeTestPrimes( testPrimes, INITIALPRIMES_SIZE );

// for each of 4 chunks of 500,000 numbers, use the sievePrimes to determine the primes in that chunk
for( int chunkNumber = 0; chunkNumber < 4; chunkNumber++ )
SieveChunk( chunkNumber, testPrimes, sievePrimes );

stopWatch.StopTimer();

OutputResults( stopWatch.GetElapsedTime() );
}

void FillSievePrimes( int sievePrimes[], long totalNums )
{
bool initialPrimes[INITIALPRIMES_SIZE];
int sieveNum = 2;
int max = int( sqrt( sqrt( float( totalNums ) ) ) ) + 1; // max = 38

primeCount = 0;

for( int i = 0; i < INITIALPRIMES_SIZE; i++ )
initialPrimes[i] = true;

while( sieveNum < max )
{
sievePrimes[primeCount] = sieveNum;
primeCount++;
primesTotal += sieveNum;
InitialSieve( initialPrimes, sieveNum, INITIALPRIMES_SIZE );
sieveNum++;
while( initialPrimes[sieveNum] == false )
sieveNum++;
}
for( int i = sieveNum; i < INITIALPRIMES_SIZE; i++ )
if( initialPrimes[i] == true )
{
sievePrimes[primeCount] = i;
primeCount++;
primesTotal += i;
}
sievePrimes[primeCount] = totalNums;
}

void InitialSieve( bool initialPrimes[], int sieveNum, int sieveMax )
{
int currentNum = sieveNum * sieveNum;

while( currentNum < sieveMax )
{
initialPrimes[currentNum] = false;
currentNum += sieveNum;
}
}

void InitializeTestPrimes( bool testPrimes[], int duplicateCount )
{
// set all to true initially
for( int i = 0; i < SIEVECHUNK_SIZE; i++ )
testPrimes[i] = true;

// prevent duplicate prime counting since FillSievePrimes already counted primes up to INITIALPRIMES_SIZE
for( int i = 0; i < duplicateCount; i++ )
testPrimes[i] = false;
}

void SieveChunk( int chunkNumber, bool testPrimes[], int sievePrimes[] )
{
long sieveIndex = 0;
long sieveNum = sievePrimes[sieveIndex];
long sieveChunkMin = SIEVECHUNK_SIZE * chunkNumber;
long sieveChunkMax = SIEVECHUNK_SIZE * ( chunkNumber + 1 );
int max = int( sqrt( float( sieveChunkMax ) ) );

testPrimes[0] = false;

while( sieveNum < max )
{
NormalSieve( testPrimes, sieveNum, sieveChunkMin, sieveChunkMax );
sieveIndex++;
sieveNum = sievePrimes[sieveIndex];
}

for( long i = 1; i < SIEVECHUNK_SIZE; i+=2 )
{
if( testPrimes[i] == true )
{
primeCount++;
primesTotal += i + sieveChunkMin;
}
else
testPrimes[i] = true;
}
}

void NormalSieve( bool testPrimes[], long sieveNum, long sieveMin, long sieveMax )
{
long currentNum = sieveNum * sieveNum;

if( currentNum < sieveMin )
currentNum = sieveMin + sieveNum - ( sieveMin % sieveNum );

while( currentNum < sieveMax )
{
if( currentNum > sieveMin )
testPrimes[currentNum - sieveMin] = false;
currentNum += sieveNum;
}
}

void OutputResults( double elapsedTime )
{
ofstream outputFileStream;

outputFileStream.open( "output.txt", ios::out );
outputFileStream << "Total of primes up to 2,000,000: " << primesTotal << endl << endl
<< "Elapsed time: " << elapsedTime << endl;
outputFileStream.close();
}
listal
Profile Joined August 2003
United States228 Posts
Last Edited: 2010-07-16 02:29:27
July 16 2010 02:06 GMT
#263
On July 15 2010 06:48 terr0r wrote:
Show nested quote +
On July 15 2010 05:31 alexpnd wrote:
I want to get more into Python well because, it's a bw map...

LMFAO!

I've been developing for the web for a while now (10 years?). If you're looking to get into the back-end stuff I'd still recommend PHP as a starting point right now. I feel that languages like Python and Ruby are poised to take the crown of most commonly used language from PHP eventually, but right now it is the most widely supported, documented and easiest to get started with.

Most web hosts run PHP by default so you can find them cheaply. Python (using Django) is done nicely but has a host of small issues in terms of support. You will likely have to have your host make some adjustments in order for you to get it running, if at all. Ruby (via Rails) has more support but as previously mentioned the current implementation is resource hungry and has scalability issues related to that. I like Django over Rails personally though I like Rails Active Record over Django's ORM (Datbase handling layer). PHP has a slew of widely used frameworks though my hands down favorite is Code Igniter (http://codeigniter.com/).

Another problem with learning Djano is that there are not a lot of tutorial/screencasts relevant to the current version. A lot of their screencasts are outdated and I like watching screenies to get a quick overview of how the Framework works. Frameworks are invaluable assets for a Web Developer as they handle a lot of the lower-level business logic that you will use from site to site (RSS Feeds, Administrative interfaces, Session handling, Caching, etc.).

I don't think PHP is the best language out there right now, but it is the best STARTER language currently.


I'm surprised you didn't drop a line for C# & asp.net as something for a beginner! As far as intranet web apps go, if it's not a quick and dirty Rails, py/pl CGI, it's likely some C# & asp.net magic :-) The framework that .net provides is pretty simple to work with relative to the scripting languages' frameworks.

On another note, directed at tofucake: I also attend Drexel! I'm in their BSIT program. However, I'm taking the CS courses necessary to begin the MS Software Engineering program that they offer soon after I graduate. I'm curious: what's your opinion of Captain Schmidt's labs?

Also, some very interesting links to add to your (tofucake's) OP, if you think they'd be valuable...

On programming language design in general. Has many links to documents open to the public that various Universities provide along with a wealth of other info.
http://lambda-the-ultimate.org/

On various topics regarding Python, Swig, PLY, extending Python, Python's GIL (old and upcoming), and others. The coroutines presentation and code snippets are pretty awesome, but you'd need to understand Python's generator objects before reading.
http://www.dabeaz.com/talks.html

And one important set of (incomplete) books that I think you may've forgotten! Don Knuth's The Art Of Computer Programming: http://www.amazon.com/Art-Computer-Programming-Volumes-Boxed/dp/0201485419

And a blog containing many mini-guides and gems of knowledge on many topics, though it's mostly focused on Python and web programming (I believe with Django):
http://www.saltycrane.com/blog/

Sorry in advance if this appears to crash another thread of discussion going on! This forum topic just caught my eye.
Cloud
Profile Blog Joined November 2004
Sexico5880 Posts
July 16 2010 02:13 GMT
#264
Thanks to everyone who helped! Appreciate it.
BlueLaguna on West, msg for game.
Yukidasu
Profile Blog Joined September 2009
Australia125 Posts
July 16 2010 02:58 GMT
#265
There's been a couple of mentions in the thread, but are there many people here who do competitive programming (eg TopCoder, ACM ICPC, Google Code Jam)?

I've been doing these when they come up for quite a while, just wondering because it seems like a natural thing for people in a competitive community like teamliquid to be interested in.
Lost in a groundless dream. You can't fly if there's nowhere to fall.
Craton
Profile Blog Joined December 2009
United States17264 Posts
July 16 2010 03:01 GMT
#266
Speaking of competition coding, does anyone remember CodeRuler?

God that thing was fun.
twitch.tv/cratonz
tec27
Profile Blog Joined June 2004
United States3702 Posts
July 16 2010 03:11 GMT
#267
On July 16 2010 11:58 Yukidasu wrote:
There's been a couple of mentions in the thread, but are there many people here who do competitive programming (eg TopCoder, ACM ICPC, Google Code Jam)?

I've been doing these when they come up for quite a while, just wondering because it seems like a natural thing for people in a competitive community like teamliquid to be interested in.

I was doing the ACM ICPC the past few years. 2 years ago my team placed 3rd in the mideast region, which was unfortunately 1 off getting to go to China. Ah well. Anyway, our coach moved to Seattle, so that pretty ended my participation in that competition.
Can you jam with the console cowboys in cyberspace?
imDerek
Profile Blog Joined August 2007
United States1944 Posts
July 16 2010 03:11 GMT
#268
On July 16 2010 11:58 Yukidasu wrote:
There's been a couple of mentions in the thread, but are there many people here who do competitive programming (eg TopCoder, ACM ICPC, Google Code Jam)?

I've been doing these when they come up for quite a while, just wondering because it seems like a natural thing for people in a competitive community like teamliquid to be interested in.


I did GCJ this year and last year but probably won't do it anymore
Least favorite progamers: Leta, Zero, Mind, Shine, free, really <-- newly added
catamorphist
Profile Joined May 2010
United States297 Posts
Last Edited: 2010-07-16 03:28:46
July 16 2010 03:21 GMT
#269
I do GCJ too, and I've been doing TopCoder for a long time, but I'm only mediocre at it; my peak rating is 1600ish. It blows my mind that people can complete the 1000-pointers in an hour fifteen -- once in a while I can start to solve it in the time allotted, but usually I have the wrong approach in mind anyway. The top red coders are like what is this I don't even.

(It doesn't help that they only use C# 2.0, which is a really shitty language compared to 3.0, and I don't know the STL or the Java libraries well enough to be competitive, so I feel like I'm crippled language-wise. I end up in situations where I have a problem worked out but I just can't actually type it in time.)
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
Yukidasu
Profile Blog Joined September 2009
Australia125 Posts
July 16 2010 03:26 GMT
#270
Yeah, I think it's really important to be using C++ for topcoder, you get quite a significant speed bonus and the questions are usually written for it. I just use C++. (I'm around 2000 on TopCoder at the moment.)

The top guys are pretty scary!
Lost in a groundless dream. You can't fly if there's nowhere to fall.
narri
Profile Joined November 2009
United States55 Posts
July 16 2010 05:16 GMT
#271
I'm on Topcoder too...I'll let the rating graph tell you how inconsistent I am.
WarChimp
Profile Blog Joined March 2010
Australia943 Posts
July 16 2010 12:49 GMT
#272
Hey, I am curious, you call this The Big Programming Thread however I cannot believe you do not include ActionScript 2.0/3.0, it is a legitimate language and is used for all flash games and flash websites.

Anyway it was just a thought that maybe you could add in ActionScript. Oh well it was just a suggestion

~WarChimp
FEiN
Profile Joined July 2010
United Kingdom91 Posts
July 16 2010 12:55 GMT
#273
Just finished my first year of CS, and damn was that easy. Taught myself Java/C++/PHP/Haskell without going to any lectures wow fun. Ive been programming in python/lua for the past 3 years and love OOP style. Wonder what fun the next 2 years will bring.
Craton
Profile Blog Joined December 2009
United States17264 Posts
July 16 2010 12:58 GMT
#274
First two years are pretty boring, imo. You get a taste your 4th sem, but don't really cover anything before 5th and onward.
twitch.tv/cratonz
Tresh
Profile Joined March 2010
Argentina68 Posts
July 16 2010 14:01 GMT
#275
Actionscript is a language, but personally, i could never put it in the same list with all C variants, maybe even java, and the such.
Huh?
CTStalker
Profile Blog Joined November 2004
Canada9720 Posts
July 16 2010 14:08 GMT
#276
actionscript is awful. anyone with experience with flex 3 / 4 will attest to how bug-ridden and non-sensical the whole "platform" is. the compiler is awful, the language submits to archaic runtime constraints from the flash player, and they managed to break functionality in the "enterprise" flash builder that worked just fine in good old fashioned eclipse. but at least your programs will look pretty, right?

on to bashing another language: you c++ lovers will enjoy these:

linus hating on c++: http://lwn.net/Articles/249460/
zed shaw hating on c++: http://librelist.com/browser//mongrel2/2010/7/15/c-verses-c /#770d94bcfc6ddf1d8510199996b607dd
By the way, my name is Funk. I am not of your world
NB
Profile Blog Joined February 2010
Netherlands12045 Posts
July 16 2010 14:11 GMT
#277
we should have some Scheme in this thread, i hate it in the begining but after 4 months learning/using it, Scheme is THE SHIT!
Im daed. Follow me @TL_NB
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2010-07-16 15:42:14
July 16 2010 14:54 GMT
#278
Actionscript is just plain awful, made worse by their crappy libraries. I used to use it for browser games until JOGL came out, and now I have full hardware acceleration on the browser with a high performance VM. (Actionscript was way too slow)

On July 16 2010 09:27 SoLaR[i.C] wrote:
Anybody have a suggestion for a FORTRAN compiler?


GFORTRAN

http://gcc.gnu.org/fortran/

IMO anything from the GCC collection is very good quality, and free!

On July 16 2010 23:08 CTStalker wrote:
actionscript is awful. anyone with experience with flex 3 / 4 will attest to how bug-ridden and non-sensical the whole "platform" is. the compiler is awful, the language submits to archaic runtime constraints from the flash player, and they managed to break functionality in the "enterprise" flash builder that worked just fine in good old fashioned eclipse. but at least your programs will look pretty, right?

on to bashing another language: you c++ lovers will enjoy these:

linus hating on c++: http://lwn.net/Articles/249460/
zed shaw hating on c++: http://librelist.com/browser//mongrel2/2010/7/15/c-verses-c /#770d94bcfc6ddf1d8510199996b607dd


LOL Zed!

http://artlung.com/smorgasborg/Invention_of_Cplusplus.shtml

Re-up, just to add to the C++ bashing bandwagon :D. (IMO the worst designed language of all time, repeated inheritance ftl)

On July 16 2010 07:49 UdderChaos wrote:
lol VB isn't a real language, it's like the mac of the programming languages.


Well BASIC is a real language, and VB has just as much functionality and performance as that of most structured programming languages. There's a lot of undocumented features though, like dynamic memory allocation.

If you want to see VB reaching almost compiled C++ speeds have a look here.

http://www.xbeat.net/vbspeed/

That said, I really dislike VB in comparison to Pascal or C.

On July 13 2010 13:54 catamorphist wrote:
I'm not sure -- I just don't think that you can look at a class and treat it as a method list and nothing else. To start with, those methods all have names; surely you agree that the names are important? Suppose Array.BinarySearch always returned the right result, but it only did it in linear time; wouldn't you be surprised and irritated that it wasn't logarithmic?

How do you know whether a piece of data ought to be exposed as a property or a method call in C#? Usually, the convention is that if it could take a non-negligible amount of time to get the result, it ought to be a method call (barring some lazy initialization sort of hijinx.) So here is already an example where C# suggests different best practices based on the performance of your implementation.

Most C# programmers who are collaborating with other people are vaguely familiar with most of the framework classes that implement IList and ISet, so it's not a matter of looking at all the concrete classes; you've already seen them. I think that real efficiency is being able to quickly gauge a big piece of code based on the shared experience and conventions between you and the writer, maximizing the amount of information you're communicating with your choices of design, variable names, and types. I don't see any reason that performance characteristics shouldn't be part of that information.


You can, its called documentation. If you follow the best practises of OOP and conventions of the language, there will be no ambiguity and you won't even need to think to make ridiculously trivial decisions like deciding whether to use properties or accessor/modifiers.

"Real efficiency" stems from maintainable code, achieved by following the best practises of OOP. 41% of maintenance costs are derived from changes in User Requirements, 4% on efficiency improvements. This has a lot to do with the reason that OOP doesn't care for performance, and that most good programmers know that early optimisation is the root of all evil in programming. Scaling hardware is cheap.

The whole gauging a big piece of code is the most incorrect way to look at (and write) code. Programming is about making abstractions, breaking the logic down over and over, through functional decomposition and object decomposition. This allows you and other programmers to focus on as little tasks as possible, one at a time, the less you have to think about, the faster you can make changes. You won't always have the luxury of communicating with the designers of the code, which is why you document your code and make it as simple to understand as possible.

By choosing a concrete class over an interface based on performance, you are making the assumption that other programmers knowing the performance of the code is absolutely necessary, and you are prepared to potentially skyrocket maintenance costs just because of that. You are also sacrificing potential performance improvements in the future.

I couldn't care less how Array.BinarySearch performed. If it's too slow, it has nothing to do with the search algorithm, it means you have done something stupid. Maybe if I were creating database engine from the ground up I would care, but then I wouldn't be using C# and most likely be using a procedural language like C.

Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
dimfish
Profile Blog Joined February 2010
United States663 Posts
July 16 2010 15:53 GMT
#279
On July 16 2010 23:11 NB wrote:
we should have some Scheme in this thread, i hate it in the begining but after 4 months learning/using it, Scheme is THE SHIT!


Scheme is totally THE SHIT! Functional programming was my favorite undergrad class and I love when I have a reason to code up a Scheme script for GIMP!

Oh, I vote for putting Action Script on the list. I've recently been helping my college buddy who went English major --> web producer --> web developer --> programmer (AS3), tada! Any language that brings in completely new programmers is fine by me.
DeLoAdEr
Profile Blog Joined July 2003
Japan527 Posts
July 16 2010 15:55 GMT
#280
On July 16 2010 11:58 Yukidasu wrote:
There's been a couple of mentions in the thread, but are there many people here who do competitive programming (eg TopCoder, ACM ICPC, Google Code Jam)?

I've been doing these when they come up for quite a while, just wondering because it seems like a natural thing for people in a competitive community like teamliquid to be interested in.


i went to the south european icpc finals, but my team didn't manage to solve a single problem. was quite embarrasing. ^^
Prev 1 12 13 14 15 16 1032 Next
Please log in or register to reply.
Live Events Refresh
OSC
11:30
Mid Season Playoffs
Krystianer vs PercivalLIVE!
WardiTV1125
TKL 235
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 235
SteadfastSC 94
Rex 85
StarCraft: Brood War
Calm 3285
Rain 2279
Bisu 1720
Hyuk 1637
Horang2 920
Soma 531
Stork 334
Rush 299
Shuttle 188
Backho 101
[ Show more ]
Soulkey 79
Barracks 53
sas.Sziky 50
hero 39
Rock 35
zelot 23
sSak 23
Aegong 19
Killer 16
Terrorterran 13
Dota 2
Gorgc3723
qojqva1869
Dendi1212
BananaSlamJamma154
XcaliburYe101
Super Smash Bros
Mew2King91
Other Games
DeMusliM413
Sick378
hiko364
Hui .308
Fuzer 217
QueenE52
ceh949
Trikslyr13
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 11
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• poizon28 19
• 3DClanTV 1
• LaughNgamezSOOP
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• HerbMon 12
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 3210
• WagamamaTV437
League of Legends
• Nemesis4286
• TFBlade1021
Upcoming Events
Tenacious Turtle Tussle
7h 4m
The PondCast
18h 4m
RSL Revival
18h 4m
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
20h 4m
WardiTV Korean Royale
20h 4m
PiGosaur Monday
1d 9h
RSL Revival
1d 18h
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
1d 20h
CranKy Ducklings
2 days
RSL Revival
2 days
herO vs Gerald
ByuN vs SHIN
[ Show More ]
Kung Fu Cup
2 days
IPSL
3 days
ZZZero vs rasowy
Napoleon vs KameZerg
BSL 21
3 days
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
3 days
RSL Revival
3 days
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
3 days
WardiTV Korean Royale
3 days
BSL 21
4 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
4 days
Dewalt vs WolFix
eOnzErG vs Bonyth
Wardi Open
4 days
Monday Night Weeklies
5 days
WardiTV Korean Royale
5 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2025-11-07
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Disclosure: This page contains affiliate marketing links that support TLnet.

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.