• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 20:09
CEST 02:09
KST 09:09
  • 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
Team TLMC #5 - Finalists & Open Tournaments0[ASL20] Ro16 Preview Pt2: Turbulence9Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12
Community News
Weekly Cups (Sept 8-14): herO & MaxPax split cups4WardiTV TL Team Map Contest #5 Tournaments1SC4ALL $6,000 Open LAN in Philadelphia8Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues29LiuLi Cup - September 2025 Tournaments3
StarCraft 2
General
#1: Maru - Greatest Players of All Time Weekly Cups (Sept 8-14): herO & MaxPax split cups Team Liquid Map Contest #21 - Presented by Monster Energy SpeCial on The Tasteless Podcast Team TLMC #5 - Finalists & Open Tournaments
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris SC4ALL $6,000 Open LAN in Philadelphia Sparkling Tuna Cup - Weekly Open Tournament WardiTV TL Team Map Contest #5 Tournaments RSL: Revival, a new crowdfunded tournament series
Strategy
Custom Maps
External Content
Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around
Brood War
General
BW General Discussion [ASL20] Ro16 Preview Pt2: Turbulence ASL20 General Discussion Diplomacy, Cosmonarchy Edition BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL20] Ro16 Group D [ASL20] Ro16 Group C [Megathread] Daily Proleagues SC4ALL $1,500 Open Bracket LAN
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread General RTS Discussion Thread Nintendo Switch Thread Borderlands 3
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread The Big Programming Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
The Personality of a Spender…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1226 users

The Big Programming Thread - Page 645

Forum Index > General Forum
Post a Reply
Prev 1 643 644 645 646 647 1031 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.
SixStrings
Profile Blog Joined August 2013
Germany2046 Posts
Last Edited: 2015-06-25 14:14:29
June 25 2015 14:08 GMT
#12881
I feel like I'm not getting the programmer humour or culture in here.

Are you really upset because I didn't use gender neutral language?
Why is it so awful that I did a Javascript course? I didn't know where to start and Khan advertises this as a beginning point for programming...

I suppose Javascript is like the Wonderwall of programming? Well, you gotta start somewhere...
helpman177
Profile Blog Joined June 2015
56 Posts
June 25 2015 14:20 GMT
#12882
Any language is fine.
Just make sure you actually work on a project and learn programming on the side instead of going through courses.
For example, a simple project would be a vocabulary trainer to learn Russian.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
June 25 2015 14:20 GMT
#12883
--- Nuked ---
Acrofales
Profile Joined August 2010
Spain18049 Posts
June 25 2015 14:36 GMT
#12884
On June 25 2015 23:08 SixStrings wrote:
I feel like I'm not getting the programmer humour or culture in here.

Are you really upset because I didn't use gender neutral language?
Why is it so awful that I did a Javascript course? I didn't know where to start and Khan advertises this as a beginning point for programming...

I suppose Javascript is like the Wonderwall of programming? Well, you gotta start somewhere...

It was more that, given the way you seem to treat girls, your address of "Hi girls", seems to be you not taking this community very seriously, which is not a good signal to send if you are asking it for advice.

Anyway, javascript has a special place in hell reserved for it (next to php and perl which are legitimately awful programming languages), not because it is terrible, but because it is omnipresent and SHOULD NOT BE.

Javascript is acceptable, and pretty good at what it does AS LONG AS IT STAYS CLIENT SIDE AND RUNS IN A BROWSER. I have a passionate hatred for Node.JS, Tizen, and all other frameworks that try to drag Javascript to places it doesn't belong, when there are FAR better languages for each of those areas (Python, Ruby and even LUA come to mind) There is too much wrong with it to want it to be prevalent.

SixStrings
Profile Blog Joined August 2013
Germany2046 Posts
Last Edited: 2015-06-25 14:47:45
June 25 2015 14:45 GMT
#12885
On June 25 2015 23:20 Nesserev wrote:
Show nested quote +
On June 25 2015 23:08 SixStrings wrote:
I feel like I'm not getting the programmer humour or culture in here.

Are you really upset because I didn't use gender neutral language?
Why is it so awful that I did a Javascript course? I didn't know where to start and Khan advertises this as a beginning point for programming...

When I said "that's awful", I was referring to the part where the girl is giving you a blowjob while calling her boyfriend. Did that really happen, lol? Anyway, wrong thread for that... There's nothing wrong with starting out with javascript.

But I think the next logical step is to stick with a scripting language like Python (take a look at the source that I linked above)... and maybe later, when you're comfortable with programming, pick up a C language, like C++ or C#.




Yeah, that happened but that's not the whole story. He's really oversimplifying it.

Anyway, I'm just waiting for the office to be empty and then I'll print out the document you linked and have a thorough read.

I'd love to do something outside of a browser, and I think Python would be splendid for that. Apparently you can just throw Python commands at Terminal, can't wait to fuck around with that.

Thanks for the advice!

On June 25 2015 23:36 Acrofales wrote:
Show nested quote +
On June 25 2015 23:08 SixStrings wrote:
I feel like I'm not getting the programmer humour or culture in here.

Are you really upset because I didn't use gender neutral language?
Why is it so awful that I did a Javascript course? I didn't know where to start and Khan advertises this as a beginning point for programming...

I suppose Javascript is like the Wonderwall of programming? Well, you gotta start somewhere...

It was more that, given the way you seem to treat girls, your address of "Hi girls", seems to be you not taking this community very seriously, which is not a good signal to send if you are asking it for advice.

Anyway, javascript has a special place in hell reserved for it (next to php and perl which are legitimately awful programming languages), not because it is terrible, but because it is omnipresent and SHOULD NOT BE.

Javascript is acceptable, and pretty good at what it does AS LONG AS IT STAYS CLIENT SIDE AND RUNS IN A BROWSER. I have a passionate hatred for Node.JS, Tizen, and all other frameworks that try to drag Javascript to places it doesn't belong, when there are FAR better languages for each of those areas (Python, Ruby and even LUA come to mind) There is too much wrong with it to want it to be prevalent.



Well, you certainly have put much more thought into that than I ever did.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
June 25 2015 16:02 GMT
#12886
On June 25 2015 12:52 phar wrote:
Ok back up, I am confused. You are or aren't running out of memory? The initial post mentioned something about your data set getting paged out, yet you say you have only 10M edges, which should trivially fit in memory (like honestly 10M int is only 40MB or something). Where are you getting 8GB from??

I was under the impression that the data is so large that it doesn't fully fit into the cpu caches (seems likely but should be verified). If you want to get anything out of your caches, you have to keep your data in the cache for as long as possible. If you iterate 1,000 times over a sequence of 1,000,000 objects (assuming they don't fit into the cache as a whole) you will perform a lot worse than if you iterate 1,000 times over chunks of 1,000 objects each.
If you have a good reason to disagree with the above, please tell me. Thank you.
phar
Profile Joined August 2011
United States1080 Posts
June 26 2015 00:45 GMT
#12887
On June 26 2015 01:02 spinesheath wrote:
Show nested quote +
On June 25 2015 12:52 phar wrote:
Ok back up, I am confused. You are or aren't running out of memory? The initial post mentioned something about your data set getting paged out, yet you say you have only 10M edges, which should trivially fit in memory (like honestly 10M int is only 40MB or something). Where are you getting 8GB from??

I was under the impression that the data is so large that it doesn't fully fit into the cpu caches (seems likely but should be verified). If you want to get anything out of your caches, you have to keep your data in the cache for as long as possible. If you iterate 1,000 times over a sequence of 1,000,000 objects (assuming they don't fit into the cache as a whole) you will perform a lot worse than if you iterate 1,000 times over chunks of 1,000 objects each.

Yea but there's a fucking immense gap between "doesn't fit entirely in CPU cache" and "lookup takes 5 whole milliseconds". That's like almost on the order of disk access, which sounds very wrong. A memory access should take 50~100ns. Even if you've got crazy java objects inside objects inside objects, a dozen memory accesses should still be like a microsecond.
Who after all is today speaking about the destruction of the Armenians?
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2015-06-26 18:43:42
June 26 2015 18:42 GMT
#12888
I didn't say it takes 5ms. I said somewhere < 5ms. I never definitively timed an access, I just did a really poor division apparently. Been busy with exams this week and I don't think there's any more optimizations possible unless I find better algorithms. Going to switch to BitSet and see if that helps with space. The numbers probably closer to 600M contains operations divided by 35 seconds to run, so like 20 us? Is that a reasonable number?

I'm not running out of memory. I'm pretty sure somehow I'm using up more RAM than I can keep in memory at once because the random accesses from the large-ish ArrayList means the parts of the list have to be swapped out too much. I have 1GB of RAM available per user from the server but my usage when I run it is about 5~8GB. It seems like the set is smaller enough to fit, but I don't know why it bloated up to 5~8GB. I'll get more up-to-date numbers later.
There is no one like you in the universe.
phar
Profile Joined August 2011
United States1080 Posts
June 27 2015 00:18 GMT
#12889
Ok wait back up, why are you doing random access to a large array list? That right there is slow, because it's a linear time operation.
Who after all is today speaking about the destruction of the Armenians?
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
June 27 2015 05:41 GMT
#12890
I'm not doing random access, the edges in the graph are random so I have to retrieve the row for that edge randomly.
There is no one like you in the universe.
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2015-06-27 18:20:54
June 27 2015 18:17 GMT
#12891
Sorry, I mean this (my terminology is probably off):

Fast:

ArrayList<Bar> foo;

for (Bar b : foo) {
something(b);
}


Fast (this is probably what you would also call random access, my fault for using wrong word sorry):

ArrayList<Bar> foo;

Bar b = foo.get(index);


Slow:

ArrayList<Bar> foo;
Bar b;

if (foo.contains(b)) {
something(b);
}



This may be easier if you just post your code, I think we're having a hard time understanding exactly what your issue is because we're just guessing as to what it is you're doing exactly. In particular that high of memory usage seems wrong if your algorithm is supposed to be linaer space (it is linear space, yea? you're not using one of those crazy node^2.4 time / node^2 space complexity algorithms, right?)

20 microseconds for a single access into a HashSet or ImmutableSet still sounds kinda high. Though, for example, if you're using ImmutableSet and on an old version, there are some hilariously degenerate cases where a contains could take ~ms.
Who after all is today speaking about the destruction of the Armenians?
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
June 27 2015 18:52 GMT
#12892
I might be wrong here, but since arraylist is an implemented list in java, the get method shouldnt really be faster than contains depending on which element in the list you want to retrieve.
That's the 2nd time in a week I've seen someone sig a quote from this GD and I have never witnessed a sig quote happen in my TL history ever before. -Najda
phar
Profile Joined August 2011
United States1080 Posts
June 27 2015 19:00 GMT
#12893
contains on arraylist is linear, get is constant

I think Blisse's .contains calls are on HashSet or ImmutableSet or something, which should be constant (though for some cases it can be linear, which leads to all sorts of craziness). But, hard to say without seeing the code.
Who after all is today speaking about the destruction of the Armenians?
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
June 27 2015 19:28 GMT
#12894
Well i was wrong , I looked it up and youre right. Get is constant time for arraylists.
That's the 2nd time in a week I've seen someone sig a quote from this GD and I have never witnessed a sig quote happen in my TL history ever before. -Najda
Ben...
Profile Joined January 2011
Canada3485 Posts
June 28 2015 02:42 GMT
#12895
On June 25 2015 23:36 Acrofales wrote:
Anyway, javascript has a special place in hell reserved for it (next to php and perl which are legitimately awful programming languages), not because it is terrible, but because it is omnipresent and SHOULD NOT BE.

Javascript is acceptable, and pretty good at what it does AS LONG AS IT STAYS CLIENT SIDE AND RUNS IN A BROWSER. I have a passionate hatred for Node.JS, Tizen, and all other frameworks that try to drag Javascript to places it doesn't belong, when there are FAR better languages for each of those areas (Python, Ruby and even LUA come to mind) There is too much wrong with it to want it to be prevalent.


I would totally give you a high five if I saw you in person.

Seriously, why do people seem to think Javascript needs to be used for everything? Are they just lazy? Dumb? Both? Learning another programming language is not a difficult thing to do.

"Cliiiiiiiiiiiiiiiiide" -Tastosis
Manit0u
Profile Blog Joined August 2004
Poland17341 Posts
June 28 2015 14:50 GMT
#12896
On June 28 2015 11:42 Ben... wrote:
Show nested quote +
On June 25 2015 23:36 Acrofales wrote:
Anyway, javascript has a special place in hell reserved for it (next to php and perl which are legitimately awful programming languages), not because it is terrible, but because it is omnipresent and SHOULD NOT BE.

Javascript is acceptable, and pretty good at what it does AS LONG AS IT STAYS CLIENT SIDE AND RUNS IN A BROWSER. I have a passionate hatred for Node.JS, Tizen, and all other frameworks that try to drag Javascript to places it doesn't belong, when there are FAR better languages for each of those areas (Python, Ruby and even LUA come to mind) There is too much wrong with it to want it to be prevalent.


I would totally give you a high five if I saw you in person.

Seriously, why do people seem to think Javascript needs to be used for everything? Are they just lazy? Dumb? Both? Learning another programming language is not a difficult thing to do.



Most people think that if something "can" be used in a certain way, then it definitely "should".

And jus adding personal, unrelated rant:

Work planned to take 2 weeks with 6 people on the team. 4 people get transferred to final bugfixing for other critical project release. End up with 2 people (me and one other dude) and 1 week to get it all done. We almost made it, but I feel like a zombie right now after having spent 7 days working hard each day of the week. Still, 90% of the stuff was done and I am damn proud we managed to pull off that much.
Time is precious. Waste it wisely.
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
June 29 2015 10:37 GMT
#12897
On June 28 2015 23:50 Manit0u wrote:
Show nested quote +
On June 28 2015 11:42 Ben... wrote:
On June 25 2015 23:36 Acrofales wrote:
Anyway, javascript has a special place in hell reserved for it (next to php and perl which are legitimately awful programming languages), not because it is terrible, but because it is omnipresent and SHOULD NOT BE.

Javascript is acceptable, and pretty good at what it does AS LONG AS IT STAYS CLIENT SIDE AND RUNS IN A BROWSER. I have a passionate hatred for Node.JS, Tizen, and all other frameworks that try to drag Javascript to places it doesn't belong, when there are FAR better languages for each of those areas (Python, Ruby and even LUA come to mind) There is too much wrong with it to want it to be prevalent.


I would totally give you a high five if I saw you in person.

Seriously, why do people seem to think Javascript needs to be used for everything? Are they just lazy? Dumb? Both? Learning another programming language is not a difficult thing to do.



Most people think that if something "can" be used in a certain way, then it definitely "should".

And jus adding personal, unrelated rant:

Work planned to take 2 weeks with 6 people on the team. 4 people get transferred to final bugfixing for other critical project release. End up with 2 people (me and one other dude) and 1 week to get it all done. We almost made it, but I feel like a zombie right now after having spent 7 days working hard each day of the week. Still, 90% of the stuff was done and I am damn proud we managed to pull off that much.

wow wtf, you didnt got extra time for that stuff even while 75% of your teams capacity was pulled out?
The harder it becomes, the more you should focus on the basics.
Manit0u
Profile Blog Joined August 2004
Poland17341 Posts
June 29 2015 13:03 GMT
#12898
On June 29 2015 19:37 sabas123 wrote:
Show nested quote +
On June 28 2015 23:50 Manit0u wrote:
And jus adding personal, unrelated rant:

Work planned to take 2 weeks with 6 people on the team. 4 people get transferred to final bugfixing for other critical project release. End up with 2 people (me and one other dude) and 1 week to get it all done. We almost made it, but I feel like a zombie right now after having spent 7 days working hard each day of the week. Still, 90% of the stuff was done and I am damn proud we managed to pull off that much.

wow wtf, you didnt got extra time for that stuff even while 75% of your teams capacity was pulled out?


Life's not a fairy tale
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18049 Posts
June 29 2015 13:29 GMT
#12899
On June 29 2015 19:37 sabas123 wrote:
Show nested quote +
On June 28 2015 23:50 Manit0u wrote:
On June 28 2015 11:42 Ben... wrote:
On June 25 2015 23:36 Acrofales wrote:
Anyway, javascript has a special place in hell reserved for it (next to php and perl which are legitimately awful programming languages), not because it is terrible, but because it is omnipresent and SHOULD NOT BE.

Javascript is acceptable, and pretty good at what it does AS LONG AS IT STAYS CLIENT SIDE AND RUNS IN A BROWSER. I have a passionate hatred for Node.JS, Tizen, and all other frameworks that try to drag Javascript to places it doesn't belong, when there are FAR better languages for each of those areas (Python, Ruby and even LUA come to mind) There is too much wrong with it to want it to be prevalent.


I would totally give you a high five if I saw you in person.

Seriously, why do people seem to think Javascript needs to be used for everything? Are they just lazy? Dumb? Both? Learning another programming language is not a difficult thing to do.



Most people think that if something "can" be used in a certain way, then it definitely "should".

And jus adding personal, unrelated rant:

Work planned to take 2 weeks with 6 people on the team. 4 people get transferred to final bugfixing for other critical project release. End up with 2 people (me and one other dude) and 1 week to get it all done. We almost made it, but I feel like a zombie right now after having spent 7 days working hard each day of the week. Still, 90% of the stuff was done and I am damn proud we managed to pull off that much.

wow wtf, you didnt got extra time for that stuff even while 75% of your teams capacity was pulled out?


Welcome to the real world.
bangsholt
Profile Joined June 2011
Denmark138 Posts
June 29 2015 17:13 GMT
#12900
Meh - software engineering and computer science has this thing, where if you only work for the 40 hours you're supposed to and request actual overtime payment for your overtime. You're not a real programmer.

I'm very content with not being a real programmer
Prev 1 643 644 645 646 647 1031 Next
Please log in or register to reply.
Live Events Refresh
PiGosaur Monday
00:00
#49
davetesta55
Liquipedia
OSC
23:00
OSC Elite Rising Star #16
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 124
trigger 26
StarCraft: Brood War
Artosis 754
Backho 135
NaDa 14
Dota 2
monkeys_forever413
Counter-Strike
fl0m831
kRYSTAL_40
Super Smash Bros
C9.Mang0266
Mew2King0
Heroes of the Storm
NeuroSwarm127
Other Games
summit1g8349
Grubby3546
shahzam754
Day[9].tv651
ToD228
Sick162
Maynarde122
Trikslyr61
XaKoH 57
ViBE50
Organizations
Other Games
gamesdonequick627
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota22121
Other Games
• Scarra1178
• imaqtpie865
• Day9tv651
Upcoming Events
LiuLi Cup
10h 51m
OSC
18h 51m
RSL Revival
1d 9h
Maru vs Reynor
Cure vs TriGGeR
The PondCast
1d 12h
RSL Revival
2 days
Zoun vs Classic
Korean StarCraft League
3 days
BSL Open LAN 2025 - War…
3 days
RSL Revival
3 days
BSL Open LAN 2025 - War…
4 days
RSL Revival
4 days
[ Show More ]
Online Event
4 days
Wardi Open
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2025-09-10
Chzzk MurlocKing SC1 vs SC2 Cup #2
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL World Championship of Poland 2025
IPSL Winter 2025-26
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 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...

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.