<zenix_2k2>
i already had build-essential installed
<zenix_2k2>
but that error stil happens
<havenwood>
zenix_2k2: apt install cmake
dasher00 has quit [Ping timeout: 246 seconds]
<zenix_2k2>
also are all of these necessary ? i mean i was just following what the hackerone site told me to, to do it in a rails console but how about the interactive shell irb ?
<zenix_2k2>
can it also do that ?
<havenwood>
zenix_2k2: You can use Ruby from IRB without any of this fuss.
<havenwood>
zenix_2k2: There likely aren't many more deps to install to get a Rails console running, in any case.
<zenix_2k2>
yea, i am thinking of that also, let's me try the irb console instead
<havenwood>
?pry zenix_2k2
<ruby[bot]>
zenix_2k2: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (http://pry.github.io/): gem install pry pry-doc
<zenix_2k2>
oh cool then
<havenwood>
zenix_2k2: Either irb or pry are great.
<havenwood>
?irb
<ruby[bot]>
irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
dfucci has quit [Ping timeout: 264 seconds]
<zenix_2k2>
i do know about IRB tho, i did try it out, just not a rails console
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenix_2k2>
havenwood: ok so i tried to do what u told me to, run those commands in a pry, which the first line is "request = ActionDispatch::Request.new(Rails.application.env_config)", but it kinda results in a NameError, i think it doesn't recognize the ActionDispatch variable
<havenwood>
zenix_2k2: Yeah, ActionDispatch is a Rails thing, as is the `Rails` from Rails.application.
<zenix_2k2>
well then i think it is necessary to run those in a rails console then
<havenwood>
zenix_2k2: Yeah, that's the easiest way to run that command. Or you can require Rails from irb. I don't know if what you're running is specific to this app? If so, I'd just get the deps installed. If not, you can just create your own little Rails app with `rails new zenix`.
<havenwood>
zenix_2k2: If you just require Rails from irb you'll run into an issue that Rails.application will be `nil`. So this is just meant to be run from an app.
<zenix_2k2>
yes i am creating a project
<zenix_2k2>
but the created project sure has lots of subfolders and file, which should i put my codes in ?
<havenwood>
zenix_2k2: What are you doing?
<havenwood>
zenix_2k2: If you're making a Rails app, most of your code goes in the app/ directory.
<havenwood>
zenix_2k2: Yeah, up to you what you want to work on. Maybe look at a simple Rack app. Rails is a Rack framework that adds a ton on top but just plain Rack is easier to grok.
<havenwood>
zenix_2k2: Roda is a minimalist Rack framework that just adds a routing tree on top of Rack along with plugins to further extend features. http://roda.jeremyevans.net/
<zenix_2k2>
havenwood: i think rails is needed instead, also in the app/ folder there are still more subfolders so where should i put these codes in https://hackerone.com/reports/827052
<zenix_2k2>
if you scroll down a bit you will see a comment by a user named "vakzz"
<zenix_2k2>
that is what i meant instead
badeball has quit [Ping timeout: 260 seconds]
badeball has joined #ruby
roger_rabbit has quit [Ping timeout: 260 seconds]
nofxx_ has joined #ruby
prion has quit [Ping timeout: 246 seconds]
roger_rabbit has joined #ruby
wmoxam has quit [Ping timeout: 260 seconds]
wmoxam has joined #ruby
nofxx__ has quit [Ping timeout: 264 seconds]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
<entel>
zenix_2k2: are you editing an existing rails app?
howdoi has quit [Quit: Connection closed for inactivity]
<zenix_2k2>
entel: i don't think so, according to the PoC i think i has to run it locally without any preexisting project
<entel>
i use the sinatra framework but rails might be better depending on what you're doing
<zenix_2k2>
entel: according to the link above what do you think he is intending to do ?
cloud69 has quit [Quit: Connection closed for inactivity]
<zenix_2k2>
not the first post, but its commnet section, notice a comment which has "RCE" in it
<entel>
oh my bad yea its using rails looks like
<entel>
i havnt used it in years so i cant help too much
zenix_ has joined #ruby
zenix_ has quit [Remote host closed the connection]
al203-cr has joined #ruby
SuperLag has joined #ruby
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 268 seconds]
gueorgui has quit [Ping timeout: 256 seconds]
gueorgui has joined #ruby
cliluw has joined #ruby
zenix_2k2 has quit [Remote host closed the connection]
cliluw has quit [Ping timeout: 256 seconds]
cliluw has joined #ruby
chens has quit [Read error: Connection reset by peer]
<naftilos76>
Hi everyone, i have been struggling with ruby threads during the last few days and i was wondering which type of local variables i should be using. I mean, i can do local_var = 3 or Thread.current[:local_var] = 3 or Thread.current.thread_variable_set(:local_var, 3) . Since locals are limited within the scope of each thread block i do not have to use mutexes to restrict access to other threads from altering their content.
<nakilon>
naftilos76 my rule of thumb is that everything should be as local as possible
<nakilon>
but it has to be accessed from different threads that means it should not be local
<nakilon>
I guess mutexes are for wrapping some bigger things than just variable assignments
<naftilos76>
nakilon: my question was regarding the type of the local var. Is it ok to use either type?
prion has joined #ruby
dfucci has joined #ruby
jeromelanteri has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
dfucci has quit [Ping timeout: 264 seconds]
_whitelogger has joined #ruby
chens has joined #ruby
prion has quit [Ping timeout: 260 seconds]
dfucci has joined #ruby
siaw23 has joined #ruby
dfucci has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
<reaVer>
MERRY CHRISTMAST EVERYONE!
umjisus has quit [Ping timeout: 256 seconds]
TCZ has joined #ruby
umjisus has joined #ruby
_whitelogger has joined #ruby
TCZ has quit [Quit: Wawel - Czujesz sie dobrze, czynisz dobrze]
bruce_lee has quit [Quit: Konversation terminated!]
chens has quit [Remote host closed the connection]
TCZ has joined #ruby
TCZ has quit [Quit: Wawel - Czujesz sie dobrze, czynisz dobrze]
pitastrudl has left #ruby [#ruby]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
orien has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 268 seconds]
Fire-Dragon-DoL has joined #ruby
siaw23 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cd has quit [Quit: cd]
ua_ has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
ua has joined #ruby
orien has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siaw23 has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
_whitelogger has joined #ruby
<entel>
merry christmas reaVer
postmodern has quit [Quit: Leaving]
burgestrand has joined #ruby
lxsameer has joined #ruby
<lxsameer>
hey folks, is Ruby3 completely free from GIL ?
dfucci has joined #ruby
dfucci has quit [Ping timeout: 246 seconds]
prion has joined #ruby
naftilos76 has quit [Ping timeout: 260 seconds]
dfucci has joined #ruby
kristian_on_linu has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
BH23 has quit [Ping timeout: 246 seconds]
lucasb has joined #ruby
BH23 has joined #ruby
cliluw has joined #ruby
cliluw has quit [Ping timeout: 260 seconds]
Rudd0 has quit [Ping timeout: 240 seconds]
<burgestrand>
lxsameer no
<leah2>
best feature of ruby 3: backtraces are in proper order. second best feature: pasting to irb is fast. :p
al203-cr has quit [Ping timeout: 256 seconds]
<burgestrand>
:D
<lxsameer>
burgestrand: hmmm I though mr Sasada rewrote the vm to get rid of GIL in favor of fiber base concurrency
hiroaki has quit [Ping timeout: 272 seconds]
<burgestrand>
lxsameer I'm not sure what you're referring to — I'm aware of work on fiber schedulers, perhaps that's what you're thinking of?
<burgestrand>
lxsameer or maybe you're thinking of ractor?
BH23 has quit [Ping timeout: 256 seconds]
<lxsameer>
burgestrand: i'm trying to figure out whether ruby got rid of the GIL in v3 or not
<lxsameer>
because having GIL and fiber based concurrency doesn't go together
<burgestrand>
lxsameer in a sense yes, technically it's no longer global in the sense it was — by using multiple ractors you may run ruby code in parallel
<lxsameer>
burgestrand: goood
<burgestrand>
lxsameer when it comes to Fibers AFAIK they run on top of your current context, i.e. GIL and fiber-based concurrency does go together and they're not really affecting each other
BH23 has joined #ruby
hiroaki has joined #ruby
<burgestrand>
lxsameer in short: in a single process of ruby you may have multiple ractors, and in each ractor you may have multiple threads, and in each thread you may have multiple fibers :D
dionysus69 has joined #ruby
<lxsameer>
burgestrand: sound about right, now, the GIL is in ractor level or process level ?
<burgestrand>
lxsameer each ractor has its own GIL
<burgestrand>
lxsameer so I guess it's just an IL now :D
<lxsameer>
:))
<burgestrand>
lxsameer I'm not speaking from authority here, I don't work on the interpreter