• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 12:32
CET 17:32
KST 01:32
  • 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
ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
BGE Stara Zagora 2026 cancelled4Blizzard Classic Cup - Tastosis announced as captains12Weekly Cups (March 2-8): ByuN overcomes PvT block4GSL CK - New online series18BSL Season 224
StarCraft 2
General
Buy THC Vape Carts In Dubai telegram @greenplug420 BGE Stara Zagora 2026 cancelled BGE Stara Zagora 2026 announced ByuL: The Forgotten Master of ZvT Terran AddOns placement
Tourneys
https://www.facebook.com/BubaSocks.Official/ [GSL CK] Team Maru vs. Team herO WardiTV Team League Season 10 Master Swan Open (Global Bronze-Master 2) RSL Season 4 announced for March-April
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 516 Specter of Death Mutation # 515 Together Forever Mutation # 514 Ulnar New Year
Brood War
General
ASL21 General Discussion BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Gypsy to Korea Are you ready for ASL 21? Hype VIDEO
Tourneys
[Megathread] Daily Proleagues [BSL22] Open Qualifiers & Ladder Tours IPSL Spring 2026 is here! ASL Season 21 Qualifiers March 7-8
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Zealot bombing is no longer popular?
Other Games
General Games
Nintendo Switch Thread PC Games Sales Thread Path of Exile No Man's Sky (PS4 and PC) Stormgate/Frost Giant Megathread
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
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
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Mexico's Drug War NASA and the Private Sector Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Movie Discussion! [Req][Books] Good Fantasy/SciFi books [Manga] One Piece
Sports
Formula 1 Discussion 2024 - 2026 Football Thread General nutrition recommendations Cricket [SPORT] TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Gaming-Related Deaths
TrAiDoS
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 3167 users

The Big Programming Thread - Page 82

Forum Index > General Forum
Post a Reply
Prev 1 80 81 82 83 84 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.
tec27
Profile Blog Joined June 2004
United States3702 Posts
October 03 2011 01:55 GMT
#1621
On October 03 2011 10:43 Weson wrote:
I got a question...
I've just started a course in Flash and actionscript and the whole course is based on actionscript 2. I've done some programming in as2 before and could go through this course without putting much efforet in to it.
My teacher wants us to program in AS2 and almost begs us to do so because he says that AS3 is hard to learn and can be really confusing.
I get easily bored if i have to learn things i already know (like watching some online tutorial on how to make a button....) so i wonder if it's a good idea to learn AS3 instead? Or are there no benefits to it?

Personally I would just try to spend your time learning something non-flash. Flash is pretty much on the way out as far as web stuff goes. Maybe you could spend that time learning something like Javascript instead? It would be similar since they're both dialects of ECMAScript and would also have more use to you if you decide to build regular websites or maybe even servers through NodeJS.
Can you jam with the console cowboys in cyberspace?
Nanar
Profile Joined July 2011
United States16 Posts
October 03 2011 02:33 GMT
#1622
Does anyone have any links for Assembly Language programming? I'm a Comp Sci major and I'm completely and utterly lost in my Assembly Language class.
tofucake
Profile Blog Joined October 2009
Hyrule19194 Posts
October 03 2011 02:42 GMT
#1623
Which assembly?
Liquipediaasante sana squash banana
Weson
Profile Blog Joined December 2010
Iceland1032 Posts
October 03 2011 04:27 GMT
#1624
On October 03 2011 10:55 tec27 wrote:
Show nested quote +
On October 03 2011 10:43 Weson wrote:
I got a question...
I've just started a course in Flash and actionscript and the whole course is based on actionscript 2. I've done some programming in as2 before and could go through this course without putting much efforet in to it.
My teacher wants us to program in AS2 and almost begs us to do so because he says that AS3 is hard to learn and can be really confusing.
I get easily bored if i have to learn things i already know (like watching some online tutorial on how to make a button....) so i wonder if it's a good idea to learn AS3 instead? Or are there no benefits to it?

Personally I would just try to spend your time learning something non-flash. Flash is pretty much on the way out as far as web stuff goes. Maybe you could spend that time learning something like Javascript instead? It would be similar since they're both dialects of ECMAScript and would also have more use to you if you decide to build regular websites or maybe even servers through NodeJS.

We will have some courses in javascript in spring. It's just that i got to chose now what Actionscript version i'll go for. Will i benefit from learning AS3 more than AS2? or is it basicly a waste of time? I'm having a course in XHTML/CSS at the same time and would it be smart to breeze through flash actionscript 2 and go full on XHTML/CSS?
"!@€#" - as some guy said
alwinuz
Profile Joined September 2011
Netherlands77 Posts
October 03 2011 04:38 GMT
#1625
On October 03 2011 04:43 EvanED wrote:
Show nested quote +
On October 02 2011 20:07 KaiserJohan wrote:
On October 02 2011 19:33 Morfildur wrote:
On October 02 2011 12:42 Millitron wrote:
On September 29 2011 05:02 gullberg wrote:
Aaaah man.... Everything was going so well in my programming course until we got to linked lists, abstract queues and all that. Classes/objects are fucked up. FML

Think of a class like the blueprint for a house's construction, with the object being the finished house.

As for linked lists, think of them like your browser's forward and back buttons. You can only go forward or back one page at a time. Just like in the linked lists, you can only go forward or back one node at a time.

Never heard of abstract queues, can't help ya there.


IIRC Abstract Queues are just queues that work for any type, like:

class Queue<T>
{
public void Enqueue(T item) {...}
public T Dequeue() {...}
}

So just a fancy name for something that is actually quite simple, though from my experience, 90% of what programming professors seem to do is finding fancy names for simple things people do since the dawn of programming, just to scare and confuse students.


If so, abstract queues is a really dumb name, it would get you thinking about abstract classes. General queues or whatever sounds more proper, but as you say, professors loves dem fancy names' :p

The "abstract" part of "abstract queue" comes more from the fact that it doesn't specify how the implementation works, and isn't particularly related to the fact that the collection is parameterized. In other words, it's abstract because you don't know if it's implemented with an array, a linked list, or some other data structure. (That's not the whole story and it'd be possible to write a bit more about that -- in particular it doesn't say why it should be distinct from the Queue interface -- but that's the main bit.) In particular, the generics parameterization is basically unrelated.

And if it makes you think abstract class, that's good... because it is one, and that's also related to the name. :-)


Why an abstract class and not an interface?
SunDown
Profile Joined March 2010
52 Posts
October 03 2011 04:43 GMT
#1626
On October 03 2011 13:27 Weson wrote:
Show nested quote +
On October 03 2011 10:55 tec27 wrote:
On October 03 2011 10:43 Weson wrote:
I got a question...
I've just started a course in Flash and actionscript and the whole course is based on actionscript 2. I've done some programming in as2 before and could go through this course without putting much efforet in to it.
My teacher wants us to program in AS2 and almost begs us to do so because he says that AS3 is hard to learn and can be really confusing.
I get easily bored if i have to learn things i already know (like watching some online tutorial on how to make a button....) so i wonder if it's a good idea to learn AS3 instead? Or are there no benefits to it?

Personally I would just try to spend your time learning something non-flash. Flash is pretty much on the way out as far as web stuff goes. Maybe you could spend that time learning something like Javascript instead? It would be similar since they're both dialects of ECMAScript and would also have more use to you if you decide to build regular websites or maybe even servers through NodeJS.

We will have some courses in javascript in spring. It's just that i got to chose now what Actionscript version i'll go for. Will i benefit from learning AS3 more than AS2? or is it basicly a waste of time? I'm having a course in XHTML/CSS at the same time and would it be smart to breeze through flash actionscript 2 and go full on XHTML/CSS?

I'm a web/flash developer.

First, Flash has a niche that won't go away for a while. Entertainment/rich media websites. HTML5/Canvas is really no substitute yet for rich media apps, and won't be for a long time. To say "Flash is on it's way out" is incorrect; it's role is becoming more focused.

AS3 is a modern programming language. Classes and scoping works as it should. Contrast with AS2, which is very different from Java/JS/C in terms of organization and how you build apps. The transition from AS2 to Java, or an object based framework for Javascript (like Mootools) will be much more difficult. Skills you learn from AS3 are directly translatable to modern object based languages, it's just a syntax change and learning libraries. This isn't true for AS2.

My advice is try to jump to AS3 now. When I made the jump, it took a while because AS2 was the first programming language I spent significant time with and some aspects are so different in AS3. However, stick with it for a little bit and you'll be much better off.

As you go through your course, I suspect your teacher might be breaking a lot of fundamentals like encapsulation if he believes AS3 is so much harder to learn. Just be aware that if he teaches in AS2, you might have to re-organize (not just change the syntax of) his examples to work in AS3. This is for the better, in the long run.
Hi
Chaosvuistje
Profile Joined April 2010
Netherlands2581 Posts
October 03 2011 06:47 GMT
#1627
On October 03 2011 13:27 Weson wrote:
Show nested quote +
On October 03 2011 10:55 tec27 wrote:
On October 03 2011 10:43 Weson wrote:
I got a question...
I've just started a course in Flash and actionscript and the whole course is based on actionscript 2. I've done some programming in as2 before and could go through this course without putting much efforet in to it.
My teacher wants us to program in AS2 and almost begs us to do so because he says that AS3 is hard to learn and can be really confusing.
I get easily bored if i have to learn things i already know (like watching some online tutorial on how to make a button....) so i wonder if it's a good idea to learn AS3 instead? Or are there no benefits to it?

Personally I would just try to spend your time learning something non-flash. Flash is pretty much on the way out as far as web stuff goes. Maybe you could spend that time learning something like Javascript instead? It would be similar since they're both dialects of ECMAScript and would also have more use to you if you decide to build regular websites or maybe even servers through NodeJS.

We will have some courses in javascript in spring. It's just that i got to chose now what Actionscript version i'll go for. Will i benefit from learning AS3 more than AS2? or is it basicly a waste of time? I'm having a course in XHTML/CSS at the same time and would it be smart to breeze through flash actionscript 2 and go full on XHTML/CSS?


No, just flipping... I'll tell you what's up.

AS3 was the first real OOP language I learned. I had to learn AS2 back then too, but I protested because it was a dated language and did all my assignments in AS3 without the help of my teachers. As a result, I really got what the basics of OOP were like classes, functions, eventlisteners and variables. I could make sense of the code I was writing.

Then in the same course, we headed over to PHP. Safe to say more than half of the class complained that it was too hard and abstract to learn ( lol, not that that was surprising. Most of them didn't want to code or program a single thing because it was 'nerdy' ). I needed to ask one single question to the teacher at the start and I could simply breeze through the whole course.

AS3 is a good way to start programming because it is so visual. Sure you will be coding procedural at the start. But everyone starts that way. Personally I bought Essential Actionscript 3 from O' Reilly. It helped me a lot in figuring things out, although it was hard at times.

If you are passionate about making stuff for the Web, do AS3. If you just want to get a nice grade now and pass your web stuff easily, do AS2. But if they at some point move over to PHP, it WILL bite you in the butt I can assure you that.
Denar
Profile Blog Joined March 2011
France1633 Posts
October 03 2011 07:05 GMT
#1628
On October 03 2011 11:33 Nanar wrote:
Does anyone have any links for Assembly Language programming? I'm a Comp Sci major and I'm completely and utterly lost in my Assembly Language class.


If you talk about x86 assembly, you can take a look here : http://www.cs.virginia.edu/~evans/cs216/guides/x86.html

There is not a lot of documentation about it even though some people still work mainly in assembly nowadays
NikonTC
Profile Joined September 2010
United Kingdom418 Posts
Last Edited: 2011-10-03 08:06:22
October 03 2011 08:05 GMT
#1629
Is anyone able to tell me about getting a job in the programming industry? I recently graduated from university with a degree that is computing related (digital media) but mostly on the creative/web side of things. I've since decided that I'd rather do something more programming related along the lines of Java, C#, SQL etc. My dissertation was a Java project that I chose to do because i wanted to learn a bit about OO programming, and I'm currently teaching myself C# from books, but I'm wondering if its possible to go to a company that has entry level coding positions and even get a look in without some sort of specific "I am a programmer" qualifications.
"IdrA crushes the marine push, absolutely demolishes this 2 rax play. Would not be suprised to see a GG from IdrA at any moment" Day[9]
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
October 03 2011 13:26 GMT
#1630
On October 03 2011 17:05 NikonTC wrote:
Is anyone able to tell me about getting a job in the programming industry? I recently graduated from university with a degree that is computing related (digital media) but mostly on the creative/web side of things. I've since decided that I'd rather do something more programming related along the lines of Java, C#, SQL etc. My dissertation was a Java project that I chose to do because i wanted to learn a bit about OO programming, and I'm currently teaching myself C# from books, but I'm wondering if its possible to go to a company that has entry level coding positions and even get a look in without some sort of specific "I am a programmer" qualifications.


It's hard to get a job as programmer without formal education as one and without job experience. I would suggest starting as web designer and then transition into programming from there.

Sadly, a lot of companies don't care about "I taught myself language X", probably because many who say that don't know more than the syntax and can't actually program anything more than hello worlds.

catamorphist
Profile Joined May 2010
United States297 Posts
October 03 2011 13:42 GMT
#1631
On October 03 2011 17:05 NikonTC wrote:
Is anyone able to tell me about getting a job in the programming industry? I recently graduated from university with a degree that is computing related (digital media) but mostly on the creative/web side of things. I've since decided that I'd rather do something more programming related along the lines of Java, C#, SQL etc. My dissertation was a Java project that I chose to do because i wanted to learn a bit about OO programming, and I'm currently teaching myself C# from books, but I'm wondering if its possible to go to a company that has entry level coding positions and even get a look in without some sort of specific "I am a programmer" qualifications.


The biggest "I am a programmer" qualification is a body of work that you can present. You should find a project you're interested in and work on it, preferably collaborating with others. As a dude who interviews people, the only thing more convincing than looking at good code you've written is looking at the commit history on the good code you've written.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
EvanED
Profile Joined October 2009
United States111 Posts
Last Edited: 2011-10-03 14:29:00
October 03 2011 14:26 GMT
#1632
On October 03 2011 13:38 alwinuz wrote:
Show nested quote +
On October 03 2011 04:43 EvanED wrote:
The "abstract" part of "abstract queue" comes more from the fact that it doesn't specify how the implementation works, and isn't particularly related to the fact that the collection is parameterized. In other words, it's abstract because you don't know if it's implemented with an array, a linked list, or some other data structure. (That's not the whole story and it'd be possible to write a bit more about that -- in particular it doesn't say why it should be distinct from the Queue interface -- but that's the main bit.) In particular, the generics parameterization is basically unrelated.

And if it makes you think abstract class, that's good... because it is one, and that's also related to the name. :-)


Why an abstract class and not an interface?

They provide a partial implementation.

It might be easier to understand that by looking at AbstractCollection.If you have some new idea for a collection, you can extend AbstractCollection instead of implementing Collection and do way less work.

For full functionality, the only functions you need to write are add(E obj), iterator(), and size(). That's three functions instead of the 15 of the Collection interface.

The AbstractCollection will do things like provide contains(Object o) by calling iterator() and walking over the collection for you. You are, of course, free to override more of those methods if you have a better implementation.
NikonTC
Profile Joined September 2010
United Kingdom418 Posts
October 03 2011 16:55 GMT
#1633
On October 03 2011 22:26 Morfildur wrote:
Show nested quote +
On October 03 2011 17:05 NikonTC wrote:
Is anyone able to tell me about getting a job in the programming industry? I recently graduated from university with a degree that is computing related (digital media) but mostly on the creative/web side of things. I've since decided that I'd rather do something more programming related along the lines of Java, C#, SQL etc. My dissertation was a Java project that I chose to do because i wanted to learn a bit about OO programming, and I'm currently teaching myself C# from books, but I'm wondering if its possible to go to a company that has entry level coding positions and even get a look in without some sort of specific "I am a programmer" qualifications.


It's hard to get a job as programmer without formal education as one and without job experience. I would suggest starting as web designer and then transition into programming from there.

Sadly, a lot of companies don't care about "I taught myself language X", probably because many who say that don't know more than the syntax and can't actually program anything more than hello worlds.



That's disheartening. I was really hoping to avoid going into web design, partly because I didn't enjoy it and also partly because I just wasn't very good at it... I'm probably a better programmer now than I was a web designer (not saying much).

There's a project for the local church that my Dad was doing in his spare time. I was considering taking it off him and having a go at it, partly because it's a nice straightforward project that I can handle with my current C#/SQL knowledge, and partly because I was hoping it would count towards the "commercial experience" that companies are interested in. It would be unpaid, though, so I'm not sure if that counts against me.

Starting to get slightly worried about my job prospects however. I really don't know if there's a place for me in the IT industry right now, and god knows where else I'd go.
"IdrA crushes the marine push, absolutely demolishes this 2 rax play. Would not be suprised to see a GG from IdrA at any moment" Day[9]
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
October 03 2011 17:05 GMT
#1634
On October 04 2011 01:55 NikonTC wrote:
Show nested quote +
On October 03 2011 22:26 Morfildur wrote:
On October 03 2011 17:05 NikonTC wrote:
Is anyone able to tell me about getting a job in the programming industry? I recently graduated from university with a degree that is computing related (digital media) but mostly on the creative/web side of things. I've since decided that I'd rather do something more programming related along the lines of Java, C#, SQL etc. My dissertation was a Java project that I chose to do because i wanted to learn a bit about OO programming, and I'm currently teaching myself C# from books, but I'm wondering if its possible to go to a company that has entry level coding positions and even get a look in without some sort of specific "I am a programmer" qualifications.


It's hard to get a job as programmer without formal education as one and without job experience. I would suggest starting as web designer and then transition into programming from there.

Sadly, a lot of companies don't care about "I taught myself language X", probably because many who say that don't know more than the syntax and can't actually program anything more than hello worlds.



That's disheartening. I was really hoping to avoid going into web design, partly because I didn't enjoy it and also partly because I just wasn't very good at it... I'm probably a better programmer now than I was a web designer (not saying much).

There's a project for the local church that my Dad was doing in his spare time. I was considering taking it off him and having a go at it, partly because it's a nice straightforward project that I can handle with my current C#/SQL knowledge, and partly because I was hoping it would count towards the "commercial experience" that companies are interested in. It would be unpaid, though, so I'm not sure if that counts against me.

Starting to get slightly worried about my job prospects however. I really don't know if there's a place for me in the IT industry right now, and god knows where else I'd go.


Do it.
Every finished project you can put on your resume increases your chances to get a job as a programmer.

And just apply everywhere, you can always get lucky anyways.
heishe
Profile Blog Joined June 2009
Germany2284 Posts
October 03 2011 17:36 GMT
#1635
On October 03 2011 02:36 HowitZer wrote:
Show nested quote +
On October 02 2011 20:56 heishe wrote:
By the way, academic programming courses are usually pretty bad. The problem is that programming doesn't ever have general cases of problems which can be solved with general methods, ...


I'm content with the programming classes I took in college insofar as they prepared me for the real programming based job I have now. I think I've applied 75% of what I did in my programming classes to real world problems. It was never a problem in college to find a generic problem to apply some programming method to.



You kinda cut off the point of my statement. I know that you learn some things there that you'll need later, but I think nothing that you learn in one of those courses can't be picked up a lot quicker by reading a tutorial or a good book.

Or can you provide a counter example?
If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
October 03 2011 20:06 GMT
#1636
On October 04 2011 02:36 heishe wrote:
Show nested quote +
On October 03 2011 02:36 HowitZer wrote:
On October 02 2011 20:56 heishe wrote:
By the way, academic programming courses are usually pretty bad. The problem is that programming doesn't ever have general cases of problems which can be solved with general methods, ...


I'm content with the programming classes I took in college insofar as they prepared me for the real programming based job I have now. I think I've applied 75% of what I did in my programming classes to real world problems. It was never a problem in college to find a generic problem to apply some programming method to.



You kinda cut off the point of my statement. I know that you learn some things there that you'll need later, but I think nothing that you learn in one of those courses can't be picked up a lot quicker by reading a tutorial or a good book.

Or can you provide a counter example?


I agree with you, though the fact that 90% of the people that studied programming know less than me before i began my traineeship might distort my judgement.

I always say: Programmers are born - not made.

Either you program even long before you start to study it - which means you won't learn much in college/university - or you will be just another of those mediocre-at-best programmers that make me rage whenever i have to maintain their code -.-

+ Show Spoiler [True Fact:] +
95% of all programmers couldn't write maintainable code if their life depended on it

Thorakh
Profile Joined April 2011
Netherlands1788 Posts
October 03 2011 20:12 GMT
#1637
95% of all programmers couldn't write maintainable code if their life depended on it
I always hear people talking about this, but what do you exactly mean by that? Can you give any examples?
Black Gun
Profile Blog Joined July 2009
Germany4482 Posts
Last Edited: 2011-10-03 20:20:40
October 03 2011 20:20 GMT
#1638
just a little question by an almost complete noob, sorry if it doesnt fit in here:

is it possible to hand over functions as arguments to C (not C++ !) or fortran function calls?

im a statistician that is working in a field of research where estimating algorithms arent very developed yet, but speed plays a role. to achieve speed-ups, the core fitting routines of our estimating algorithms are often times written in C or fortran instead of the default language of our field (R, if anybody knows it... an interpreter languague, so its not the fastest thing possible...). now i found this really interesting algorithm that seems to be general purpose for the class of problems that i am doing research on. therefore, i consider implementing the core parts of it in C to make it faster - but i have no clue about C, i would have to leapfrog through it using source code of the C-calls from other R-functions to learn it on the fly.

the main obstacle however is that my general purpose C-function would have to use a "gradient" argument which is a user-specified function that depends on the concrete type of data. so what i want to do is to define a function in the toplevel code (R) and pass it on as an argument to the call to C. is something like that possible?
"What am I supposed to do against this?" - "Lose!" :-]
vyyye
Profile Joined July 2010
Sweden3917 Posts
October 03 2011 20:22 GMT
#1639
Slightly retarded question, but how do you navigate the Java API? I opened it a bunch of times, I'm met with a box with links and some stuff on the sidebar, but I have no idea how or where I should look for anything. Tried clicking about but not getting wiser.

I'm really new to programming as a whole, maybe that's why? Used a For Dummies book a bit which kept advising to look X up in the API and eh, not quite working out.
Denar
Profile Blog Joined March 2011
France1633 Posts
October 03 2011 20:25 GMT
#1640
On October 04 2011 05:20 Black Gun wrote:
just a little question by an almost complete noob, sorry if it doesnt fit in here:

is it possible to hand over functions as arguments to C (not C++ !) or fortran function calls?

im a statistician that is working in a field of research where estimating algorithms arent very developed yet, but speed plays a role. to achieve speed-ups, the core fitting routines of our estimating algorithms are often times written in C or fortran instead of the default language of our field (R, if anybody knows it... an interpreter languague, so its not the fastest thing possible...). now i found this really interesting algorithm that seems to be general purpose for the class of problems that i am doing research on. therefore, i consider implementing the core parts of it in C to make it faster - but i have no clue about C, i would have to leapfrog through it using source code of the C-calls from other R-functions to learn it on the fly.

the main obstacle however is that my general purpose C-function would have to use a "gradient" argument which is a user-specified function that depends on the concrete type of data. so what i want to do is to define a function in the toplevel code (R) and pass it on as an argument to the call to C. is something like that possible?


It is absolutely possible. You use a function pointer for this purpose, take a look here : http://www.newty.de/fpt/index.html
Prev 1 80 81 82 83 84 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 7h 29m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 647
Harstem 211
LamboSC2 175
trigger 45
Livibee 37
RushiSC 14
StarCraft: Brood War
Britney 29978
Mini 808
BeSt 364
Light 230
Rush 211
IntoTheRainbow 48
sorry 41
Rock 38
Backho 33
Mind 27
[ Show more ]
scan(afreeca) 21
NotJumperer 20
GoRush 17
Dota 2
Gorgc5144
qojqva2040
Counter-Strike
fl0m5161
byalli333
Heroes of the Storm
Khaldor155
Other Games
singsing2206
Grubby1253
B2W.Neo775
Beastyqt611
Lowko428
Mlord318
KnowMe142
Liquid`VortiX72
QueenE52
DeMusliM45
BananaSlamJamma45
ArmadaUGS41
Organizations
Dota 2
PGL Dota 2 - Main Stream15887
Other Games
gamesdonequick817
BasetradeTV162
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• StrangeGG 51
• poizon28 37
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis7389
• Jankos1970
• TFBlade777
• Shiphtur178
Upcoming Events
Replay Cast
7h 29m
CranKy Ducklings
17h 29m
RSL Revival
17h 29m
MaxPax vs Rogue
Clem vs Bunny
WardiTV Team League
19h 29m
uThermal 2v2 Circuit
1d
Patches Events
1d
BSL
1d 3h
Sparkling Tuna Cup
1d 17h
RSL Revival
1d 17h
ByuN vs SHIN
Maru vs Krystianer
WardiTV Team League
1d 19h
[ Show More ]
BSL
2 days
Replay Cast
2 days
Replay Cast
2 days
Wardi Open
2 days
Monday Night Weeklies
3 days
WardiTV Team League
3 days
GSL
4 days
The PondCast
5 days
WardiTV Team League
5 days
Replay Cast
6 days
WardiTV Team League
6 days
Liquipedia Results

Completed

Proleague 2026-03-12
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
RSL Revival: Season 4
Nations Cup 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Elite League 2026
ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
Acropolis #4
IPSL Spring 2026
CSLAN 4
HSC XXIX
uThermal 2v2 2026 Main Event
NationLESS Cup
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
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 © 2026 TLnet. All Rights Reserved.