« first day (2227 days earlier)      last day (2631 days later) » 

11:06 PM
Out of Curiosity, what text editors do we all use here?
 
SciTE and VSC
 
2 days ago, by DJMcMayhem
@ckjbgames I'm pretty sure everybody in here knows my favorite. ;)
 
Is it, Vim?
 
Weird comma.
 
How did you know? :P
 
11:09 PM
Not a weird comma, I did pause.
Similar, but not as lengthy a pause as to Is it... Vim?
 
It looks like you are asking someone called "Vim".
 
I guess tone is also important.
 
for some reason it took me one hour to get the eye to become blue
 
@ATaco Can't access strawpoll, put me down for Atom.
Or JetBrains
 
11:32 PM
@Riker : Please re‑read the question, that reference does no longer exists.
@flawr : maybe but if I ask it again, it would get closed as the question I asked. And I definitely fail to find what is the problem now since the edit.
 
Well, the problem is that the question is basically "Fill a file with 4gb of stuff and an arbitrary header"
 
Which is trivial. You might as well say "Write a valid ELF file that runs"
 
@ATaco : I deleted the 4Gb reference in my question.
 
Generally speaking, challenges that are "Write a particular file type" aren't well received.
 
@Pavel : I wrotethat can be loaded by Google Chrome’s Native client
 
11:38 PM
Compress the ELF header, throw in a while(os.clock()<NEXTBIGGESTANSWER)
Actually, you've removed that limit too, so you can just do while(os.clock()<9^9^9^9^9^9^9), which provable terminates and produces an unimaginably huge file.
 
Do ELF files support comments?
 
They have a noop.
 
@Pavel : they support comments. But I asked that it‘s up to executable section to be big.
 
@ATaco Awesome, write that for a few years.
 
f=io.open(".elf","w")
f:write(ELF_HEADER)
for n=0,n<9^9^9^9^9^9^9^9^9^9^9^9^9^9^9^9^9^9^9 do
	f:write(ELF_NOOP)
end
 
11:46 PM
while : do
echo ELF_NOOP>>.elf
end
I think I did that right
 
Well, that doesn't terminate.
So it can't count.
 
It terminates
The hard drive runs out of space.
 
-shrug-
 
@ATaco That sounds like you're asking what editor we use for golfing.
 
wait I can do better.
 
11:47 PM
I assume that doesn't particularly matter.
 
yes ELF_NOP>>.elf
 
@Pavel @ATaco : In both cases, the resulting file is invalid.
 
Well, I don't know the exact specifications of an ELF file.
 
@user2284570 Well, yeah, you need to put the header in.
But that's boring.
 
idk what to do
 
11:50 PM
@Pavel : I fail to see in your example what tell it is the.textsection you’re currently filling. And isn’t .text sections supposed to have a declared size inside the elf headers ?
 
/shrug
 
You were right. The question was unclear because you aren’t understanding it correctly. hence the new edit.
-4
Q: Shortest code to generate largest executable section inside an elf file

user2284570Your challenge is to create the shortest code in your language of choice or the tools of your choice (like objcopy) that will create an elf with a the executable section as large as possible. I mean that if I extract the.text section of the elf binary, the resulting extracted file should be at le...

 
@user2284570 post in sandbox first
remove it in main
 
Yeah I'm not reopen voting that.
It's not an interesting challenge.
 
@Pavel : just because it wasn’t posted in sandbox or because there’s still things to be fixed.
 
11:54 PM
The idea is to output as much as possible in a certain format.
With no other restrictions, you can just dump an arbitrary amount of nops in.
That's boring.
 
@Pavel : no I thought it would be boring. But it’s lot of harder than that. It requires a full library for parsing elf headers.
So I’m failing to have an answer that would use less than 100Gb of ram
because I’m unaware of an efficient library for creating elf headers.
 
You don't need a library to create an ELF file
 
@Pavel : for that same reason, you can’t create an elf file larger than 4Gb in the case of arm in my question. Because the integer telling the.textfile is 4 byte long.
 

« first day (2227 days earlier)      last day (2631 days later) »