Displaying 20 results from an estimated 300 matches similar to: "Saturating float-to-int casts"
2018 Nov 11
3
A stage2 build causes changes to libllvm impacting program using it (exemple: rustc)
Hello,
Lately, I have been working on moving Debian & Ubuntu packages to a
stage2 build.
This means that, instead of shipping llvm-toolchain packages built with
gcc, we are rebuilding
everything a second time using the newly built clang.
Now, when pushed to Debian, it caused some unexpected issues in
particular with rust reported here:
2006 May 19
2
How to run direct DML (insert or update)
I want when the user clicks on a button on the browser
"Perform monthly billing run" the controller to lanch a sql DML
statment to be called (in the model?) than runs something like
"insert into billing (item, qnt, total_cost, billing_run_timestamp
select item, qnt, item*cost as total_cost, timestamp
from services
where service_end_date is null"
How can I run a DML
2018 Nov 05
5
Safe fptoui/fptosi casts
I would be interested in learning what the set of used semantics for
float-to-int conversion is. If the only two used are 1) undefined behavior
if unrepresentable and 2) saturate to int_{min,max} with NaN going to zero,
then I think it makes sense to expose both of those natively in the IR. If
the set is much larger, I think separate intrinsics for each behavior would
make sense. It would be nice
2008 Jan 30
0
Besoin d'un Financement rapide ?
[1]Si vous n'arrivez pas ? lire correctement ce message cliquez ici
[2]Disponis le crdit selon vous
[3][email-noel_02.gif]
[4][email-noel_03.gif]
[5][email-noel_04.gif]
[6][email-noel_05.gif]
[7][email-noel_06.gif]
2006 Mar 05
0
Can I execute DML from within Rails?
Is it possible to execute a DML statement against a MySQL database from
within Rails? I have a table I''m using for batch processing. It needs to be
truncated to reset the primary key before each batch insert statement. I
looked at the API here:
http://api.rubyonrails.com/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html#M000532
and didn''t notice anything that
2019 Oct 10
2
[RFC] Use of saturating intrinsics
Hello all again, take 2.
Over in D68651 I would like to make code that attempt to saturate an value (using higher bitwidth integers) use a saturating intrinsic instead. Something like this:
https://godbolt.org/z/9knBnP
As can be seen, the unsigned cases are already being matched to llvm.uadd.sat intrinsics. I am hoping to extend that to the signed cases. This has numerous benefits including
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 18
3
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
Scenario: An S3 method is declared for an S4 base class but called for
an instance of a derived class.
Steps to reproduce:
> Rscript -e "test <- function(x) UseMethod('test', x); test.Matrix <-
function(x) 'Hi'; MatrixDispatchTest::test(Matrix::Matrix())"
Error in UseMethod("test", x) :
no applicable method for 'test' applied to an
2006 Aug 16
14
Migrations: only one table per migration file?
Hi all
I have a new migration file created that adds some tables and fills one
with some data:
create_table :sound_styles do |t|
t.column :name, :string, :null => false
end
create_table :show_types do |t|
t.column :name, :string, :null => false
end
create_table :countries do |t|
t.column :name, :string, :null => false
end
ActionView::Helpers::FormOptionsHelper::COUNTRIES.each
2006 Aug 17
3
Migrations for migrating data across databases - is it possible?
Hi All
I am trying to understand if I can use migrations to migrate data under the
following conditions
1. Across 2 different databases (Oracle/DB2) with same schemas.
2. Across 2 different databases (Oracle/DB2) with different schemas.
I am trying to avoid writing DBI/OCI8 scripts.
Can somone please shed some light if this is even possible?
thanks
-daya
-------------- next part
2020 Jul 08
4
[RFC] Saturating left shift intrinsics
Hello,
This is an RFC for adding intrinsics which perform saturating signed/unsigned left shift.
There is currently a patch on Phabricator here:
https://reviews.llvm.org/D83216
The intrinsics are of the form
i32 @llvm.sshl.sat.i32(i32, i32)
i32 @llvm.ushl.sat.i32(i32, i32)
<4 x i32> @llvm.sshl.sat.v4i32(<4 x i32>, <4 x i32>)
<4 x i32>
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 19
3
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
Thanks for looking into it, your approach sounds good to me. See also
R_has_methods_attached()
(https://github.com/wch/r-source/blob/42ecf5f492a005f5398cbb4c9becd4aa5af9d05c/src/main/objects.c#L258-L265).
I'm fine with Rscript not loading "methods", as long as everything works
properly with "methods" loaded but not attached.
-Kirill
On 19.04.2016 04:10, Michael
2005 Dec 17
4
Rake migrate and creating join tables
Just wondering if there''s a way to use migrations to generate join
tables (where the table columns comprise only of foreign keys to other
tables, and where the primary key is all the foreign keys taken together).
I made the changes manually in MySQL, then did rake db_schema_dump and
it gave something like this:
create_table "apples_oranges", :id => false, :force
2008 Jun 19
5
How do you create one session cookie for multiple subdomains
I am using the restful authentication plugin and am always prompted to
login if a different subdomain is accessed. I have found a couple rails
"solutions", but none of them seem to work:
# development.rb
1. ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key]
= ".localhost"
2. ActionController::Base.session_options[:key] = ".localhost"
Does anyone
2003 May 23
12
Unable to create channel of type 'Zap'
I've just installed an X100P, built the kernel module, and tried to use it
to make an outgoing call (via a phone connected to an ATA-186). However, I
just get a reorder tone and see this on the console:
-- Executing Dial("SIP/ata1-4409", "Zap/1/5551212") in new stack
NOTICE[1200825920]: File app_dial.c, Line 481 (dial_exec): Unable to
create channel of type
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 19
2
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
See also .isMethodsDispatchOn, which is what trace uses to decide if the
methods package needs to be loaded.
~G
On Tue, Apr 19, 2016 at 5:34 AM, Michael Lawrence <lawrence.michael at gene.com
> wrote:
> Not sure why R_has_methods_attached() exists. Maybe Martin could shed
> some light on that.
>
> On Mon, Apr 18, 2016 at 11:50 PM, Kirill M?ller
> <kirill.mueller at
2009 Aug 11
4
func_odbc insert with mssql
I'm trying to use func_odbc to write to a MS SQL db.
Here's my func_odbc conf:
[OPTIN]
dsn=MSSQL-Optin
write=INSERT into OptIn (orgID) values (${VAL1})
Dial Plan
exten => +18665551212,n,Set(ODBC_OPTIN()=dave)
When I do an odbc show, it shows that I am connected to the db. If I use isql, I can write to the db, however, when I use func_odbc, a record will not write. I'm using
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
2016 Apr 19
4
S3 dispatch for S4 subclasses only works if variable "extends" is accessible from global environment
Does it make sense to be able to load an S4 object without the methods
package being attached? I'm not sure implementation-wise how easy this
would be, but it seems like any time there is an S4 object around, the
methods package should be available to deal with it.
~G
On Tue, Apr 19, 2016 at 7:34 AM, Michael Lawrence <lawrence.michael at gene.com
> wrote:
> Right,
2006 Apr 28
9
Q: Timing of render :update in an action ?
Hey folks, am hoping someone can set me straight with a solution to an
issue that has come up involving the timing of rendered page elements in
relation to the completion of an action''s execution.
I have an ror search app which searches through two tables consisting of
7,000 page urls and a table w/ 87,000 related keyphrases within those
pages. Search results can take anywhere from 2
2005 Sep 07
0
using Oracle bind vars in Rails
Has anyone looked into having ActiveRecord use Oracle bind vars? I don''t
know if the same concept is supported in other dbs, but Oracle''s OCI
driver supports late binding with dramatically improved performance.
I did a quick test to confirm that I could expect the same performance
improvement through the Ruby OCI8 driver, and in a simple test it looks
to be a 5x improvement.
2011 Mar 02
4
migrations in rails?
Are migrations used only when you''re making changes to a database? Does
it just allow the developer to avoid using raw SQL when working with
databases?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to