« first day (1033 days earlier)      last day (2593 days later) » 

3:27 AM
hey can anybody help me with creating an iterator in C?
 
 
6 hours later…
9:36 AM
@Kane "an iterator in C"?
 
9:46 AM
0
Q: How to find out encapsulated protocol inside IEEE802.11 Frame?

SuBI'm developing a IEEE802.11 frame parser program using libpcap inside Linux with raw C. I can parse RadioTap and IEEE802.11 headers easily but I can't find out the protocol name which is encapsulated inside the IEEE802.11 MPDU. Unfortunatly there isn't any field in IEEE802.11 header indicating th...

 
@BartekBanachewicz what is wrong with it? C has everything you will ever need to create iterators, generators, closures, etc. It is another question though, wether you should create one or not :)
@Kane what have you got so far?
 
@PeterVaro it really doesn't
 
wanna bet?
;)
 
on "you will ever need"?
I think it's a pointless thing to prove that you can implement a concept of an iterator, somehow.
if the language doesn't give me the tools to implement something that can be used, I think it's fair to say it doesn't give me the tools to implement it.
or we can spend the next hour discussing how Game Of Life and Brainfuck can express closures and generators
 
well, it depends on your understanding on these higher level objects: just because the language does not provide me syntactic sugars to easily create them, it does not mean the language does not support them
 
10:00 AM
@PeterVaro what would mean that a language doesn't support them, then? Where's your threshold for that?
e.g. I could say that all languages support writing ultra-efficient code
 
well, I'm not familiar with the modern version of SASS/SCSS, but a few years ago, it would have been impossible to create an iterator in it
 
@PeterVaro CSS is turing complete with HTML added
 
well.. on a second thought..
@BartekBanachewicz SASS/SCSS != CSS
 
@PeterVaro oh well
so let's stick to turing complete ones
 
I think SASS/SCSS is turing complete alone
 
10:03 AM
So the only distinction about PLs you can make is whether they're turing complete or not, and that determines everything they "support"?
 
anyway, I have two thresholds: 1. is it possible? 2. is it worth it?
for the first: my threshold is very low
 
Well then C clearly doesn't meet the 2nd one in all 3 cases
 
for the second, mine is very high
I think implementing these higher level concepts in C has two advantages, if you ask me: 1. for learning purposes -- you will understand the consequences of using such concepts in terms of memory and efficiency, which leads you to better understanding on these concepts
2. even in C, sometimes using these can give you safety features, which are otherwise not present
 
(I'll bbl, I have work to do :/ )
 
 
3 hours later…
1:04 PM
@BartekBanachewicz thanx ... I missed you message yerterday but I saw it via notification
 
 
2 hours later…
2:43 PM
@PeterVaro but using those is a pain
@louigi600 btw, you can reply to messages directly
 
@BartekBanachewicz obviously they are not convenient and even in some cases, they need forced conventions, but it is doable, and sometimes it can be prefered.. anyway, I'm gladly talk about this, as a matter of fact I already started writing articles about implementing high level concepts in C to use them in C, however I have to work now, payment/tax stuff, very serious, etc. :P but at night I will be available to argue!
 
@PeterVaro I might pop in later
We can talk about how Terra is vastly superior to C in that regard :D
 
 
5 hours later…
8:03 PM
As I've told you already -- for the last two years at least -- comparing languages all the time, and trying to prove why the other one is much is not really productive. Everyone here, and even the new comers are 1. already speaking several languages, 2. using C because of studies, meaning they will use an other language either this or the next semester. Not to mention, we are all aware of the flaws of our beloved language.
On the other hand, arguing about implementing higher level concepts in C is a very interesting subject, and one can even think about it as a challenge, an interesting exercise.
So, I am, and all the others here are always open to discuss, or even argue about these concepts, but we are not really interested in holy wars anymore :)
I thought it would be nice to tell these, regarding your last message here :P
*is much better
 
8:25 PM
helloc @IljaEverilä; // 'sup?
 
helloc @PeterVaro;
Tryinna write yet another l10n system for React.
Because as is the tradition, the existing ones suck ;)
...Actually I'm just lazy and got really really bored writing stuff like <p>{ translate("some.logical.id.shit") }</p> over and over.
Hence this
+ That style does not support reordering elements in any sane fashion. Got used to Genshi, Kajiki, and Tonnikala in Python land, which all handle translations transparently.
 
I wish I could say it is good -- but I'm trying not to get my hands dirty with react :P
 
Tried AngularJS some, but the current project at work is React.
 
@IljaEverilä btw, if you have chrome + tamper-monkey or ff + grease-monkey, you should use Chat-Lang User Script -- it is not mandatory though, just sayin' :P
 
8:40 PM
Been wondering about that, actually.
 
@IljaEverilä nah, as far as I can tell React is better, when I said I don't want to get my hands dirty I meant: I will wait for WASM, it is around the corner, and I will develop apps in <any other lang than JS, which can be compiled into WASM> :P
 
Didn't they have some proof of concept C++ -> WASM stuff early on?
 
the script is a simple one, but gives you tons of shortcuts and the nice linked-greetings
I think they have, at least FF
I already saw Lua VM built on WASM on FF 52
 
Btw this current translation stuff is well separated from actual React. More about AST reprogramming.
 
it was a week ago, or something like that
@IljaEverilä look:
 
8:51 PM
We're living in strange times :P
 
are we?
 
It'll be fun having a working Python interpreter in browsers :D
 
or even better: writing apps in C and compile them for the browser :)
 
But anyway it's interesting that a new bytecode VM arises, where on the other hand Java has mostly failed.
In browsers, that is.
 
that is an interesting observation indeed!
 
8:55 PM
The early Java stuff was no walk in the park though :P
 
okay, I think I know exactly what I'm going to do this evening/night:
the emscripten is almost installed..
 

« first day (1033 days earlier)      last day (2593 days later) »